Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Continuing to iterate on a cloud provisioner bootstrapper

  • Loading branch information...
commit cf0b455e9001f8dd497c515efb4be069979ff3ec 1 parent 16112fe
Greg DeKoenigsberg authored
21 bootstrap/puppet/centos/centos6_puppet_cloud_provisioner.sh
@@ -89,9 +89,10 @@ PUPPET=`which puppet`
89 89 GEM=`which gem`
90 90
91 91 # OK, with rubygems installed, install Fog, which is Ruby's cloud library.
92   -# We also need guid.
  92 +# We also need guid and net-scp.
93 93 ${GEM} install fog -v 0.7.2 1>/tmp/130.out 2>/tmp/130.err
94 94 ${GEM} install guid 1>/tmp/140.out 2>/tmp/140.err
  95 +${GEM} install net-scp 1>/tmp/145.out 2>/tmp/145.err
95 96
96 97 # Now install puppet-module so we can install modules directly from
97 98 # the Puppet module repository.
@@ -103,6 +104,11 @@ cd $(${PUPPET} --configprint confdir)/modules
103 104 # Now install the cloud_provisioner module!
104 105 puppet-module install puppetlabs/cloud_provisioner 1>/tmp/160.out 2>/tmp/160.err
105 106
  107 +# OK, now set up Puppet to run in master mode.
  108 +${PUPPET} master --mkusers --verbose
  109 +
  110 +
  111 +
106 112 # After this, you still need to configure the system to actually provision some
107 113 # cloud instances, which means setting up your EC2/Euca credentials. To go on
108 114 # from here, check out:
@@ -110,7 +116,7 @@ puppet-module install puppetlabs/cloud_provisioner 1>/tmp/160.out 2>/tmp/160.err
110 116 # http://docs.puppetlabs.com/guides/cloud_pack_getting_started.html
111 117 # http://forge.puppetlabs.com/puppetlabs/cloud_provisioner
112 118 #
113   -# Here's what I did to get the client working:
  119 +# Subsequent steps to get working in AWS:
114 120 #
115 121 # export RUBYLIB=/etc/puppet/modules/cloud_provisioner/lib/:$RUBYLIB
116 122 # (to get the path working)
@@ -118,7 +124,14 @@ puppet-module install puppetlabs/cloud_provisioner 1>/tmp/160.out 2>/tmp/160.err
118 124 # (to ensure that it installed correctly, should get useful help)
119 125 # edit the .fog file to add key info
120 126 # (follow instructions at http://docs.puppetlabs.com/guides/cloud_pack_getting_started.html)
121   -# FIXME: more here
122   -#
  127 +# euca-authorize -p 8140 default
  128 +# (open port 8140 in the default group so puppet can talk)
  129 +# cat "*" > /etc/puppet/autosign.conf
  130 +# (open the gates for autosigning!) (hmm, not working.)
  131 +#
  132 +# puppet node_aws create --image ami-94cd60fd --keyname amazon-ssh --type m1.small
  133 +# (returned a running instance, hooah!)
  134 +# (note: this alami does NOT work for the bootstrapper itself)
123 135 # TODO:
124 136 # * Add this module to global ruby load path
  137 +# * File a bug getting cloud provisioner to support ALAMI as a target

0 comments on commit cf0b455

Please sign in to comment.
Something went wrong with that request. Please try again.