You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
ShellFu edited this page Nov 4, 2013
·
5 revisions
~$ Using Facter with Automaton
If you haven't done so already you may read >Basic Usage< as it gives a decent run down of basic commands.
Automaton makes use of puppet's inventory service to lookup facts. Currently all facts are looked up everytime automaton looks up a node. This will be changing to use the stored facts that automaton also provides. So instead of asking the invetory service, automaton will query itself for the facts. If automaton cannot find a fact it will then ask puppets inventory service, and if still no fact is found then it will default to >undef<.
If automaton cannot connect to the inventory service within 5 seconds, it will default to >undef<.
~$ requirements
Using automaton with facter is simple, but it does require the setup of puppet's inventory service.
Here we are going to add a facter fact to the node definition. Lets do something simple and add a parameter to a node. You add facters with %{::factname}
~$ command-line:
shellfu@puppetmaster:~$ automaton update -n mynode -p fact_kernel=%{::kernel}
I, INFO -- : Node >default< Updated.
shellfu@puppetmaster:~$ automaton lookup -n mynode
---
environment: production
classes:
timezone:
timezone: America/Denver
parameters:
fact_kernel: Linux