Skip to content

Instantly share code, notes, and snippets.

@msutter
Created April 5, 2017 12:50
Show Gist options
  • Save msutter/6012cff5ff4c2f873a71e389c2690d76 to your computer and use it in GitHub Desktop.
Save msutter/6012cff5ff4c2f873a71e389c2690d76 to your computer and use it in GitHub Desktop.
# 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 admin@example.com'
# 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