DevOps工具与验收测试实践
1. Puppet模块管理与使用
1.1 Puppet模块工具
Puppet借助 puppet-module-tool ,能够在Puppet Forge(访问地址:http://forge.puppetlabs.com )上创建、安装和搜索模块。自Puppet 2.7.12版本起, puppet-module-tool 已被纳入核心组件。大多数Puppet模块会发布到Puppet Forge,但其源码通常存于GitHub,这使得将其作为子模块添加变得十分便捷。
添加子模块的操作步骤如下:
cd project-root
git submodule add git://github.com/puppetlabs/puppetlabs-firewall.git modules/firewall
git commit -m "Add the firewall module to manage iptables"
1.2 使用防火墙模块
添加到项目树后,在特定机器上使用该模块也很简单。以下是添加防火墙设置扩展配置的示例:
firewall {
'000 accept all icmp requests' :
proto => 'icmp',
action => 'accept';
'001 accept inbound
超级会员免费看
订阅专栏 解锁全文
795

被折叠的 条评论
为什么被折叠?



