infrahouse_toolkit.cli.ih_puppet.cmd_apply package

Module contents

infrahouse_toolkit.cli.ih_puppet.cmd_apply.install_module_dependencies(module_path: str, env: dict = None)[source]

Assuming each subdirectory in module_path is a puppet module, read its metadata.json and install puppet module dependencies in the same directory.

Parameters:
  • module_path (str) – Path to a directory with puppet modules.

  • env (dict) – Environment variables for the puppet command.

infrahouse_toolkit.cli.ih_puppet.cmd_apply.strip_colors(text: str) str[source]

Credit: https://stackoverflow.com/questions/14693701/how-can-i-remove-the-ansi-escape-sequences-from-a-string-in-python

Parameters:

text – ANSI colored text

Returns:

The input text w/o colors.