summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobreli@redhat.com>2017-06-05 22:06:48 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-06-15 12:35:25 +0200
commita8719af95559926bcf4841197273dfe838a563a4 (patch)
tree37217a2edff5418249f41a21463fb347c3f1c3cb /playbooks
parent4bb2f005bc6cdeb8e656c2b42ac54db8fbd67fb9 (diff)
downloadopenshift-a8719af95559926bcf4841197273dfe838a563a4.tar.gz
openshift-a8719af95559926bcf4841197273dfe838a563a4.tar.bz2
openshift-a8719af95559926bcf4841197273dfe838a563a4.tar.xz
openshift-a8719af95559926bcf4841197273dfe838a563a4.zip
Add ansible.cfg for openstack provider
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/provisioning/openstack/README.md4
-rw-r--r--playbooks/provisioning/openstack/sample-inventory/ansible.cfg19
2 files changed, 23 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/README.md b/playbooks/provisioning/openstack/README.md
index 35f37db0d..fb2053c25 100644
--- a/playbooks/provisioning/openstack/README.md
+++ b/playbooks/provisioning/openstack/README.md
@@ -31,6 +31,10 @@ etc.). The result is an environment ready for openshift-ansible.
cp openshift-ansible-contrib/playbooks/provisioning/openstack/sample-inventory/clouds.yaml clouds.yaml
+### Copy ansible config
+
+ cp openshift-ansible-contrib/playbooks/provisioning/openstack/sample-inventory/ansible.cfg ansible.cfg
+
### Update `inventory/group_vars/all.yml`
Pay special attention to the values in the first paragraph -- these
diff --git a/playbooks/provisioning/openstack/sample-inventory/ansible.cfg b/playbooks/provisioning/openstack/sample-inventory/ansible.cfg
new file mode 100644
index 000000000..a701e59ac
--- /dev/null
+++ b/playbooks/provisioning/openstack/sample-inventory/ansible.cfg
@@ -0,0 +1,19 @@
+# config file for ansible -- http://ansible.com/
+# ==============================================
+[defaults]
+forks = 50
+# work around privilege escalation timeouts in ansible
+timeout = 30
+host_key_checking = false
+inventory = inventory
+inventory_ignore_extensions = secrets.py, .pyc
+gathering = smart
+retry_files_enabled = false
+fact_caching = jsonfile
+fact_caching_connection = .ansible/cached_facts
+fact_caching_timeout = 900
+
+[ssh_connection]
+ssh_args = -o ControlMaster=auto -o ControlPersist=900s -o GSSAPIAuthentication=no
+control_path = /var/tmp/%%h-%%r
+pipelining = True