[Puppet Users] Puppet in EC2

2013-03-09 Thread sylvainkalache
Hello! I'm looking for the best way to integrate Puppet with EC2, I read posts on that group but they are all old, I wanted to know if things have changed since then. So far here are the possibilities I found to tight EC2 with Puppet: -Use the instance name as reference like

[Puppet Users] Re: Puppet in EC2

2013-03-09 Thread ad
I use the same small script to bootstrap puppet on any server whether it's EC2 or not. It 1) sets the hostname 2) installs puppet 3) sets the puppet master in puppet.conf 4) runs puppet I sign the cert and from that point on use an ENC (I like Foreman) to add classes, set environments,

[Puppet Users] dependency problem when apply class

2013-03-09 Thread mike
Hi guys, I need help with the class, i have created my class (users) but when i apply from agent apers the next error: [] [root@nodo1 ~]# puppet agent --test --verbose --noop Info: Retrieving plugin Info: Caching catalog for nodo1.example.com Error: Failed to apply catalog: Could

[Puppet Users] serving large files formally code artifacts best practices

2013-03-09 Thread Eslam Mamdouh El Husseiny
Hi All, I'd like to know best practices in serving code artifacts tarballs though puppet , I used to serve them using file{} resource but this method doesn't seem a good way as i have to either include code artifacts tarballs in puppet codebase repository or configuring puppet codebase repository

[Puppet Users] inplace line manipulation

2013-03-09 Thread Eslam Mamdouh El Husseiny
Hi Everybody, I'm searching for a way to manipulate file lines using patterns i.e. existing patterns is git+ssh://g...@github.com/User/Repo.gitand i want to change its occurrence to git+ http://user_name:passw...@github.com/User/Repo.git I've checked file_line{} resource in puppetlabs stdlib, but

RE: [Puppet Users] inplace line manipulation

2013-03-09 Thread Steven Nemetz
exec has been used to do this since puppet's early days. You can use your choice of systems tools (sed, perl, ...) Then put it into a define, so it can be called on many different file and multiple times Some examples: http://projects.puppetlabs.com/projects/1/wiki/simple_text_patterns

RE: [Puppet Users] serving large files formally code artifacts best practices

2013-03-09 Thread Steven Nemetz
Ideally, use packages instead. But if that is not possible. Put the tarballs on a web server and have the agents pull the files from there. It will be much faster than puppet distributing the files and they will not be in the codebase. On my repo server, I have a directory for tarballs for

[Puppet Users] Re: Puppet in EC2

2013-03-09 Thread Felipe Salum
I use an in-house bootstrap script that: - launch an ec2 instance - sets the hostname - add to route53 - install puppet - run puppet agent --server my-puppetmaster My puppetmaster only accepts requests from ec2 instances from my aws account and auto sign the certificate, also installs

[Puppet Users] Windows Fact for architecture !!!

2013-03-09 Thread Rakesh Kathpal
Hi, I am trying to write a manifests for windows and need to do a sequence of things based on architecture.. but the current windows facts like architecture etc are giving me ambiguous results... I am using puppet version 2.7.20 and prefect to use the same version for a while.. Can someone

Re: [Puppet Users] dependency problem when apply class

2013-03-09 Thread Keith Burdis
There is no user type declared in the users class. Perhaps move the user type call out of the adm_user define. On 9 Mar 2013 17:57, mike miguelc...@gmail.com wrote: Hi guys, I need help with the class, i have created my class (users) but when i apply from agent apers the next error: