我正在尝试在代理机器上设置 puppet。在代理机器上,我能够运行命令,当我检查 master 时,我签署了它的证书。现在在代理机器上我运行以下命令
sudo puppet agent --test --onetime --verbose
我得到以下输出
Info: Retrieving plugin
Info: Caching catalog for vpuppetslave.jrock20041.dyndns.org
Info: Applying configuration version '1373014974'
在代理机器上,这里是 puppet.conf 文件
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
server = mediacenter.jrock20041.dyndns.org
[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
[agent]
server = mediacenter.jrock20041.dyndns.org
在主机上,这是我的 site.pp 文件
import 'nodes.pp'
在主机上,这是我的 nodes.pp 文件
node 'mediacenter' {
#include nginx
#include openssh-server
#include ssh
file { '/tmp/hello':
content => "Hello, World!\n",
}
user { 'jcostanzo':
ensure => present,
comment => 'John Costanzo',
home => '/home/jcostanzo',
managehome => true,
}
}
node 'vpuppetslave' {
#include nginx
#include openssh-server
#include ssh
file { '/tmp/hello':
content => "Hello, World!\n",
}
user { 'jcostanzo':
ensure => present,
comment => 'John Costanzo',
home => '/home/jcostanzo',
managehome => true,
}
}
不知道我做错了什么。谢谢您的帮助