Centos 6.3下Puppet的安裝配置過程

來源:互聯網
上載者:User

系統內容:centos6.3

puppet:   puppet-2.7.13

facter:   facter-1.6.5

ruby:     yum源

註:

facter用來擷取用戶端系統資訊(如hostname,ip,OS-Version,fqdn等)

ruby是puppet的開發環境

puppet server: 192.168.7.196

puppet client: 192.168.7.197

(server)為僅伺服器端配置

(client)為僅客戶器端配置

(server,client)為伺服器端與用戶端配置

一.配置環境(server,client):

1.關閉iptables和selinux(server,client)

# service iptables stop

# setenforce 0

# vi /etc/sysconfig/selinux

---------------

SELINUX=disabled

---------------

2.安裝ruby開發環境(centos6.3預設更新源)(server,client)

# yum -y install ruby*

3.計劃同步時間:(server,client)

每5分鐘同步一次時間

# crontab -e

-------------

*/5 * * * * /usr/sbin/ntpdate -u asia.pool.ntp.org

-------------

# service crond restart

# chkconfig crond on

4.修改伺服器及用戶端HOST及主機名稱:

(server,client)

# vi /etc/hosts

-------------------

192.168.7.196    server.example.com    server

192.168.7.197    client.example.com    client

-------------------

(server)

# vi /etc/sysconfig/network

----------------

HOSTNAME=server.example.com

----------------

(client)

# vi /etc/sysconfig/network

----------------

HOSTNAME=client.example.com

----------------

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.