Dear CFEngineer,
Fosdem and Configmanagement Camp are due in about one month.
I will do a talk on external data for nodes, CFEngine nodes too, in a landscape.
The idea is that a node sends a message to Data and then receives a tailor made set of data it can use for its operation. In principple Data serves any node that is able to send, receive and process a message.
CFEngine nodes invoke a Python script in the bginning of the process.
The nodes bother Data a bit too much, because they send the message nine times!
Up to now I use the following line to obtain the data:
"response" string => execresult("/var/cfengine/bin/cf-message.py '$(node_hard_classes_feed)'","noshell");
The requirements are:
1. The data should become available at the beginning of the run
2. The data has to be stored in the json format
3. The data has to become available in a variable, not on disk
Is there a way to avoid the agent to send the message nine times?
Regards,
Martin.