-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I had a working 0.19.3 puppet install, but after an upgrade to 0.20 and then restarting puppetmasterd I get the following error: # /etc/init.d/puppetmaster start All resource specifications require names in file /etc/puppet/manifests/modules/ssh_keys.pp at line 24 * Failed to start puppetmaster So, looking at the file in question shows the following code (in condensed form): 1 class ssh_keys { 2 # Commemnts : ... [snip] 19 20 sshkey { name => "portman-linux.goshen.edu", 21 alias => [ "portman-linux", "199.8.232.46" ], 22 type => ssh-rsa, 23 ensure => present, 24 key => "AAAAB3NzaC1yc2EAAAABIwAAAQEAszWe7LXOZ59ZMxgXJEl1... " } Now, this was a valid working conf file, and I cannot see anything that has changed for the sshkey type, nor anything with the class language construct. So, any clue what is wrong with this? - -- Paul Ortman PGP Key: 55602C81 - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFQQwgfw8KGlVgLIERAvOiAJ9EOQP3k3LVM45uEuWAa89hIspa1wCdFcNz Rv4bM5s2eejwY2JrrCXqVIw=6CLt -----END PGP SIGNATURE-----
Paul Ortman wrote:> So, looking at the file in question shows the following code (in > condensed form): > > 1 class ssh_keys { > 2 # Commemnts : ... > > [snip] > > 19 > 20 sshkey { name => "portman-linux.goshen.edu", > 21 alias => [ "portman-linux", "199.8.232.46" ], > 22 type => ssh-rsa, > 23 ensure => present, > 24 key => "AAAAB3NzaC1yc2EAAAABIwAAAQEAszWe7LXOZ59ZMxgXJEl1... " } > > Now, this was a valid working conf file, and I cannot see anything that > has changed for the sshkey type, nor anything with the class language > construct. So, any clue what is wrong with this?Change this to: sshkey { "portman-linux.goshen.edu": ... } I could be convinced to make the old syntax legal again, but supporting it requires the language to know more about the library than I''d like. -- Honest criticism is hard to take, particularly from a relative, a friend, an acquaintance, or a stranger. -- Franklin P. Jones --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul Ortman wrote:> I had a working 0.19.3 puppet install, but after an upgrade to 0.20 and > then restarting puppetmasterd I get the following error.Well the last one was easy to solve, let''s hope this one is as well... I now get an error when I try to import sections of my configuration files. Namely, the first thing I do in my site.pp is include a "common_functions" config file. This seems to want to double-include the file, or at least that seems... site.pp: 1 import "global_functions.pp" global_functions.pp: 1 filebucket { main: 2 server => "puppet" 3 } 4 5 define remotefile($source, $owner = root, $group = root, $mode = 440, $recurse = true, $backup = main, $replace = true ) { 6 file { $name: 7 source => "puppet://puppet/files/$source", 8 backup => $backup, 9 owner => $owner, 10 group => $group, 11 mode => $mode, 12 recurse => $recurse, 13 replace => $replace 14 } 15 } The error I get with the above configs is: puppet # puppetd --server puppet --test err: Could not retrieve configuration: Duplicate definition: filebucket[main] is already defined in file /etc/puppet/manifests/global_functions.pp at line 3; cannot redefine in file /etc/puppet/manifests/global_functions.pp at line 3 warning: Not using cache on failed configuration About the only interesting thing is that /etc/puppet/manifests is a symlink into bzr repository in /var/lib/puppetmaster/manifests/, but that doesn''t seem to be the problem. Thanks for all your help, - -- Paul Ortman PGP Key: 55602C81 - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFQS3/fw8KGlVgLIERAhZwAJ9QKHy7jSgbQ+Zczb+8y+4hCqTXzACffuy5 XY+fdgUQbjbGiV9WNgQl5Nw=q20f -----END PGP SIGNATURE-----
Paul Ortman wrote:> global_functions.pp: > > 1 filebucket { main: > 2 server => "puppet" > 3 }This is a confirmed bug in 0.20; it''s already fixed in oscar (the new dev branch). The workaround for now is to put that filebucket in a class, and then include that class. E.g., in your global_functions file, do this: class buckets { filebucket { main: server => puppet } } include buckets -- Get with the program, jeffrey. No one is "wrong" on Usenet. They are either 100% totally correct, or they are "a lying, scum sucking weasel." There is no in between. -- Garrett Johnson, in talk.politics.misc --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com