puppet centos 6.3
原创xiaoyun222 博主文章分类:system ©著作权
文章标签 puppet centos 6.3 文章分类 开源
©著作权归作者所有:来自51CTO博客作者xiaoyun222的原创作品,请联系作者获取转载授权,否则将追究法律责任
Puppet 安装
1,下载安装puppetlabs-release-6-1.noarch.rpm
[root@localhost usr]# wget http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-1.noarch.rpm
关闭selinux与防火墙 YUM 可以访问internet
[root@localhost usr]# getenforce 0
[root@localhost usr]# service iptables stop
2,安装 rubygems-1.3.7-1.el6.noarch.rpm
[root@localhost usr]# yum install rubygems-1.3.7-1.el6.noarch.rpm
3,master端安装puppet-server
[root@localhost Packages]# yum install puppet-server
4,客户端安装puppet
[root@localhost usr]# yum install puppetlabs-release-6-1.noarch.rpm
[root@localhost usr]# yum install rubygems-1.3.7-1.el6.noarch.rpm
[root@localhost usr]# yum install puppet
5,配置puppet 客户端
[root@cn-dns-test03 puppet]# vi puppet.conf
[root@aa-test-01 puppet]# cat /etc/puppet/puppet.conf
[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl
server=aa-config-01.puppet.com
[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion. Can be loaded in
# the separate ``puppet`` executable using the ``--loadclasses``
# option.
# The default value is '$confdir/classes.txt'.
classfile = $vardir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig
[root@aa-test-01 puppet]#
[root@cn-dns-test03 puppet]#
[root@cn-dns-test03 puppet]# puppet agent –t
Puppetmaster
[root@cn-dns-test01 etc]# puppet cert list
"cn-dns-test03.puppet.com" (SHA256) 16:A0:EC:04:C7:3D:CF:C1:5E:5A:99:06:79:6B:00:65:B7:A6:8F:2E:CF:F1:40:93:15:6F:FF:2A:57:14:4D:90
[root@cn-dns-test01 etc]#
Questions
Error: Could not send report: getaddrinfo: Name or service not known
1, 不能解析;2,puppetmaster指定地址有误或相关服务没有启动。
2,
[root@aa-test-01 puppet]# puppet agent -t
Info: Creating a new SSL key for aa-test-01.puppet.com
Error: Could not request certificate: getaddrinfo: Name or service not known
Exiting; failed to retrieve certificate and waitforcert is disabled
Puppetmaster主机名称没有配置完成
做测试使用
[root@cn-dns-test02 ~]# puppet agent --server cn-dns-test01.puppet.com --debug
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
CentOS安装DataX
datax安装
datax -
Centos 基本部署
记录项目的基本部署
mysql nginx tomcat