Alexandre
2011-Oct-19 14:32 UTC
[Puppet Users] EC2 bootstrap: chicken and egg problem with login as ec2-user and sudoers "requiretty"
Hi, I was previously using an EC2 AMI where i was logging as root, and i could bootstrap nodes. I am now using Amazon AMIs ( http://aws.amazon.com/fr/amazon-linux-ami ) and they require login as ec2-user. The problem is that if i run puppet node bootstrap --login ec2-user, it will detect it and run my install script as with sudo, which is fine, but sudo will not run it because it is configured by default to disallow sudo commands without a tty ( requiretty in /etc/sudoers ). And i can not change the sudoers within my script, since it could not be executed ! Does anyone else is bootstrapping Amazon AMIs with login as ec2-user ? How do you do ? -- 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.