目录和文件布局如下:
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"
}
}
人偶v2.7.11
已安装。
$ puppet apply init.pp
notice: Finished catalog run in 0.01 seconds
有人可以说明为什么这不会生成文件/tmp/are-you-there-txt
吗?