[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: OSEv3:vars ignore



Hi.

------ Originalnachricht ------
Von: "Daniel Kučera" <daniel kucera gmail com>
An: "users" <users lists openshift redhat com>
Gesendet: 30.11.2017 20:59:30
Betreff: OSEv3:vars ignore

Hi all!

I'm running following command to add new node to cluster:

ansible-playbook -v -i /root/hosts-openshift-rhldev
openshift-ansible/playbooks/byo/openshift-master/scaleup.yml
The scaleup playbook does not use all the variables as the config.yml, afaik.

I run the "openshift-ansible/playbooks/byo/config.yml" normally alway after any scalup /-down just to be on the safe site.


If I add a variable to [OSEv3:vars] section, it's ignored. If I add
the variable on the host line, it is applied successfully.

To clarify - this doesn't work:

[OSEv3:vars]
openshift_master_identity_providers=[{'name': 'my_ldap_provider',
'challenge': 'true', 'login': 'true', 'kind':
'LDAPPasswordIdentityProvider', 'attributes': {'id': ['dn'], 'name':
['cn'], 'preferredUsername': ['uid']}, 'bindDN': '', 'bindPassword':
'', 'ca': '', 'insecure': 'true', 'url':
'ldap://1.2.3.4/cn=users,cn=accounts,dc=test,dc=local?uid?sub'}]

[new_nodes]
master2.test.local

and this does:

[OSEv3:vars]

[new_nodes]
master2.test.local openshift_master_identity_providers="[{'name':
'my_ldap_provider', 'challenge': 'true', 'login': 'true', 'kind':
'LDAPPasswordIdentityProvider', 'attributes': {'id': ['dn'], 'name':
['cn'], 'preferredUsername': ['uid']}, 'bindDN': '', 'bindPassword':
'', 'ca': '', 'insecure': 'true', 'url':
'ldap://1.2.3.4/cn=users,cn=accounts,dc=test,dc=local?uid?sub'}]"

What am I doing wrong? How can I have the settings in vars section
applied when running specific playbooks?

Thanks.


--

S pozdravom / Best regards
Daniel Kucera.

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]