Created
October 19, 2017 13:28
-
-
Save WhatsARanjit/68c007930f4e66bb662b0e68d2c2a914 to your computer and use it in GitHub Desktop.
External fact task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# puppet task run facter_task --query 'nodes[certname]{}' fact=datacenter | |
Starting job ... | |
New job ID: 115 | |
Nodes: 2 | |
Started on node1 ... | |
Started on puppet2017.3.0.puppetlabs.vm ... | |
Finished on node node1 | |
status : | |
Finished on node puppet2017.3.0.puppetlabs.vm | |
status : | |
Job completed. 2/2 nodes succeeded. | |
Duration: 2 sec | |
# puppet task run puppeteer::external_fact --query 'nodes[certname]{}' fact=datacenter value=rhode_island | |
Starting job ... | |
New job ID: 112 | |
Nodes: 2 | |
Started on node1 ... | |
Started on puppet2017.3.0.puppetlabs.vm ... | |
Finished on node node1 | |
status : created | |
message : 'datacenter' value set to 'rhode_island'. | |
new_value : rhode_island | |
old_value : | |
Finished on node puppet2017.3.0.puppetlabs.vm | |
status : created | |
message : 'datacenter' value set to 'rhode_island'. | |
new_value : rhode_island | |
old_value : | |
Job completed. 2/2 nodes succeeded. | |
Duration: 2 sec | |
# puppet task run facter_task --query 'nodes[certname]{}' fact=datacenter | |
Starting job ... | |
New job ID: 113 | |
Nodes: 2 | |
Started on node1 ... | |
Started on puppet2017.3.0.puppetlabs.vm ... | |
Finished on node node1 | |
status : rhode_island | |
Finished on node puppet2017.3.0.puppetlabs.vm | |
status : rhode_island | |
Job completed. 2/2 nodes succeeded. | |
Duration: 2 sec | |
# puppet task run puppeteer::external_fact --query 'nodes[certname]{}' fact=datacenter value=oregon | |
Starting job ... | |
New job ID: 120 | |
Nodes: 2 | |
Started on node1 ... | |
Started on puppet2017.3.0.puppetlabs.vm ... | |
Finished on node node1 | |
status : changed | |
message : 'datacenter' value updated to 'oregon'. | |
new_value : oregon | |
old_value : rhode_island | |
Finished on node puppet2017.3.0.puppetlabs.vm | |
status : changed | |
message : 'datacenter' value updated to 'oregon'. | |
new_value : oregon | |
old_value : rhode_island | |
Job completed. 2/2 nodes succeeded. | |
Duration: 2 sec | |
# puppet task run puppeteer::external_fact --query 'nodes[certname]{}' fact=datacenter remove=true | |
Starting job ... | |
New job ID: 117 | |
Nodes: 2 | |
Started on node1 ... | |
Started on puppet2017.3.0.puppetlabs.vm ... | |
Finished on node node1 | |
status : changed | |
message : 'datacenter' value updated to ''. | |
new_value : | |
old_value : rhode_island | |
Finished on node puppet2017.3.0.puppetlabs.vm | |
status : changed | |
message : 'datacenter' value updated to ''. | |
new_value : | |
old_value : rhode_island | |
Job completed. 2/2 nodes succeeded. | |
Duration: 2 sec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment