Puppet Server和client的安装
2011-11-14 16:16
239 查看
1puppet介绍:puppet基于ruby语言开发支持已C/S模式或独立模式运行支持所有的UNIX和LINUX系统配置适用业务系统的整个生命周期支持节点方式管理若干服务器群组支持对windows操作系统管理(功能有限)2puppet工作架构
3更新server和client的配置文件
192.168.10.180master.notry.com#个人虚拟机环境 192.168.10.122client1.notry.com 192.168.10.157clinet2.notry.com
4puppetserver的安装:
安装EPELsudorpm–Uvh安装puppet服务端http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
sudoyum–yinstallpuppet-server启动puppet服务
sudo/etc/init.d/puppetmasterstart
5Puppetclient的安装
安装EPELsudorpm–Uvh安装puppet客户端http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
sudoyum-yinstallpuppet提交证书申请
sudopuppet--servermaster.notry.com--test6Puppet证书管理服务器端可用的puppetca管理证书
puppetca–list#查看到申请证书的客户端主机名puppetca–s#主机名,为特定的主机颁发证书puppetca–sand–a#为所有的主机颁发证书puppetca–land–a#列出所有主机,+号代表已经领证的机器
7认证client1
[notry@masteropt]$puppetca--listclient1.notry.com[notry@masteropt]$puppetca--list-aPuppetServer端目录结构
[notry@masterpuppet]$pwd/etc/puppetauth.confclient访问puppetserver的ACL配置文件fileserver.confpuppetserver作为文件服务器的ACL配置文件manifestsPuppet脚本主文件目录,至少需要包含site.pp入口脚本文件modulesPuppet模块目录,存放Puppet脚本的功能模块namespaceauth.conf命名空间ACL配置文件
puppet.confPuppet服务器端配置文件
8简单的测试
server端操作:vim/etc/puppet/manifests/site.ppclasstext{file{"/opt/a.txt":ensure=>"present",content=>"HelloPuppet!\n",owner=>"root",group=>"root",mode=>644}}nodeclient1{includetext
}client1端操作:
puppetd--servermaster.notry.com--test
观察是否在client1的/opt/下生成内容为HelloPuppet!的a.txt文件。
本文出自“不想走路”博客,请务必保留此出处http://notry.blog.51cto.com/3909869/714002相关文章推荐
- Puppet部署:安装puppet server、client
- Puppet 部署安装puppet server,client
- Centos下安装MySQL-server和MySQL-client
- Linux pppoe server/client安装 配置
- RHEL6.5配置安装puppet-server和puppet(一)
- linux下安装mysql中server和client的作用
- jdk(32bit)的高级安装---client模式与server模式
- aliyunESC服务器安装mysql server and client
- Ubuntu 9.10 NFS server & client 配置安装
- ubuntu 12.04 nfs-server/client安装配置
- jdk(32bit)的高级安装---client模式与server模式
- 【Linux】安装openssh-server依赖openssh-client版本错误的解决办法
- ubuntu 12.04 nfs-server/client安装配置
- [4] DevOps 自动化运维工具Chef----在Ubuntu上安装最新的Chef Client 12.13.37 并和Chef server关联起来
- ubuntu下mysql安装(server、client、dev),开启、停止和重启,及常见错误
- subversion(server)与TortoiseSVN(client)的安装与简单使用
- Zabbix 安装配置文档Server+Client+Web
- 自动化运维之 - puppet client端安装
- memcached的安装(server、client)
- RabbitMQ Server/ RabbitMQ-C Client快速安装 Ubuntu篇