Created
August 1, 2017 15:44
-
-
Save salekseev/033d83b23ec2140fb10c9bfd168c81b3 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
stack=devops-graylog | |
puppet_environment=development | |
stack_nodes=$(bundle exec sfn inspect --nodes $stack | egrep '^\s+"10.*' | cut -d'"' -f2) | |
for node in $stack_nodes | |
do | |
ssh $node "sudo bash -c '/opt/puppetlabs/bin/puppet agent -t --environment $puppet_environment' " | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment