目录和文件布局如下:

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"
    }
}

puppet v2.7.11已安装。
$ puppet apply init.pp
notice: Finished catalog run in 0.01 seconds

有人可以指出为什么它不生成文件/tmp/are-you-there-txt吗?

最佳答案

你可以试试 :

 puppet apply -e 'include app_test::test'

或空转
 puppet apply -e 'include app_test::test' --noop

有关更多 puppet 的信息,请参见手册页:http://docs.puppetlabs.com/man/apply.html

关于manifest - puppet 2.7 : Calling puppet apply init. pp什么都不做-为什么?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13143929/

10-11 12:42
查看更多