[Puppet Users] Execute command on another agent

2011-11-16 Thread mathie
Hello, I have this setup but don't know how to implement it in puppet. There are 3 servers: puppetmaster, agent1, agent2 In order to setup agent1, I need to run a command on agent2 and return the data. I know "file" can generate() function to run a command. However, it runs on the puppetmaste

[Puppet Users] Default value for arguments of a definition

2010-05-22 Thread mathie
For example, I'm trying to define a function to setup the firewall config define fnConfig($pInterface,$pPorts) { file { "/etc/apf/conf.apf": content => template("apf.conf.erb"), notify => Service["apf"], } } However, if I don't specify anything, I would like it to automatically set $p

[Puppet Users] Run puppetd on the same as puppetmaster

2010-05-19 Thread mathie
Hello, I would like to manage configs for the server that is also the puppetmaster. I declare a simple node (just write out a file) and ran this: puppetd --test --graph -w 10 --server puppetmaster.example.com And got this error: Could not retrieve catalog from remote server: Error 400 on SERVER

[Puppet Users] Class vs. definition

2010-01-30 Thread mathie
I'm learning puppet and read the docs. My understanding is that classes are for generic services (singleton, need only once) while definitions are for repetitive calls (like functions). My question is say setting up a web server and ask the conf to listen to only a specific IP. Which should I use?

[Puppet Users] Re: MySQL replication setup with puppet

2010-01-25 Thread mathie
MySQL with an exec {...} Now I need to fine-tune this further for error handling, recovery and repeatability. Upgrade to the latest 0.25 with EPEL RPM is definitely worth it: http://tmz.fedorapeople.org/repo/puppet/epel/5 Son Nguyen On Jan 22, 5:05 pm, mathie wrote: > Hello, > > I

[Puppet Users] Where can I use generate() in additional to file/content?

2010-01-25 Thread mathie
The docs does not mention in which type I can use the function generate (). I know I can use with file { content => generate("bin/sh","/tmp/ server_script.sh"). Where else I can use generate() ? http://docs.reductivelabs.com/references/stable/function.html#generate Thanks -- You received this m

[Puppet Users] MySQL replication setup with puppet

2010-01-22 Thread mathie
Hello, I'm new to puppet (3 days and learning). I've been able to setup the packages, service, users, so on. Is there any existing recipe to setup replication automatically using puppet? The puppetmaster is also the MySQL master and the replication slave is the new machine being setup via puppet.