You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Hello,
Is it possible to access the variables sent by ENC in facts?
Foreman is sending in ENC some variables as location and hostgroup.
Can I access those in my facts as variables?
Best regards,
Cristian Falcas
jcbollinger
unread,
Mar 19, 2014, 4:37:03 PM3/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
On Wednesday, March 19, 2014 11:56:47 AM UTC-5, Cristian Falcas wrote:
Hello,
Is it possible to access the variables sent by ENC in facts?
Foreman is sending in ENC some variables as location and hostgroup.
Can I access those in my facts as variables?
No. Facts are computed on and by the target node, but the ENC runs on the master. Furthermore, the ENC runs only after receipt of a catalog request (which includes all the node facts). An ENC can use node facts, but not the other way around.
It is conceivable that you could record the ENC-generated info on client nodes, in a file somewhere. In that case, however, you would need to beware of those data becoming stale because they reflect what the ENC yielded on the last run, which might not be the same thing it is about to yield in response to the request being formulated.
John
Cristian Falcas
unread,
Mar 20, 2014, 2:54:40 AM3/20/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Thank you for your answer.
I thought that maybe ENC data is available to facts also, sine puppet
gets the new environment from ENC before starting to run the facts.