ディレクトリとファイルのレイアウトは次のとおりです。
app_test/
app_test/manifests
app_test/manifests/init.pp
app_test/manifests/test.pp
内容init.pp
:
class app_test {
include app_test::test
}
内容test.pp
:
class app_test::test {
exec { 'hello world':
command => "/bin/echo Hello World >> /tmp/are-you-there.txt"
}
}
Puppetv2.7.11
がインストールされています。
$ puppet apply init.pp
notice: Finished catalog run in 0.01 seconds
誰かがこれがファイルを生成しない理由を教えてもらえます/tmp/are-you-there-txt
か?