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",
On 21 January 2011 22:35, Peter Berghold wrote:
> Observe the following code sniget:
[...]
> file {
> nagios-ssh-key :
> path => "/home/nagios/.ssh/authorized_keys",
> owner => "nagios", group => "nagios", mode => 0600,
> source => "puppet://puppet/s
But that is not what the complaint is. puppet://puppet/... resolves to the
same thing as puppet://... in my setup. (Each subnet on my network has a
DNS entry for "puppet" pointing to the correct master for that subnet)
On Fri, Jan 21, 2011 at 12:14 PM, Naresh V wrote:
> On 21 January 2011 22
OK...
I had the relationship diagram backwards... (slapping self)
Instead of key -> directory -> home I should have had home->directory->key
Re-reading helps sometimes.
--
Peter L. Berghold
Owner, Shark River Technical Solutions LLC
--
You received this message because you are subscribe
On Fri, Jan 21, 2011 at 9:51 AM, Peter Berghold wrote:
> OK...
>
> I had the relationship diagram backwards... (slapping self)
>
> Instead of key -> directory -> home I should have had home->directory->key
For files puppet will build an implicit dependency. You don't need to
specify the relation
Try using require
user {
nagios :
comment => "Nagios Host Monitoring Service",
shell => "/bin/bash",
home => "/home/nagios",
ensure => present
}
file {
nagios-homedir :
require => User['nagios"],
path => "/home/nagios",
own