Hate to do this. replying myself... a typo in the classes directory thx OWen
On Sunday, October 21, 2012 10:47:32 AM UTC-4, OwenM wrote: > > Hi all, > Im provisioning new Vms in a eucalyptus Private-Cloud. > once they are up and running i change the hostname to > http_i-7ebd4301.cloud.mydomain.net > then via ssh install the puppet client and point the config file to the > puppetMaster. > the pupet master config is very simple > > > [root@puppet manifests]# tree /etc/puppet/ > /etc/puppet/ > |-- auth.conf > |-- autosign.conf > |-- fileserver.conf > |-- manifests > | |-- clases > | | `-- http.pp > | `-- nodes.pp > `-- puppet.conf > > the nodes request autosign the certs using the config in autosign > [root@puppet puppet]# cat autosign.conf > *.cloud.mydomain.net > > and while the vm is starting I can see the cert requst in the master logs. > Oct 21 10:41:16 puppet puppet-master[26745]: Could not resolve > 192.168.160.44: no name for 192.168.160.44 > Oct 21 10:41:17 puppet last message repeated 3 times > Oct 21 10:41:17 puppet puppet-master[26745]: > http_i-02953f34.cloud.mydomain.net has a waiting certificate request > Oct 21 10:41:17 puppet puppet-master[26745]: Signed certificate request > for http_i-02953f34.cloud.mydomain.net > Oct 21 10:41:17 puppet puppet-master[26745]: Removing file > Puppet::SSL::CertificateRequest http_i-02953f34.cloud.mydomain.net at > '/var/lib/puppet/ssl/ca/requests/http_i-02953f34.cloud.mydomain.net.pem' > Oct 21 10:41:17 puppet puppet-master[26745]: Could not resolve > 192.168.160.44: no name for 192.168.160.44 > Oct 21 10:41:20 puppet puppet-master[26745]: Compiled catalog for > http_i-02953f34.cloud.mydomain.net in environment production in 0.01 > seconds > > > the nodes.pp uses a regexp to match the hostname and apply the manifest > based in the hostname > [root@puppet puppet]# cat manifests/nodes.pp > import "classes/http" > node /http_*/ { > notice("inside node") > include http > } > > and the http.pp class is very simple as well > [root@puppet puppet]# cat manifests/clases/http.pp > # /etc/puppet/manifests/classes/http.pp > class http { > package { 'httpd': > ensure => installed, > } > service { 'httpd': > ensure => running, > enable => true, > } > } > > I run the agent in the Vm > -bash-3.2# puppet agent --no-daemonize --onetime --verbose > info: Caching catalog for http_i-02953f34.cloud.mydomain.net > info: Applying configuration version '1350830592' > notice: Finished catalog run in 0.14 seconds > > So I see no errors in the agent os the master, but the http class should > install and start apache and never happend. > > any clues why? > regards > Owen > > > > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/gklCdox8E3AJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.