Frycooker is the program that takes all your carefully coded recipes and cookbooks and applies them to computers.
An InvalidTarget exception is raised for exceptional conditions encountered while generating target lists.
Apply all specified recipes and cookbooks to the requested hosts.
Parameters: |
|
---|
Get the lists of computers, recipes, cookbooks, and run list to run against. A run list is a dictionary containing a list of recipes and cookbooks to run against each specified computer. Typically the run list will just specify the same recipes and cookbooks for each computer, unless a list of computers was given and the apply (-a) command-line argument was specified. In that case each computer could have different things run against them.
Parameters: |
|
---|---|
Return type: | tuple of (dictionary, list, list, list) |
Returns: | (run list, host list, recipe list, cookbook list) |
Get a list of computers to run against from the command-line arguments. Translate group names into lists of computers.
Parameters: |
|
---|---|
Return type: | list of strings |
Returns: | list of computer names to run against |
Parse the command-line arguments, using python’s argparse library.
Return type: | argparse args object |
---|---|
Returns: | object containing attributes for all possible command-line arguments |
Load the environment json file, loading additionaly imported environment files and massaging environment paths in the process.
Parameters: | filename (string) – filename of environment file to read |
---|---|
Return type: | dictionary |
Returns: | dictionary representation of environment |
Load the settings json file, massaging its environment paths in the process.
Parameters: |
|
---|---|
Return type: | dictionary |
Returns: | dictionary representation of settings |
Recursively iterate through all the keys in the environment dictionary and look for any that contain the strings ‘path’ or ‘dir’ in them. For the values corresponding to the keys that do, replace any instances of the ‘~’ character with the running user’s home directory path.
Parameters: | env (dictionary) – environment dictionary |
---|
Ouptput all the post-apply messages for the specified recipes and cookbooks.
Parameters: |
|
---|
Ouptput all the pre-apply messages for the specified recipes and cookbooks.
Parameters: |
|
---|