Hi, I''m getting a "Could not retrieve dependency" error and I can''t figure why. Someone got a cluestick for me? I''m using the following simplified configuration to ensure sshd is running and gets reloaded when the config file changes: ---- site.pp ---- import "classes/sshd.pp" node obsd42 { include ssh-server } node debian40 { include ssh-server } ---- classes/sshd.pp ---- class ssh-server { file { "/etc/ssh/sshd_config": mode => "644", owner => "root", source => "puppet:///files/sshd.config.local", } service { "sshd": ensure => true, subscribe => File["/etc/ssh/sshd_config"], } } While node debian40 (puppet 0.24.1) works as expected, node obsd42 (puppet 0.23.2) drops out with this error: err: Could not apply complete configuration: Could not retrieve dependency ''File[/etc/ssh/sshd_config]'' at /etc/puppet/manifests/classes/sshd.pp:10 Puppetmaster host is SuSE Linux 10.3, puppet 0.24.0. Version incompatibilities? Any workarounds? Thanks, ciao, chakl
On Feb 1, 2008, at 10:01 AM, Olaf Schreck wrote:> Hi, > > I''m getting a "Could not retrieve dependency" error and I can''t > figure why. > Someone got a cluestick for me? > > I''m using the following simplified configuration to ensure sshd is > running > and gets reloaded when the config file changes: > > ---- site.pp ---- > > import "classes/sshd.pp" > node obsd42 { include ssh-server } > node debian40 { include ssh-server } > > ---- classes/sshd.pp ---- > > class ssh-server { > file { "/etc/ssh/sshd_config": > mode => "644", > owner => "root", > source => "puppet:///files/sshd.config.local", > } > service { "sshd": > ensure => true, > subscribe => File["/etc/ssh/sshd_config"], > } > } > > While node debian40 (puppet 0.24.1) works as expected, node obsd42 > (puppet > 0.23.2) drops out with this error: > > err: Could not apply complete configuration: Could not retrieve > dependency ''File[/etc/ssh/sshd_config]'' at /etc/puppet/manifests/ > classes/sshd.pp:10 > > Puppetmaster host is SuSE Linux 10.3, puppet 0.24.0. > > > Version incompatibilities? Any workarounds?I''d try it with 0.24.1, but I don''t specificaly remember this being a problem in 0.24.0. Just so you know, though, dependencies are currently only checked on the client, so its version matters more in this situation. -- That was just a drill of the emergency y2k system. Had this been a real emergency, we would''ve also dumped a bucket of spiders on you and yelled out "civilization is collapsing!" --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
> I''d try it with 0.24.1, but I don''t specificaly remember this being a > problem in 0.24.0. > > Just so you know, though, dependencies are currently only checked on > the client, so its version matters more in this situation.Perhaps I wasn''t quite clear: The client (0.23.2, OpenBSD) gives the error when talking to a 0.24.0 puppetmaster. Meanwhile, I have upgraded the client to 0.24.1, and the problem is gone. Thanks, Luke. ciao, chakl
On Feb 4, 2008, at 10:48 AM, Olaf Schreck wrote:> Perhaps I wasn''t quite clear: The client (0.23.2, OpenBSD) gives the > error > when talking to a 0.24.0 puppetmaster.Ah, in that case, I could have said: 0.23.2 isn''t compatible with 0.24.0 servers. :)> > Meanwhile, I have upgraded the client to 0.24.1, and the problem is > gone.Great. -- People are more violently opposed to fur than leather because it is safer to harrass rich women than motorcycle gangs. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com