Hi list. I''m trying to set up master/client environment, but I''m having problems... Here is my configuration so far: # find /etc/puppet/manifests/ /etc/puppet/manifests/ /etc/puppet/manifests/site.pp /etc/puppet/manifests/nodes.pp /etc/puppet/manifests/classes /etc/puppet/manifests/classes/testfile.pp # cat nodes.pp import "classes/*" node basenode { include testfile } node ''puppet-client.example.com'' inherits basenode { } # cat site.pp import "nodes" # The filebucket option allows for file backups to the server # *Note this is not working but appears to be required filebucket { main: server => ''puppet-server.srce.hr'' } # Set global defaults - including backing up all files to the main # filebucket and adds a global path File { backup => main } Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" } # cat classes/testfile.pp class testfileclass { file { "/tmp/testfile": ensure => present, mode => 600, owner => root, group => root, } file { "/tmp/testfile2": ensure => present, mode => 644, owner => root, group => root, } } puppetmasterd is running, puppet client connects, log says: Thu Aug 18 15:11:02 +0200 2011 Puppet (notice): Finished catalog run in 0.03 seconds Thu Aug 18 15:12:05 +0200 2011 Puppet (notice): Finished catalog run in 0.03 seconds Thu Aug 18 15:13:08 +0200 2011 Puppet (notice): Finished catalog run in 0.04 seconds When I try to kick client from the master, nothing happens. There is no /tmp/testfile nor /tmp/testfile2.... I searched the tutorials, howtos but cannot find the reason for this kinda of behaviour :( Any ideas in which direction to look for? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Include at the class level. include testfile:testfileclass On Aug 18, 2011 7:11 AM, "Jakov Sosic" <jsosic@srce.hr> wrote:> Hi list. > > I''m trying to set up master/client environment, but I''m having problems... > > Here is my configuration so far: > > # find /etc/puppet/manifests/ > /etc/puppet/manifests/ > /etc/puppet/manifests/site.pp > /etc/puppet/manifests/nodes.pp > /etc/puppet/manifests/classes > /etc/puppet/manifests/classes/testfile.pp > > # cat nodes.pp > import "classes/*" > > node basenode { > include testfile > } > > node ''puppet-client.example.com'' inherits basenode { > } > > > # cat site.pp > import "nodes" > > # The filebucket option allows for file backups to the server > # *Note this is not working but appears to be required > filebucket { main: server => ''puppet-server.srce.hr'' } > > # Set global defaults - including backing up all files to the main > # filebucket and adds a global path > File { backup => main } > Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" } > > > # cat classes/testfile.pp > class testfileclass { > file { "/tmp/testfile": > ensure => present, > mode => 600, > owner => root, > group => root, > } > file { "/tmp/testfile2": > ensure => present, > mode => 644, > owner => root, > group => root, > } > } > > > > puppetmasterd is running, puppet client connects, log says: > > Thu Aug 18 15:11:02 +0200 2011 Puppet (notice): Finished catalog run in > 0.03 seconds > Thu Aug 18 15:12:05 +0200 2011 Puppet (notice): Finished catalog run in > 0.03 seconds > Thu Aug 18 15:13:08 +0200 2011 Puppet (notice): Finished catalog run in > 0.04 seconds > > > When I try to kick client from the master, nothing happens. There is no > /tmp/testfile nor /tmp/testfile2.... > > I searched the tutorials, howtos but cannot find the reason for this > kinda of behaviour :( > > Any ideas in which direction to look for? > > > -- > You received this message because you are subscribed to the Google Groups"Puppet Users" group.> To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email topuppet-users+unsubscribe@googlegroups.com.> For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en.>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 08/18/2011 04:42 PM, Aaron Grewell wrote:> Include at the class level. > include testfile:testfileclassThe error was in syntax in one of the classes... When I fixed it, it got back working again. Is there a way to check for errors in manifests on the server side? Some kind of debug run? Thank you -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.