2
我對傀儡很新,只是想了解輸出告訴我什麼。我有一個非常簡單的init.pp文件用於配置顫抖文件:破譯傀儡輸出
class sudo {
package { sudo:
ensure => present,
}
if $operatingsystem == "Ubuntu" {
package { "sudo-ldap":
ensure => present,
require => Package["sudo"],
}
}
file { "/etc/sudoers":
owner => "root",
group => "wheel",
mode => 0440,
source => "puppet:///modules/sudo/sudoers",
require => Package["sudo"],
}
但是每當我運行下面的命令:
sudo puppet agent --server=my-imac.local --no-daemonize --verbose --onetime --noop
我得到以下輸出:
info: Caching catalog for susan-hirschs-imac.local
info: Applying configuration version '1321294018'
notice: /Stage[main]/Sudo/Package[sudo]/ensure: current_value absent, should be present (noop)
notice: Class[Sudo]: Would have triggered 'refresh' from 1 events
notice: Stage[main]: Would have triggered 'refresh' from 1 events
notice: Finished catalog run in 0.07 seconds
我有2個問題:
1)如何解釋此路徑:/Stage[main]/Sudo/Package[sudo]/ensure
2)爲什麼它告訴我目前的價值不存在?我在的/ etc/sudoers的
非常感謝!這是一個很好的迴應!比我找到的任何文件都更徹底。出於好奇,你從哪裏獲得你的傀儡知識? – ennuikiller
很高興幫助。主要是自學,儘管幾年前現在。對於開始,我會建議新版學習木偶教程(http://docs.puppetlabs.com/learning/),但解釋了一些有用的概念。還有兩本相當新的書,Pro Puppet和Puppet Cookbook,都應該是好的。 –