【发布时间】:2015-07-13 19:06:49
【问题描述】:
我正在尝试使用木偶。我启动了 2 个在 linuxmint 17 上运行的 VM。我打算将一个作为 puppetmaster,一个作为 puppetclient。我按照这个指南https://help.ubuntu.com/12.04/serverguide/puppet.html
在 /etc/主机名中 在 /etc/hosts 掌握: 127.0.0.1 localhost /// 没有机会 127.0.1.1 傀儡师 // 192.168.75.141 puppetclient //这个客户端在nm-tool搜索后的ip地址。
客户: 127.0.0.1 本地主机 127.0.1.1 puppetclient 192.168.75.142 puppetmaster //这是master的ip地址
在客户端和主机中,我在 etc/puppet/manifests/site.pp 中创建了一个文件
package {
'apache2':
ensure => installed
}
service {
'apache2':
ensure => true,
enable => true,
require => Package['apache2']
}
在 master 中,我在 /etc/puppet/manifests/nodes.pp 中创建了一个文件
node 'meercat02.example.com' {
include apache2
}
在客户端中,我创建了一个文件 /etc/default/puppet 并放入 START=yes。
以下是我认为有问题的地方。在指南中,该文件应该已经存在,但就我而言,我必须创建它。
然后我按照指南中的所有内容签署了客户端证书。我在 puppetmaster 的终端中输入了sudo puppetca --sign puppetclient。那没有用,我在另一篇文章中找到了解决方案。 https://serverfault.com/questions/457349/installed-puppetmaster-but-why-do-i-get-puppetca-command-not-found。所以在阅读完帖子后,我输入了sudo puppet cert list --sign 'puppetclient'。然后它给了我这个
Notice: Signed certificate request for ca
Error: Could not find certificates request for list
在谷歌搜索的前五页之后,我最终来到这里寻求帮助。 =) 任何人都可以帮我解决这个问题吗?谢谢。
【问题讨论】:
标签: puppet linux-mint