linux – Puppet节点不会从master中提取更改
我遵循了以下三个操作方法
http://terokarvinen.com/2012/puppetmaster-on-ubuntu-12-04 https://help.ubuntu.com/12.04/serverguide/puppet.html#puppet-installation http://docs.puppetlabs.com/guides/install_puppet/post_install.html 我到了能够启动puppet节点的程度,并且在master上使用puppet cert –list查看证书并使用cert接受它–sign 但是,通过此点,节点不会从主节点获取更改.主服务器具有以下节点: include apache2 以下表明: package { 'apache2': ensure => installed } service { 'apache2': ensure => true,enable => true,require => Package['apache2'] } 我已经多次重启puppet和puppetmaster以及让服务器整个周末都坐着,但节点还没有安装apache2. 编辑: 使用puppet master –verbose -no-daemonize我收到以下内容: root@puppetmaster:/etc/puppet/manifests# puppet master --verbose -no-daemonize Error: Could not intialize global default settings: Error parsing arguments Wrapped exception: invalid argument syntax: '--' 使用`puppet agent –test –noop’我收到以下内容: root@puppet:/var/log/puppet# puppet agent --test --noop Notice: Skipping run of Puppet configuration client; administratively disabled (Reason: 'Disabled by default on new installations'); Use 'puppet agent --enable' to re-enable. 解决方法
我看到你没有日志.我会在主服务器上停止puppetmaster然后以这种方式运行它:
puppet master --verbose --no-daemonize 在节点服务器上,停止puppet服务并使用noop运行它: puppet agent --test --noop 这应该会给你一些输出,希望有助于排除故障. 我的猜测:证书问题.通常是傀儡. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |