sunnuntai 31. maaliskuuta 2013

Puppet Resource Shell

Puppet RAL: original reading http://docs.puppetlabs.com/learning/ral.html

Puppet ships with a tool called puppet resource, which uses the RAL to let you query and modify your system from the shell.

Puppet resource’s first argument is a resource type. If executed with no further arguments…
$ puppet resource user 


… it will query the system and return every resource of that type it can recognize in the system’s current state. You can retrieve a specific resource’s state by providing a resource name as a second argument.

$ puppet resource shnigi


You can get help for any of the Puppet executables by running them with the --help flag, but it’s worth pausing for an aside on puppet describe’s -s flag.

Ei kommentteja:

Lähetä kommentti