add hosts & add modules
 
一, define hostname and setup os
[root@cn-iss-config-01 files (pvg01 %)]# vi /etc/dhcp/dhcpd.conf
 host cn-svn-multi-01{
             hardware ethernet 00:50:56:ab:57:fa;
             fixed-address 192.168.0.41;
             ddns-hostname "cn-svn-multi-01";
             next-server 192.168.0.235;
             filename "/pxelinux.0";
             }
二, add to nodes.pp
[root@cn-iss-config-01 files (pvg01 %)]# vi /etc/puppet/manifests/nodes.pp
 
node /^cn-svn-multi-[0-9][0-9].pvg01.columbus2050.de$/
inherits default{
include apache::svn
include apache
include bind
#include java
}
 
node 'cn-webdeploy-multi-01.pvg01.columbus2050.de' inherits default{
#include bind
include apache
include yum::java::java
include java
}
三 host sign
[root@cn-svn-multi-01 ~]# puppet agent -t   
 
puppetmaster
[root@cn-iss-config-01 files (pvg01 %)]# puppet cert list
 "cn-webdeployment-multi-01.pvg01.columbus2050.de" (SHA256) 3B:59:B3:E2:EA:97:D2:2B:46:15:01:6C:70:B3:6A:14:C7:48:FA:52:58:00:ED:DF:32:8F:E0:66:A0:0D:CC:85
[root@cn-iss-config-01 files (pvg01 %)]#
[root@cn-iss-config-01 files (pvg01 %)]# puppet cert sigen "cn-webdeployment-multi-01.pvg01.columbus2050.de"
 
四 define modules
 [root@cn-iss-config-01 files (pvg01 %)]# mkidr /etc/puppet/moduels/apache
[root@cn-iss-config-01 files (pvg01 %)]# mkidr /etc/puppet/moduels/apache/manifests
 
[root@cn-iss-config-01 files (pvg01 %)]# mkidr /etc/puppet/moduels/apache/files