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 。




     本文转自 wzlinux 51CTO博客,原文链接:http://blog.51cto.com/wzlinux/1685608,如需转载请自行联系原作者



相关文章
|
关系型数据库 MySQL Shell
puppet连载24:虚拟资源
class account::virtual { @user {"mysql": ensure => present, uid => 27, gid => 27, home => "/var/lib/mysql", shell => "/bin/bas...
746 0
puppet连载17:file资源详解
file {'/tmp/filetest': content => "aaa", ensure => file, } ensure => present file {'/tmp/filetest': content => "aaa", } file {...
850 0
|
安全 Linux 网络协议
puppet yum模块、配置仓储、mount模块
转载:http://blog.51cto.com/ywzhou/1577335 作用:自动为客户端配置YUM源,为使用yum安装软件包提供便捷。 1、服务端配置yum模块 (1)模块清单 [root@puppet ~]# tree /etc/puppe...
1070 0
|
网络协议 安全 网络安全

推荐镜像

更多