Puppet Master安裝手冊(CentOS 7)

來源:互聯網
上載者:User

標籤:puppet 安裝


Puppet Master安裝

注意:Puppet Master不支援Windows平台,Puppet Agent支援Windows,但不是很理想.

因為foreman最低要求CentOS 6,所以建議使用6以上版本或使用Ubuntu 10以上版本。

 

本篇以CentOS 7為例安裝Puppet Master

 

1.系統準備工作:

迷你安裝CentOS 7

# yum update                                                          #更新系統包至最新# hostnamectl --staticset-hostname johnpuppet        #設定主機名稱# yum -y install ntp                                                #安裝ntp包# ntpdate $NTP_SERVER_IP                                #時間同步# systemctl stopfirewalld.service                     #關閉防火牆# systemctl disable firewall                                 #禁用防火牆開機啟動# sed -i ‘s/\=enforcing/\=disabled/g’/etc/selinux/config               #關閉SELINUX


Master

# cat <<EOF >>/etc/hosts                                    #配置hosts解析(測試環境沒有DNS)>192.168.1.189                 johnpuppet>192.168.1.198                 puppetagent1.test.com>EOF


Agent

# cat <<EOF>>/etc/hosts                                    #配置hosts解析(測試環境沒有DNS

>192.168.1.189                 johnpuppet

>192.168.1.198                 puppetagent1.test.com

> EOF

 

                                                                

2.使用官方YUM源安裝puppetmaster

# rpm -ivhhttp://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm

# yum -y install puppet-server

 

3.配置puppet.conf

# vim /etc/puppet/puppet.conf

agent欄位添加:

server = johnpuppet

master欄位添加:

report = true

reports = log   

4.啟動puppetmaster

# systemctl enablepuppetmaster.service     #puppetmaster開機啟動

# systemctl enable puppet.service                            #puppet開機啟動

# systemctl start puppetmaster                        #啟動puppetmaster

# systemctl start puppet                                               #啟動puppet

 

5.Agent申請認證驗證

agent上,

# puppet agent –test

master上,

# puppet cert list –all                                            #查看認證列表

# puppet cert sign –all                                          #簽發所有請求認證

Master認證自動簽發


Puppet Master安裝手冊(CentOS 7)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.