fdgre 发表于 2015-8-19 09:31:22

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",
    }
}


页: [1]
查看完整版本: puppet进阶指南——filebucket资源详解