I noticed the following problems when working with CloudPack and the
image ami-08728661 (and it probably apples to other CentOS images as
well)
1) the ssh user in this AMI is ec2-user, but sudo to root is not
possible in the ssh command unless pseudo-tty allocation forced with
ssh -t option.
so I changed cloudpack.rb, line 573 from:
ssh_remote_execute(server, options[:login], install_command, options[:keyfile])
to
process = "ssh -t #{options[:login]}@#{server} -i
#{options[:keyfile]} -o UserKnownHostsFile=/dev/null -o
StrictHostKeyChecking=no \"#{install_command}\"";
IO.popen(process) do |f|
until f.eof?
Puppet.info f.gets
end
end
(used external ssh because didnt know how to do it in Net::ssh)
2) There was no /etc/redhat-release file in the image, so
master/lib/puppet/cloudpack/scripts/gems.erb breaks.
For this I hardcoded redhat as default.
Its good to have these fixed if devs seem its important for them.
--
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.
Nigel Kersten
2011-Sep-23 16:03 UTC
Re: [Puppet Users] CloudPack problems with CentOS AMIs
On Thu, Sep 22, 2011 at 8:03 AM, Hamoun gh <hamoun.gh@gmail.com> wrote:> I noticed the following problems when working with CloudPack and the > image ami-08728661 (and it probably apples to other CentOS images as > well) > > 1) the ssh user in this AMI is ec2-user, but sudo to root is not > possible in the ssh command unless pseudo-tty allocation forced with > ssh -t option. > so I changed cloudpack.rb, line 573 from: > ssh_remote_execute(server, options[:login], install_command, options[:keyfile]) > to > process = "ssh -t #{options[:login]}@#{server} -i > #{options[:keyfile]} -o UserKnownHostsFile=/dev/null -o > StrictHostKeyChecking=no \"#{install_command}\""; > IO.popen(process) do |f| > until f.eof? > Puppet.info f.gets > end > end > (used external ssh because didnt know how to do it in Net::ssh) > > 2) There was no /etc/redhat-release file in the image, so > master/lib/puppet/cloudpack/scripts/gems.erb breaks. > For this I hardcoded redhat as default. > > Its good to have these fixed if devs seem its important for them.It would be great if you could file these at: http://projects.puppetlabs.com/projects/cloud-pack -- Nigel Kersten Product Manager, Puppet Labs Join us for PuppetConf <http://www.bit.ly/puppetconfsig> Sept 22/23 Portland, Oregon, USA. -- 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.