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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to