Skip to content

Instantly share code, notes, and snippets.

@equick
Created October 2, 2015 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save equick/de0863a853e24687879c to your computer and use it in GitHub Desktop.
Save equick/de0863a853e24687879c to your computer and use it in GitHub Desktop.
$ diff -u openstack.rb.orig openstack.rb
--- openstack.rb.orig 2015-10-02 15:55:50.275001569 +0100
+++ openstack.rb 2015-10-02 16:33:21.998001380 +0100
@@ -102,7 +102,7 @@
elsif config[:floating_ip_pool]
attach_ip_from_pool(server, config[:floating_ip_pool])
end
- wait_for_server(state)
+ #wait_for_server(state)
setup_ssh(server, state) if bourne_shell?
add_ohai_hint(state)
rescue Fog::Errors::Error, Excon::Errors::Error => ex
@@ -368,11 +368,11 @@
config[:username],
password: config[:password] || server.password)
pub_key = open(config[:public_key_path]).read
- ssh.run([
- %(mkdir .ssh),
- %(echo "#{pub_key}" >> ~/.ssh/authorized_keys),
- %(passwd -l #{config[:username]})
- ])
+ #ssh.run([
+ # %(mkdir .ssh),
+ # %(echo "#{pub_key}" >> ~/.ssh/authorized_keys),
+ # %(passwd -l #{config[:username]})
+ #])
end
def disable_ssl_validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment