溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

puppet

發(fā)布時(shí)間:2020-04-06 12:21:23 來(lái)源:網(wǎng)絡(luò) 閱讀:550 作者:ityusong 欄目:編程語(yǔ)言

做實(shí)驗(yàn)時(shí)客戶端的puppet進(jìn)程起不來(lái),刪掉重新ssl認(rèn)證有好了,怎么重啟虛擬機(jī)后puppet ssl證書(shū)老是同步錯(cuò)誤。后面查到原因是虛擬機(jī)的時(shí)間沒(méi)有同步。


軟件下載

http://downloads.puppetlabs.com/puppet/puppet-2.7.13.tar.gz
facter下載地址:
http://downloads.puppetlabs.com/facter/facter-1.6.7.tar.gz
ruby下載地址:
http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz


安裝的步驟:

master:
1.安裝ruby環(huán)境

ruby我這里直接用的是yum安裝的

yum install ruby ruby-devel ruby-libs


2.安裝facter
tar xzvf facter-1.7.2.tar.gz
cd facter-1.7.2
ruby install.rb

3.安裝puppet
tar -zxvf puppet-2.7.23.tar.gz
cd puppet-2.7.23
ruby install.rb
cp conf/auth.conf /etc/puppet/
cp conf/namespaceauth.conf /etc/puppet/
cp conf/redhat/puppet.conf /etc/puppet/
cp conf/redhat/server.init /etc/rc.d/init.d/puppetmaster
chmod +x /etc/rc.d/init.d/puppetmaster
cp sbin/puppet /sbin/
useradd puppet
/etc/init.d/puppetmaster start
chkconfig --add puppetmaster
chkconfig puppetmaster on


client:

安裝ruby,和facter同master端前兩個(gè)步驟

安裝puppet
useradd puppet
chkconfig --add puppet
chkconfig puppet on
cp conf/auth.conf /etc/puppet/
cp conf/namespaceauth.conf /etc/puppet/
cp ext/redhat/puppet.conf /etc/puppet/
cp ext/redhat/client.init /etc/rc.d/init.d/puppet
chmod 755 /etc/rc.d/init.d/puppet
useradd puppet
chkconfig --add puppet
chkconfig puppet on



證書(shū)認(rèn)證
#client
puppetd --test --server master


#master
puppetca --list #如果能看到證書(shū)就執(zhí)行下面命令對(duì)說(shuō)有證書(shū)請(qǐng)求簽名

puppetca -s -a


簡(jiǎn)單測(cè)試
#master
vim /etc/puppet/manifests/site.pp
node default {
file { "/tmp/test.txt":
content => "hello"; }
}
#client
puppetd --test --server master


ok 安裝成功,接下來(lái)可以根據(jù)需要寫(xiě)配置文件了


向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI