![]() | 1 ericFork 2013-03-20 00:55:20 +08:00 ![]() 是,建议把这些东西写在一个文件里,比如 nodes.pp,在 site.pp 里 include nodes.pp |
![]() | 2 JasonH OP @ericFork 谢谢,关于 Puppet 项目的文件组织方式,能不能推荐一些比较好的 example proejct 呢? |
![]() | 3 vvoody 2013-03-20 03:28:00 +08:00 在modulepath里的东西才能被直接include吧? 看这个tut http://docs.puppetlabs.com/learning/modules1.html |
![]() | 4 JasonH OP @vvoody 我试过在 modules 下面建立这样的结构: - modules: -- nodes: --- node01.pp --- node02.pp 然后在 site.pp 里 include 'nodes/*.pp' 但是错误消息还是一样的。 |
![]() | 5 goinaction 2013-03-20 14:18:09 +08:00 ![]() 不应该是 import 'nodes/*.pp'吗 |
![]() | 6 JasonH OP |
![]() | 7 goinaction 2013-03-21 16:34:18 +08:00 |