Hi folks; I''m stumped on this one...
I''m working with fileserving on puppet, and am getting an error which
makes no sense to me. Ultimately, I want to get a series of files in
to /root/scripts. All of those files are housed in /var/lib/puppet/
files/scripts
Likewise, I am trying to get a series of authorized_keys files copied
over. Those files will go to their respective user''s .ssh directory,
and are housed at /var/lib/puppet/files/auth_keys
Both locations are defines in fileserver.conf; puppetmaster has been
(repeatedly) restarted.
Yet and still, I am getting the below errors/warnings when I run
puppetd --test --noop --debug:
err: //File[/root/scripts]: Failed to generate additional resources
during transaction: undefined method `each'' for nil:NilClass
warning: //File[/home/user/.ssh/authorized_keys]/ensure: No specified
sources exist (I''ve replaced the actual username with "user")
The auth keys are currently to be copied individually; i.e. there is a
separate resource for each user, right now.
The /root/scripts, if I delete the directory, gets re-created with
correct permissions, but the files within do not.
For the script copy, I have in my recipes:
file {
"/root/scripts":
owner => root,
group => root,
mode => 0700,
recurse => true,
ensure => "present",
source => "puppet://testbox.valhalla/root_scripts";
}
For the ssh key copy, I have in my recipes:
file {
"/home/user/.ssh/authorized_keys":
owner => "user",
group => "root",
mode => 0400,
ensure => ''present'',
source => "puppet://testbox.valhalla/auth_keys/
authorized_keys.user";
}
In the fileserver.conf file, I have:
[auth_keys]
path /var/lib/puppet/files/auth_keys
allow 192.168.0.0/24
allow *.valhalla
#allow localhost
[root_scripts]
path /var/lib/puppet/files/scripts
allow 192.168.0.0/24
allow *.valhalla
This, as far as I can figure, *should* allow that copy to happen. I
think the Nil error above has something to do with it, but I''ve no
idea what would be causing it. Is there something else in the debug
that I should be looking for to help fix this? Stumped...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---