Say I need to fireup a new ec2 instance to add to my cluster. Currently what I know to do is (Ubuntu): sudo apt-get install ruby libshawdow-ruby1.8 sudo apt-get install puppet facter (and maybe some other things like build-essential etc). Would this be a good idea? Create a script that contains the above, and then when a new server goes like I do: curl -O http://url_to_script.sh run script Other that this, I guess it is a manual process for figuring out the host of the server, and adding that host to the puppet master based on what kind of node this will be (web, db server, etc) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Brian Gupta
2011-May-28 17:04 UTC
Re: [Puppet Users] ec2 initial server prep tips and tricks
Take a look at https://help.ubuntu.com/community/CloudInit Also consider using an ENC, and passing class information as user data. -Brian On Sat, May 28, 2011 at 6:10 AM, S Ahmed <sahmed1020@gmail.com> wrote:> Say I need to fireup a new ec2 instance to add to my cluster. > Currently what I know to do is (Ubuntu): > sudo apt-get install ruby libshawdow-ruby1.8 > sudo apt-get install puppet facter > (and maybe some other things like build-essential etc). > Would this be a good idea? > Create a script that contains the above, and then when a new server goes > like I do: > curl -O http://url_to_script.sh > run script > > Other that this, I guess it is a manual process for figuring out the host of > the server, and adding that host to the puppet master based on what kind of > node this will be (web, db server, etc) > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On May 28, 2011, at 3:10 AM, S Ahmed wrote:> Say I need to fireup a new ec2 instance to add to my cluster. > > Currently what I know to do is (Ubuntu): > > sudo apt-get install ruby libshawdow-ruby1.8 > sudo apt-get install puppet facterWhile you''re at it, make sure to grab "libaugeas-ruby". If you use it, having that already on the computer is a life-saver, and if you don''t use it, it won''t hurt anything. More things to consider: #Make a config file that will cause puppet to automatically start up. sed ''s/no/yes/'' /etc/default/puppet > /root/puppet #Copy that config file into place. cp /root/puppet /etc/default/puppet I don''t know much about EC2, but if you end up using preseeding, this might help. That should be all one line, but I''m thinking it''s going to get wrapped, so be sure to unwrap it: d-i preseed/late_command string in-target wget --no-proxy http://my.server.com/puppet/setup_puppet.sh --output-document=/root/setup_puppet.sh; in-target bash /root/setup_puppet.sh Again, I don''t know much about EC2, but if bandwidth is expensive and disk space is cheap, you might want to setup an apt caching server on one of these machine. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks I got the cloudconfig to work, very neat! On Sat, May 28, 2011 at 1:06 PM, Patrick <kc7zzv@gmail.com> wrote:> > On May 28, 2011, at 3:10 AM, S Ahmed wrote: > > Say I need to fireup a new ec2 instance to add to my cluster. > > Currently what I know to do is (Ubuntu): > > sudo apt-get install ruby libshawdow-ruby1.8 > sudo apt-get install puppet facter > > > While you''re at it, make sure to grab "libaugeas-ruby". If you use it, > having that already on the computer is a life-saver, and if you don''t use > it, it won''t hurt anything. > > More things to consider: > > #Make a config file that will cause puppet to automatically start up. > sed ''s/no/yes/'' /etc/default/puppet > /root/puppet > #Copy that config file into place. > cp /root/puppet /etc/default/puppet > > > I don''t know much about EC2, but if you end up using preseeding, this might > help. That should be all one line, but I''m thinking it''s going to get > wrapped, so be sure to unwrap it: > > d-i preseed/late_command string in-target wget --no-proxy > http://my.server.com/puppet/setup_puppet.sh--output-document=/root/setup_puppet.sh; in-target bash > /root/setup_puppet.sh > > Again, I don''t know much about EC2, but if bandwidth is expensive and disk > space is cheap, you might want to setup an apt caching server on one of > these machine. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.