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
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
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
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?
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
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
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.