OpenShift Ansible Playbooks Replace Space Character with '\_'

Solution Unverified - Updated -


  • 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:// Users,DC=ex,DC=etc,DC=com?cn'}]
# grep example /etc/origin/master/master-config.yaml
      url: "ldap://\_Users,DC=ex,DC=etc,DC=com?cn"

(Note the change from Example Users to Example\_Users)


  • 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.

Current Customers and Partners

Log in for full access

Log In