Created
April 5, 2017 12:50
-
-
Save msutter/6012cff5ff4c2f873a71e389c2690d76 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
# commands to be used on the bastion host | |
file=/etc/origin/master/master-config.yaml | |
key=projectConfig.projectRequestMessage | |
value='Please create project using the portal or contact [email protected]' | |
# list entry | |
ansible masters -m command -a "/usr/local/sbin/yamledit -f ${file} -g ${key}" | |
# update entry | |
ansible masters -m command -a "/usr/local/sbin/yamledit -y -f ${file} -o ${file} -r ${key} '${value}'" | |
# restart master services | |
ansible masters -m command -a 'systemctl restart atomic-openshift-master-controllers' | |
ansible masters -m command -a 'systemctl restart atomic-openshift-master-api' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment