summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-05 09:14:33 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-05 09:37:43 -0500
commitcfca7b9f7894e2b427ae0753477cd13cc537e348 (patch)
treeec5e1a2c68d3c9c19c94ca17fa97ad8b17614c27 /.gitignore
parent82b4209c02c27ab0e9a6d9c016ff06d12f42a9c1 (diff)
downloadopenshift-cfca7b9f7894e2b427ae0753477cd13cc537e348.tar.gz
openshift-cfca7b9f7894e2b427ae0753477cd13cc537e348.tar.bz2
openshift-cfca7b9f7894e2b427ae0753477cd13cc537e348.tar.xz
openshift-cfca7b9f7894e2b427ae0753477cd13cc537e348.zip
Bug 1274201 - Fixing non-root installations if using a local connection
Previously we were writing out a inventory like this: ~~~ [OSEv3:children] masters nodes [OSEv3:vars] ansible_ssh_user=root deployment_type=openshift-enterprise ansible_connection=local [masters] ose3-master.example.com openshift_hostname=ose3-master.example.com [nodes] ose3-master.example.com openshift_hostname=ose3-master.example.com ose3-node1.example.com openshift_hostname=ose3-node1.example.com ose3-node2.example.com openshift_hostname=ose3-node2.example.com ~~~ The problem with that is now all the hosts are consider local connections. In addition our sudo check wasn't working as expected. We would check that we have sudo, but the playbooks were not running with root privileges. When gathering facts you'd hit: ~~~ __main__.OpenShiftFactsFileWriteError: Could not create fact file: /etc/ansible/facts.d/openshift.fact, error: [Errno 13] Permission denied: '/etc/ansible/facts.d/openshift.fact' ~~~ Instead the test for locale connections needs to be per host. Anytime we're not running as root we need `ansible_become` set: ~~~ ose3-master.example.com openshift_hostname=ose3-master.example.com ansible_connection=local ansible_become=true ~~~
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions