Python client for Hiera hierachical database.
Python client for Hiera hierachical database.
Create a new instance with the given settings.
Key value params passed into this will be added to the environment when running the hiera client. For example, (environment=’developer’, osfamily=’Debian’) as keyword args to __init__ would result in hiera calls like this:
hiera –config <config_filename> <key> environment=developer osfamily=Debian
Parameters: |
|
---|
Request the given key from hiera.
Returns the string version of the key when successful.
Raises hiera.exc.HieraError if the key does not exist or there was an error invoking hiera. Raises hiera.exc.HieraNotFoundError if the hiera CLI binary could not be found.
Parameters: | key_name – string key |
---|---|
Return type: | str value for key or None |
Python client for Hiera hierachical database.
Create a new instance with the given settings.
Key value params passed into this will be added to the environment when running the hiera client. For example, (environment=’developer’, osfamily=’Debian’) as keyword args to __init__ would result in hiera calls like this:
hiera –config <config_filename> <key> environment=developer osfamily=Debian
Parameters: |
|
---|
Request the given key from hiera.
Returns the string version of the key when successful.
Raises hiera.exc.HieraError if the key does not exist or there was an error invoking hiera. Raises hiera.exc.HieraNotFoundError if the hiera CLI binary could not be found.
Parameters: | key_name – string key |
---|---|
Return type: | str value for key or None |