Added server name to puppet client config to support client roaming.
This commit is contained in:
parent
57dd46b169
commit
dc3e87139c
2 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,10 @@ class puppet::client {
|
|||
|
||||
tag("bootstrap")
|
||||
|
||||
if ! $puppet_server {
|
||||
$puppet_server = "puppet"
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
openbsd: { $vardir = "/var/puppet" }
|
||||
default: { $vardir = "/var/lib/puppet" }
|
||||
|
|
|
@ -23,6 +23,11 @@
|
|||
path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
||||
|
||||
<% end -%>
|
||||
# The server to which server puppetd should connect
|
||||
# The default value is 'puppet'. Explicitly set to support
|
||||
# re-installs on remote networks.
|
||||
server = <%= puppet_server %>
|
||||
|
||||
# Enable sending reports to puppet server.
|
||||
report = true
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue