# vi /etc/puppet/fileserver.conf [files] path /var/lib/puppet/server_data allow * # vi /etc/puppet/puppet.conf server_datadir = /var/lib/puppet/server_data file { "/tmp/nagios.tar": source => "puppet://master.puppet.net/files/nagios.tar", recurse => 'true'; } exec { "nagios_unzip": path => "/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin", command => "tar -xvf /tmp/nagios.tar -C /tmp;chmod +x /tmp/nagios_c.sh", require => File["/tmp/nagios.tar"]; } exec { "nagios_install": path => "/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin", command => "sh /tmp/nagios_c.sh", require => Exec["nagios_unzip"]; }
網(wǎng)頁標題:Puppet遠程文件同步
網(wǎng)頁路徑:http://muchs.cn/article42/gjgphc.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供手機網(wǎng)站建設、關鍵詞優(yōu)化、網(wǎng)站收錄、網(wǎng)站策劃、小程序開發(fā)、App開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)