国内最专业的IT技术学习网

UI设计

当前位置:主页 > UI设计 >

Puppet 搭建与部署,看这一篇就够了

发布时间:2019/09/05标签:   客户端    点击量:

原标题:Puppet 搭建与部署,看这一篇就够了
Puppet任务道理让治理员只会合于要治理的目的,而疏忽完成的细节。puppet既能够在单机上应用,也能够以C/S构造应用。在大范围应用puppet的情形下,平日应用C/S构造,在这类构造中puppet客户端只运转puppetclient,Puppet效劳端只运转puppetmaster。详细的任务流程如图所示:情况应用四台效劳器模仿搭建puppet情况,拓扑图以下所示:情况表试验步调1.搭建Puppet Master(1)计划三台效劳器主机名[root@localhost~]#vim/etc/hostnamemaster.test.cn[root@localhost~]#vim/etc/hosts192.168.126.138master.test.cn192.168.126.148client01.test.cn192.168.126.158client02.test.cn(2)效劳器时光同步因为puppet须要应用SSL证书,依靠时光同步,以是须要搭建NTP效劳器1)搭建NTP Server[root@localhost~]#yuminstallntp-y[root@localhost~]#vim/etc/ntp.conf增加以下两行:server127.127.1.0#指定当地作为时光源效劳器fudge127.127.1.0stratum8其感化是当 /etc/ntp.conf 中界说的server都弗成用时,将应用local时光作为NTP效劳供给给NTP客户端。2)启动ntp效劳并设置开机自启动[root@localhost~]#systemctlstopfirewalld.service[root@localhost~]#systemctldisablefirewalld.service[root@localhost~]#setenforce0[root@localhost~]#systemctlstartntpd.service[root@localhost~]#systemctlenablentpd.service[root@localhost~]#ntpstat#同步synchronisedtoNTPserver(193.228.143.13)atstratum3timecorrecttowithin517mspollingserverevery64s3)puppetmaster作为NTP客户真个设置[root@master~]#yuminstallntpdate-y[root@master~]#ntpdate192.168.126.1596Aug09:45:03ntpdate[3488]:adjusttimeserver192.168.126.159offset-0.072288sec#调剂时光效劳器192.168.126.159偏移-0.072288秒4)设置YUM源[root@master~]#yuminstallepel-release-y[root@master~]#yuminstallpuppet-server-y#装置puppet效劳端5)启动puppet主顺序[root@master~]#systemctlstopfirewalld.service[root@master~]#systemctldisablefirewalld.service[root@master~]#setenforce0[root@master~]#systemctlstartpuppetmaster.service[root@master~]#systemctlenablepuppetmaster.service2.搭建puppetclient(两台客户端设置一样)1)经过域名ping通puppetmaster[root@client01~]#pingmaster.test.cnPINGmaster.test.cn(192.168.126.138)56(84)bytesofdata.64bytesfrommaster.test.cn(192.168.126.138):icmp_seq=1ttl=64time=1.06ms64bytesfrommaster.test.cn(192.168.126.138):icmp_seq=2ttl=64time=3.27ms64bytesfrommaster.test.cn(192.168.126.138):icmp_seq=3ttl=64time=0.382ms64bytesfrommaster.test.cn(192.168.126.138):icmp_seq=4ttl=64time=0.660ms

版权信息Copyright © IT技术教程 版权所有    ICP备案编号:鲁ICP备09013610号