diff options
author | Akram Ben Aissi <akram@free.fr> | 2014-12-11 13:52:16 +0100 |
---|---|---|
committer | Akram Ben Aissi <akram@free.fr> | 2014-12-12 09:17:07 +0100 |
commit | f929f3f94c7c89e40f9c8e2b85293f496101aebe (patch) | |
tree | dff6a02b0883306ef42a7b1721298bc03962d710 /lib | |
parent | 95ae631e6e5f2230a912d65d7add0178e7878079 (diff) | |
download | openshift-f929f3f94c7c89e40f9c8e2b85293f496101aebe.tar.gz openshift-f929f3f94c7c89e40f9c8e2b85293f496101aebe.tar.bz2 openshift-f929f3f94c7c89e40f9c8e2b85293f496101aebe.tar.xz openshift-f929f3f94c7c89e40f9c8e2b85293f496101aebe.zip |
Adding AWS support to openshift-ansible module
- Update documentation to say that ssh configuration need to point to the private key file
- Removing the -p argument when calling time .... because it is misintrepreted by ruby
- Turning the cluster.sh to agnostic in its help/error message by replacing explicit reference to GCE by a a variable
- Fixing a bug within the playbooks that incorrectly references the minions and master fact group.
- Adding playbooks for AWS, which are almost of copy/paste for those of GCE
- Added environment variable OO_PROVIDER to allow definition of the provider. Defaults is gce
- TODO implement the terminate.yml cookbook
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ansible_helper.rb b/lib/ansible_helper.rb index 76af73b0d..080c9d00b 100644 --- a/lib/ansible_helper.rb +++ b/lib/ansible_helper.rb @@ -25,7 +25,6 @@ module OpenShift tmpfile = Tempfile.open('extra_vars') { |f| f.write(@extra_vars.to_json); f} cmds = [] - #cmds << 'set -x' cmds << %Q[export ANSIBLE_FILTER_PLUGINS="#{Dir.pwd}/filter_plugins"] @@ -35,8 +34,7 @@ module OpenShift # We need pipelining off so that we can do sudo to enable the root account cmds << %Q[export ANSIBLE_SSH_PIPELINING='#{@pipelining.to_s}'] - cmds << %Q[time -p ansible-playbook -i #{@inventory} #{@verbosity} #{playbook} --extra-vars '@#{tmpfile.path}'] - + cmds << %Q[time ansible-playbook -i #{@inventory} #{@verbosity} #{playbook} --extra-vars '@#{tmpfile.path}' ] cmd = cmds.join(' ; ') pid = spawn(cmd, :out => $stdout, :err => $stderr, :close_others => true) |