
Puppet 快速入门
快速掌握 puppet 的关键知识点
DamonHao
明光村某附属大学
展开
-
puppet 安装文档—RedHat
1)安装环境:rhel-server-6.2 版本的机器两台master host: 192.168.254.242client host:192.168.254.2452)安装前准备:与ubuntu基本一致,需注意的是,要设置master的防火墙,开放puppet所使用的8140端口(详见附录1),这里为了方便,直接关闭防火墙# /etc/init.d/iptab原创 2013-09-08 14:49:01 · 2202 阅读 · 2 评论 -
puppet 安装文档—Ubuntu
1)安装环境:两台ubuntu 12.04 的实例server(master): ip:192.168.254.234 host:vm234.comclient: ip:192.168.254.235 host:vm235.com请务必先给各自的主机的/etc/hosts 添加上hostname和ip,在服务节点,添加自己的hos原创 2013-09-08 14:30:08 · 4917 阅读 · 0 评论 -
Access resources from other class
In some case , we may want to access or reference resources from other class, like:class nodes::test_1{ file{'/root/test_1': ensure=>directory, }}class nodes::test_2{ file原创 2013-09-08 17:23:38 · 982 阅读 · 0 评论 -
learning puppet 5 -- ordering
metaparametersEach resource type has its own set of attributes, but there's another set of attributes, called metaparameters, which can be used on any resource.There are four metaparameters that l原创 2013-09-08 16:55:39 · 1093 阅读 · 0 评论 -
learning puppet 4--template and function
TemplatesTemplates are documents that contain a mixture of static and dynamic content. By using a small amount of conditional logic and variable interpolation, they let you maintain one source docum原创 2013-09-08 16:03:03 · 1345 阅读 · 0 评论 -
learning puppet 3— Classes and Modules
Classes are Puppet's way of separating out chunks of code, and modules are Puppet's way of organizing classes so that you can refer to them by name.ClassesClasses are named blocks of Puppet code原创 2013-09-08 15:57:40 · 1055 阅读 · 0 评论 -
learning puppet 2--Variables and Facts
1)Variables$variables always start with a dollar sign. You assign to variables with the = operator.Variables can hold strings, numbers, booleans, arrays, hashes, and the special undef value. See原创 2013-09-08 15:48:54 · 918 阅读 · 0 评论 -
learning puppet 1--Overview
About the learning materials of puppet , I have to say the articles "The Learning Puppet series" on its official site are the best one I ever saw. And they made up most of my key notes about learni原创 2013-09-08 15:31:05 · 1306 阅读 · 0 评论