Quantcast
Channel: Puppets on UnixDaemon: In search of (a) life
Viewing all articles
Browse latest Browse all 101

Facter: Ansible facts in Puppet

$
0
0
Have you ever needed to access Ansible facts from inside Puppet? well, if you ever need to, you can use the basic ansible_facts custom fact. # make sure you have ansible installed $ sudo puppet resource package ansible ensure=present # clone my experimental puppet fact repo $ git clone https://github.com/deanwilson/unixdaemon-puppet_facts.git # Try running the fact $ ruby -I unixdaemon-puppet_facts/lib/ `which facter` ansible_facts -j { "ansible_facts": { "ansible_architecture": "x86_64", "ansible_bios_date": "04/25/2013", "ansible_bios_version": "RKPPT%$DSFH.

Viewing all articles
Browse latest Browse all 101

Trending Articles