st0627 发表于 2018-8-2 09:41:53

puppet进阶指南——filebucket资源详解

  filebucket资源及案例
  filebucket主要用于文件的备份与恢复
  filebucket {'资源标题':
  name
  path
  port
  server
  }
  ◆ name:filebucket的名字。
  ◆ path:服务器备份数据路径。
  ◆ port:备份服务器端口。
  ◆ server:备份服务器的域名。
  这里继续file资源的案例,再次编写/etc/puppet/manifests/site.pp文件
  node default {
  filebucket {'main':
  server => 'puppet.comratings.com',
  path   => '/var/lib/puppet/clientbucket/'
  }
  file {'/etc/hosts' :
  backup => 'main',
  source => "puppet:///files/hosts",
  }
  }
  欢迎关注http://www.wzlinux.com:45 和http://www.wzlinux.com 。
页: [1]
查看完整版本: puppet进阶指南——filebucket资源详解