Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1069979
  • 博文数量: 186
  • 博客积分: 4939
  • 博客等级: 上校
  • 技术积分: 2075
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-08 17:15
文章分类

全部博文(186)

文章存档

2018年(1)

2017年(3)

2016年(11)

2015年(42)

2014年(21)

2013年(9)

2012年(18)

2011年(46)

2010年(35)

发布时间:2015-02-13 10:52:02

# See how we were called.case "$1" in    start)        start && exit 0        ;;     stop)   &.........【阅读全文】

阅读(798) | 评论(0) | 转发(0)

发布时间:2015-02-12 14:54:02

        所谓参数化类,就是一个class带有参数,使用的时候可以加载参数。先看例子,#init.ppclass mysql ($user=mysql,$group=mysql,$service_running=true,){class {'xxxx':user =>$user,..........【阅读全文】

阅读(904) | 评论(0) | 转发(0)

发布时间:2015-02-12 13:47:25

# ... puppet/modules/splunkforwarder/manifests$ tree .|-- README.md|-- files| `-- props.conf|-- manifests| |-- init.pp| |-- input.pp| `-- params.pp`-- templates.........【阅读全文】

阅读(2434) | 评论(0) | 转发(0)

发布时间:2015-02-09 17:54:42

   http://www.craigdunn.org/2012/05/239/ 这个链接写的很不错,作者认为比较合理的结构设计如下:  resource ==> Module  ==> Profile(hiera调用) ==> Role ==>Node 个人理解各种资源(file,package,cron,Exec,service,class等等)组成了Module, 然后profile调用module来完成不同的组合.........【阅读全文】

阅读(960) | 评论(0) | 转发(0)

发布时间:2015-02-09 17:38:12

    前几天用fpm打包了一个rpm, 然后puppet部署,又因为需要更新了,重新打包,并且更新了版本号,故而init.pp也更新如下:cat modules/slow_query_converter/manifests/init.pp# Class: slow_query_converterclass slow_query_converter {.........【阅读全文】

阅读(1800) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册