Simply Top Ad

Monday, September 12, 2011

'puppet resource user' fails with 'Could not find file /root/resource.pp'

Trying to follow the documentation for 'Puppet', we try a simple

puppet resource user

only to find that we are presented with the error message 'Could not find file /root/resource.pp'.

Googling over the error message returns nothing useful.

The answer is that in Puppet v2.6.0 things were changed to use a single binary rather than several binaries, but you are using a version of Puppet prior to v2.6.0 (for example you are using the one out of Ubuntu 10.04 LTS (Puppet v0.25.4).

(In case you're wondering why the Ubuntu 10.04 version appears to be so hideously ancient, the answer is that it isn't; Puppet switched version numbering paradigms and went straight from v0.25.5 to v2.6.0.)

puppet resource is the new way to invoke ralsh. So the way to do what we originally set out to do it to use

ralsh user

which will give you a dump of user data in Puppet RAL format.

If you have a look at the relevant bit of the changelog you can see the relationship between the new forms and the old forms.

No comments:

Post a Comment