From 4dd6c8204a70f1c53687554ae8df94f883dd3b4c Mon Sep 17 00:00:00 2001 From: Simon Aquino Date: Tue, 21 Oct 2014 23:47:03 +0100 Subject: [PATCH] Facter module should return custom facts The ansible facter module should also return puppet custom facts by default. --- system/facter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/facter.py b/system/facter.py index a72cdc6536f..a4912835447 100644 --- a/system/facter.py +++ b/system/facter.py @@ -45,7 +45,7 @@ def main(): argument_spec = dict() ) - cmd = ["/usr/bin/env", "facter", "--json"] + cmd = ["/usr/bin/env", "facter", "--puppet", "--json"] rc, out, err = module.run_command(cmd, check_rc=True) module.exit_json(**json.loads(out))