Puppet 服务器和客户端工作正常,但清单文件仍然未执行
我目前正在使用 Amazon Fedora EC2 实例开发 puppet。 Puppet 服务器和客户端都工作正常。我能够从客户端创建证书,服务器能够签署该证书,但我在清单文件中编写的任何代码仍然不会被执行。
下面提到的是我在 Site.pp 文件中的代码:
class test_class {
file { “/tmp/testfile”:
ensure => present,
mode => 644,
owner => root,
group => root
}
}
node puppetclient {
include test_class
}
这里,puppetclient 是客户端的主机名。但在签署证书 /tmp/testfile 之后仍然没有创建。
DNS 也运行得很好。我可以从 puppet 客户端 ping puppetserver(名为 puppet)。
你能告诉我可能的错误是什么吗?
I am currently working on puppet using Amazon Fedora EC2 instances. Both Puppet Server and Client are working fine. I am able to create certificate from client and server is able to sign that but still whatever code I have written in manifest files doesn’t get executed.
Below mentioned is my code in Site.pp file :
class test_class {
file { “/tmp/testfile”:
ensure => present,
mode => 644,
owner => root,
group => root
}
}
node puppetclient {
include test_class
}
Here, puppetclient is the hostname of client. But still after signing certificate /tmp/testfile doesn’t get created.
DNS is also working perfectly fine. I can ping puppetserver(named as puppet) from puppet client.
Can you please tell me what must be the possible mistake ??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能只是问题中的一个拼写错误,但默认目录文件是“site.pp”,而不是“Site.pp”,因此请尝试使用“site.pp”。
It's probably just a typo in the question, but the default catalog file is 'site.pp', not 'Site.pp', so try it with 'site.pp' instead.