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:45 和http://www.wzlinux.com 。
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 。
相关文章推荐
- 在Puppet中用ERB模板来自动配置Nginx虚拟主机
- 用puppet快速部署openstack
- Puppet 安装配置
- puppet资源file详细介绍(附案例)
- puppet资源yumrepo详细介绍(附案例)
- puppet资源exec详细介绍(附案例)
- puppet资源service详细介绍(附案例)
- Puppet基础篇7-编写第一个完整测试模块puppet
- Puppet错误及解决方法(三)
- 在centos中安装puppet和安装过程的一些错误解决
- puppet学习笔记
- Puppet 的错误
- puppet集群部署
- 【puppet 基础导读】
- 运维自动化之puppet
- 服务器集中管理工具puppet
- CentOS下部署puppet-dashboard(nginx + passenger启动)
- puppet小测试
- 在 CentOS 6.2 上安装 Puppet 配置管理工具
- puppet