我是新來的木偶,我無法應用.pp來改變motd。如何將.pp應用到節點
我有下的/ etc/puppetlabs /代碼/模塊/的HelloWorld /表現
init.pp
class helloworld {
notify { 'hello, world!': }
}
node 'kp2.keepy-i.com'{
include helloworld
}
motd.pp
class helloworld::motd {
file { '/etc/motd':
owner => 'root',
group => 'root',
mode => '0644',
content => "hello, world!\n",
}
}
如果我執行木偶代理-t --verbose
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for kp2.keepy-i.com
Info: Applying configuration version '1463497694'
Notice: Applied catalog in 0.04 seconds
但沒有什麼變化。
預先感謝您