Added server name to puppet client config to support client roaming.

This commit is contained in:
Timo Mkinen 2010-10-07 22:57:13 +03:00
parent 57dd46b169
commit dc3e87139c
2 changed files with 9 additions and 0 deletions

View file

@ -5,6 +5,10 @@ class puppet::client {
tag("bootstrap") tag("bootstrap")
if ! $puppet_server {
$puppet_server = "puppet"
}
case $operatingsystem { case $operatingsystem {
openbsd: { $vardir = "/var/puppet" } openbsd: { $vardir = "/var/puppet" }
default: { $vardir = "/var/lib/puppet" } default: { $vardir = "/var/lib/puppet" }

View file

@ -23,6 +23,11 @@
path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
<% end -%> <% 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. # Enable sending reports to puppet server.
report = true report = true