This is a function to test configuration generation without applying it to devices. It goes through full configuration rendering and helps to verify configuration content or simply generate it.

Used in conjunction with nr.cfg_gen execution module function.

salt_cfg_gen reference

nornir_salt.plugins.tasks.salt_cfg_gen.salt_cfg_gen(task, config=None, **kwargs)

Task function for nr.cfg_gen function to return template rendered with pillar and Nornir host’s Inventory data.

In essence, this function echoes back content of config argument.

  • config – (str) configuration string to return

  • kwargs – (dict) ignored

Return result

Nornir result object with task execution results