Observe the following code sniget: user { nagios : comment => "Nagios Host Monitoring Service", shell => "/bin/bash", home => "/home/nagios", ensure => present } file { nagios-homedir : path => "/home/nagios", owner => "nagios", group=>"nagios" , mode => 0700, ensure => directory }
file { nagios-ssh-dir : path => "/home/nagios/.ssh", owner => "nagios", group=>"nagios", mode =>0700, ensure => directory } file { nagios-ssh-key : path => "/home/nagios/.ssh/authorized_keys", owner => "nagios", group => "nagios", mode => 0600, source => "puppet://puppet/ssh-keys/nagios/authorized_keys" } File [nagios-ssh-key] -> File[nagios-ssh-dir] -> File[nagios-homedir] Unless I'm missing something here, what should be happening is /home/nagios gets created first, then /home/nagios/.ssh and lastly the authorized key gets brought in via puppet from the repository... But wait... I'm getting an error instead: rr: /Stage[preamble]/Debian-nrpe/File[nagios-ssh-key]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /home/nagios/.ssh/authorized_keys.puppettmp_8552 at /etc/puppet/manifests/classes/nrpe.pp:35 notice: /Stage[preamble]/Debian-nrpe/File[nagios-ssh-dir]: Dependency File[nagios-ssh-key] has failures: true warning: /Stage[preamble]/Debian-nrpe/File[nagios-ssh-dir]: Skipping because of failed dependencies notice: /Stage[preamble]/Debian-nrpe/File[nagios-homedir]: Dependency File[nagios-ssh-key] has failures: true warning: /Stage[preamble]/Debian-nrpe/File[nagios-homedir]: Skipping because of failed dependencies notice: /Whit[default]: Dependency File[nagios-ssh-key] has failures: true warning: /Whit[default]: Skipping because of failed dependencies notice: /Whit[postamble]: Dependency File[nagios-ssh-key] has failures: true warning: /Whit[postamble]: Skipping because of failed dependencies notice: Finished catalog run in 2.63 seconds OK... so what am I missing? -- Peter L. Berghold Owner, Shark River Technical Solutions LLC -- 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.