Puppet
Puppet 通知:current_value 不存在,應該存在
我正在嘗試通過 puppet (v 3.2.4) 添加使用者,並在 –noop 上收到此通知:
通知:/階段
$$ main $$/使用者組/組$$ user_one $$/ensure: current_value 不存在,應該存在(noop)
這是我的清單:
# usersgroups class usergroup { group { "user_one": ensure => present, gid => 500, } group { "dev_website_1": ensure => present, gid => 501, } group { "dev_website_2": ensure => present, gid => 502, } user { "user_one": ensure => present, uid => 500, gid => 500, groups => ["dev_website_1", "dev_website_2"] } } include usergroup
我應該用“current_value => present”替換“ensure => present”嗎
該消息意味著 puppet 檢測到該組不存在(current_value 不存在)並且想要創建它(應該存在)但不會因為您正在使用 –noop 執行。這只是資訊,你的配置很好:)
你應該以類似的東西結束
user {'user_one': uid => 1234, gid => 1234, managehome => true, password => sha1-encoded-pass (as in /etc/shadow) }