Hi Peter, Have you tried --debug --noop, looking for lines like these:
debug: /Stage[main]/Git/File[dirrights]/require: requires User[git] notice: /Stage[main]/Git::User/User[git]/ensure: current_value absent, should be present (noop) debug: /Stage[main]/Git::User/User[git]: The container Class[Git::User] will propagate my refresh event This little test seems to run ok here. test.pp class git::user { user {'git': name => 'git', ensure => present, comment => 'Git user for puppet', } } class git { file {'dirrights': path => '/home/ahendry/temp', owner => 'git', require => User['git'], } } include git::user include git $ puppet apply --noop test.pp warning: Could not retrieve fact fqdn notice: /Stage[main]/Git::User/User[git]/ensure: current_value absent, should be present (noop) err: /Stage[main]/Git/File[dirrights]: Could not evaluate: Could not find user git notice: Class[Git::User]: Would have triggered 'refresh' from 1 events notice: Stage[main]: Would have triggered 'refresh' from 1 events notice: Finished catalog run in 0.05 seconds On Tue, Nov 1, 2011 at 3:16 PM, Peter Horvath <peter.horvat...@googlemail.com> wrote: > I call them here. > /etc/puppet/manifests/site.pp > > #Puppet Node configurationsnode eurwebtest01 { include apache2 > include apache2::mods include apache2::vhost-eurwebtest} > node eurwebtest02 { include apache2 include > apache2::mods include apache2::vhost-eurwebtest include > system include git include git::ssh include > git::user include git::sudoers} > node eurwebtest03 { include apache2 include > apache2::mods include apache2::vhost-eurwebtest include > system > include git include git::ssh include git::user > include git::sudoers} > > On 1 November 2011 01:19, Andrew Hendry <andrew.hen...@gmail.com> wrote: >> Hi Peter, >> >> Where do you call "git::user" and "git::ssh" from? >> Maybe the spots where you have require => User['git'], should they be >> require => Class['Git::User']? >> >> Andrew. >> >> On Tue, Nov 1, 2011 at 1:21 AM, Peter Horvath >> <peter.horvat...@googlemail.com> wrote: >>> I am using Ubuntu LTS 10.04 with the backported puppet >>> 2.6.1-0ubuntu2~lucid1 >>> >>> I am trying to create user with the following manifests but at the end >>> always getting the Could not find user git error message: >>> What am i missing, seems the manifest not creating the missing git >>> user. >>> >>> /etc/modules/git/manifests/user.pp >>> >>> class git::user { >>> user{'install': >>> name => 'install', >>> ensure => absent, >>> } >>> >>> user{'git': >>> name => 'git', >>> password => 'xxxxx', >>> ensure => present, >>> comment => 'Git user for puppet', >>> managehome => true, >>> shell => '/bin/bash', >>> uid => '1000', >>> require => User['install'], >>> provider => 'useradd', >>> } >>> Some other classes uses this as requirement: >>> >>> /etc/modules/git/manifests/ssh.pp >>> >>> class git::ssh { >>> package{'ssh': >>> ensure => installed, >>> } >>> >>> file{'dir': >>> ensure => directory, >>> path => '/home/git/.ssh', >>> require => User['git'], >>> } >>> >>> file{'authkey': >>> path => '/home/git/.ssh/authorized_keys', >>> ensure => file, >>> source => '/etc/puppet/modules/git/files/ >>> authorized_keys', >>> owner => 'git', >>> group => 'git', >>> mode => '600', >>> recurse => true, >>> require => User['git'], >>> } >>> >>> /etc/modules/git/manifests/init.pp >>> >>> class git { >>> package{'git-core': >>> ensure => installed, >>> } >>> >>> file{'config': >>> path => '/etc/puppet/.git/config', >>> ensure => file, >>> source => '/etc/puppet/modules/git/files/config', >>> } >>> >>> file{'post_receive': >>> path => '/etc/puppet/.git/hooks/post-receive', >>> ensure => file, >>> source => '/etc/puppet/modules/git/files/post- >>> receive', >>> } >>> >>> file{'dirrights': >>> path => '/etc/puppet', >>> owner => 'git', >>> group => 'root', >>> mode => '755', >>> recurse => true, >>> require => User['git'], >>> } >>> } >>> >>> >>> Thank you >>> Peter >>> >>> -- >>> 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+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://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+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.