Confirmed users
3,990
edits
No edit summary |
|||
Line 7: | Line 7: | ||
== Common Use Cases == | == Common Use Cases == | ||
=== Installing a library for scratchbox === | |||
In this use case, I installed the libhildon-fm-2 library for scratchbox which is accomplished by running this command on any slave (--yes to auto-confirm and --force-yes for the authentication prompts): | |||
/scratchbox/moz_scratchbox -p apt-get --yes --force-yes install libhildonfm2-dev | |||
NOTE: Since puppet runs as root and scratchbox does not allow that I had to use "su - cltbld -c <command>". | |||
NOTE2: Since we are running the command as another user we have to specify a "path" variable. | |||
Puppet verifies if a command has to be installed by checking if a file exists. To indicate this we add the variable "creates". | |||
To see the patch follow this [https://bugzilla.mozilla.org/attachment.cgi?id=405338&action=edit link] and you will see that: | |||
* We created a new package (extras.pp), added an "exec" type section to it and called this package from two of the classes (buildslave.pp & staging-buildslave.pp) that different slaves include. | |||
=== Updating a password === | === Updating a password === | ||
Passwords are stored in a hashed format alongside other user information. We do not put the hashes in a public location for hopefully obvious reasons - please make sure you don't do this by accident. | Passwords are stored in a hashed format alongside other user information. We do not put the hashes in a public location for hopefully obvious reasons - please make sure you don't do this by accident. | ||
Line 17: | Line 28: | ||
=== Installing a package through yum === | === Installing a package through yum === | ||
'''needs testing''' | '''needs testing''' | ||
Installing a package through yum is dead easy. Here's an example for installing nano. | Installing a package through yum is dead easy. Here's an example for installing nano. | ||
== Documentation/Links == | == Documentation/Links == | ||
Puppet has reasonably complete documentation, although navigating it can be a challenge. | Puppet has reasonably complete documentation, although navigating it can be a challenge. | ||
* [http://www.reductivelabs.com/trac/puppet/wiki/TypeReference Type Reference] | * [http://www.reductivelabs.com/trac/puppet/wiki/TypeReference Type Reference] |