-
-
Save skywalka/dd571cff10f02c7cb05f to your computer and use it in GitHub Desktop.
Revisions
-
jpadams revised this gist
Mar 13, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ while read certname; do /opt/puppet/bin/puppet node deactivate $certname /opt/puppet/bin/puppet cert revoke $certname /opt/puppet/bin/puppet agent -t /opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile RAILS_ENV=production node:del["$certname"] /opt/puppet/bin/puppet cert clean $certname done /sbin/service pe-memcached restart -
jpadams revised this gist
Mar 13, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,8 +4,8 @@ # ignores mcollective deactivation # read certnames from STDIN (one per line) and deactivate while read certname; do /opt/puppet/bin/puppet license 2>&1 | head - -n2 /bin/su - peadmin -c "/opt/puppet/bin/mco service stop pe-puppet -I $certname" /opt/puppet/bin/puppet node deactivate $certname /opt/puppet/bin/puppet cert revoke $certname /opt/puppet/bin/puppet agent -t -
jpadams revised this gist
Mar 13, 2015 . 1 changed file with 14 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,17 @@ #! /bin/bash # node deactivation for an all-in-one (aka monolithic) PE master # ignores mcollective deactivation # read certnames from STDIN (one per line) and deactivate while read certname; do /bin/su - peadmin -c "/opt/puppet/bin/mco service stop pe-puppet -I $certname" /opt/puppet/bin/puppet license 2>&1 | head - -n2 /opt/puppet/bin/puppet node deactivate $certname /opt/puppet/bin/puppet cert revoke $certname /opt/puppet/bin/puppet agent -t /opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile RAILS_ENV=production node:del["$1"] /opt/puppet/bin/puppet cert clean $certname done /sbin/service pe-memcached restart /sbin/service pe-puppetserver restart /opt/puppet/bin/puppet license 2>&1 | head - -n2 -
jpadams created this gist
Mar 13, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ /opt/puppet/bin/puppet license 2>&1 | head - -n2 /opt/puppet/bin/puppet node deactivate $1 /opt/puppet/bin/puppet agent -t /opt/puppet/bin/puppet cert revoke $1 /sbin/service pe-memcached restart /sbin/service pe-puppetserver restart /opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile RAILS_ENV=production node:del['$1'] /opt/puppet/bin/puppet license 2>&1 | head - -n2