RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
Puppet远程文件同步
# 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"];
    }

新闻名称:Puppet远程文件同步
浏览地址:http://scyingshan.cn/article/gjgphc.html