标签:think eve inf ruby 编写 处理 查看命令 local 需要
puppet是一款用ruby语言编写的,采用C/S架构的自动化运维管理工具或配置管理工具。puppet客户端从服务器(使用puppet apply manifestname子命令可以从本地获取配置文件)获取配置文件manifestname,然后执行相应的操作。
lin@ubuntu:~/workspace/dev_ops/puppet$ cat user.pp
user{'puppet':
name => puppet,
ensure => present,
}
lin@ubuntu:~/workspace/dev_ops/puppet$ puppet apply --verbose --noop user.pp
Notice: Compiled catalog for ubuntu.localdomain in environment production in 0.06 seconds
Info: Applying configuration version '1552664253'
Notice: Finished catalog run in 0.01 seconds
type{'title':
attr1 => value1,
attr2 => value2,
attr3 => value3,
...
attrN => valueN
}
Meta Parameters
---------------
alias, audit, before, loglevel, noop, notify, require, schedule, stage,
subscribe, tag
元属性详细可以看Metaparameter Reference
标签:think eve inf ruby 编写 处理 查看命令 local 需要
原文地址:https://www.cnblogs.com/linyihai/p/10534553.html