OpenShift Ansible Playbooks Replace Space Character with '\_'
Issue
- A space character in the Ansible hosts file gets converted into an unexpected set of characters in master-config.yaml or node-config.yaml
# grep example /etc/ansible/hosts
openshift_master_identity_providers=[{'name': 'example','challenge': 'true','login': 'true','kind': 'LDAPPasswordIdentityProvider','attributes': {'id': ['cn'],'name': ['description'], 'preferredUsername': ['cn']},'insecure': 'false', 'bindDN': 'CN=ose3master,OU=generic,OU=Example Users,DC=ex,DC=etc,DC=com','bindPassword': '********','ca': 'cert.pem','url': 'ldap://test.example.com:389/OU=Example Users,DC=ex,DC=etc,DC=com?cn'}]
# grep example /etc/origin/master/master-config.yaml
url: "ldap://test.example.com:389/OU=Example\_Users,DC=ex,DC=etc,DC=com?cn"
(Note the change from Example Users to Example\_Users)
Environment
- Red Hat OpenShift Container Platform
- 3.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
