I'm trying to export factor system variable using Mcollective shell agent. But once check the factor list new variable is not set properly. What could be the reason here ?
Setting this variable though puppet is not possible as puppet catalog run lookup for this custom factor and then resolve the node. So the facter variable must be set before puppet run.
Is there any other Mcollective agents which could use for this purpose.
mco shell run "export FACTER_deployment_pattern='pattern2'"; factor
- [ ============================================================> ] 2 / 2
puppetagent:
qaa-node-5:
Finished processing 2 / 2 hosts in 146.06 ms