您的位置:首页 > 其它

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

2015-08-18 16:20 375 查看
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:45http://www.wzlinux.com
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  puppet