diff options
| author | Thomas Wiest <twiest@users.noreply.github.com> | 2015-08-12 07:47:16 -0400 | 
|---|---|---|
| committer | Thomas Wiest <twiest@users.noreply.github.com> | 2015-08-12 07:47:16 -0400 | 
| commit | 11dd1e5556e52313f8e884b1fe0f9008acf81e71 (patch) | |
| tree | fc3b435ca26c246e64a600d3b9a8c2916bd1f386 | |
| parent | 479020f56a5e593188bafcd19e7dcb56a10e3544 (diff) | |
| parent | 40e6be99ab4e95a27c0f13de3ad6b93c7ddb2674 (diff) | |
| download | openshift-11dd1e5556e52313f8e884b1fe0f9008acf81e71.tar.gz openshift-11dd1e5556e52313f8e884b1fe0f9008acf81e71.tar.bz2 openshift-11dd1e5556e52313f8e884b1fe0f9008acf81e71.tar.xz openshift-11dd1e5556e52313f8e884b1fe0f9008acf81e71.zip | |
Merge pull request #441 from lhuard1A/ansible_host_key_checking_false
Prevent Ansible from serializing tasks
| -rwxr-xr-x | bin/cluster | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/bin/cluster b/bin/cluster index 7eb4a4448..c80fe0cab 100755 --- a/bin/cluster +++ b/bin/cluster @@ -23,6 +23,16 @@ class Cluster(object):                  '-o ControlMaster=auto '                  '-o ControlPersist=600s '              ) +            # Because of `UserKnownHostsFile=/dev/null` +            # our `.ssh/known_hosts` file most probably misses the ssh host public keys +            # of our servers. +            # In that case, ansible serializes the execution of ansible modules +            # because we might be interactively prompted to accept the ssh host public keys. +            # Because of `StrictHostKeyChecking=no` we know that we won't be prompted +            # So, we don't want our modules execution to be serialized. +            os.environ['ANSIBLE_HOST_KEY_CHECKING'] = 'False' +            # TODO: A more secure way to proceed would consist in dynamically +            # retrieving the ssh host public keys from the IaaS interface      def get_deployment_type(self, args):          """ | 
