Questions tagged [puppet]

Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language.

Puppet is a configuration management tool for Unix and Windows. It works either standalone mode (puppet apply) or in client-server mode (puppet agent) with puppet agents running on client systems checking in with the master daemon on the server on a regular basis. Puppet's written in ruby, and puppet source code, i.e. puppet manifests, uses its own domain-specific language that focuses on declaring the system resources and it's intended state.

Combined with system provisioning tools (PXE, kickstart, FAI, etc), puppet can fully automate any software installation and configuration process that doesn't require a GUI interface.

More info:

Related:

1792 questions
0
votes
1 answer

Is it possible to control Puppet's system services?

I'm using Puppet for a custom system service (GitLab Runner in Docker). I want Puppet to set up and start the service, but I also want to be able to stop and restart it anytime (e.g. through SSH). I read about Puppet's service resource, but it…
0
votes
1 answer

Puppet server and puppet agent 4.8

I have a question on the installation process for windows based modules to be controlled via a puppet master. Curent setup: Puppetmaster linux server Windows 7 workstation running puppet agent and successfully connect to puppetmaster. I want to…
Ankh2054
  • 1,414
  • 13
  • 23
0
votes
2 answers

Puppet/hiera : generate sereval files from one template

I'm running puppet 4 and I would like to generate several config files from the same template with different configurations for each one. for example : # cat /tmp/a.conf test1 # cat /tmp/b.conf test2 And I need to put all those informations in…
Skullone
  • 195
  • 1
  • 1
  • 11
0
votes
1 answer

Puppet migration between two states

If I have a configuration in Puppet which changes between two runs, it is possible to implement some migration tasks for this? For example, I specify apache::vhost { 'vhost.example.com': port => '80', docroot => '/var/www/vhost', } in the…
Hellstorm
  • 145
  • 6
0
votes
1 answer

How to keep newly installed packages in sync from master to nodes with puppet?

I have a setup of a bunch of machines (Ubuntu servers) which are geographically separated and are used for developing the same code-base. Sometimes I need to install packages on the machine from my site and then ssh to all of the others and install…
emmerich
  • 143
  • 5
0
votes
1 answer

How to manage aws autoscaling with puppet

how to manage auto scaling instances with puppet? i want to configure s/w stack based on type of instances (e.g if web then Apache or Nginx and if app then java or php)
0
votes
1 answer

Collect variables over multiple classes

I would like to collect a variable over different classes in Puppet. Is this possible? For example, I want to assign two classes to a node: class { "webapplication1": url => 'webapp1.example.com' } class { "webapplication2": url =>…
Hellstorm
  • 145
  • 6
0
votes
2 answers

How to create a salt stack manifest from an existing machine

We recently lost our system admin. and I have picked up the task of ensuring that if anything bad happens we can recreate our VM's. The systems are FreeBSD various versions. Is there any way i can use something like salt stack, puppet, etc.. to…
MB.
  • 121
  • 4
0
votes
1 answer

Configure puppet to install particular Apache version from PPA

My problem is similar to Installing package from PPA using Puppet but I don't know how to make it work. I want Puphpet to apt to install Apache 2.4.23-5.0 this PPA instead of the normal deb repo. There is already a version of the same name in the…
0
votes
1 answer

puppet resource exec order for an array of items mapped to metaparameters

In what order resources that are mapped in an array for attributes like require, subscribe, before and notify execute ? Also, when execute, will it fetch all resources at once and runs in parallel or is it synchronized ? For example, exec { 'A':…
Kenshin
  • 109
  • 5
0
votes
1 answer

Problems with Puppet module only including a subclass, which seems to be doing an implicit inclusion of the parent class

I'm having trouble figuring out how Puppet does inheritence and auto-inclusion of modules. I have a Puppet class that works as expect when I test it "locally" but fails when I push it to my nodes via the Puppet server. "Locally" means running via…
JDS
  • 2,598
  • 4
  • 30
  • 49
0
votes
1 answer

How to prevent Puppet's file_line resource from always triggering an event?

I use the file_line resource from puppetlabs/stdlib to add lines to a file with Puppet. I would like to trigger a service reload when the file_line actually changes the file. Here is what I've tried: First try service { 'test-service': ensure =>…
pedroapero
  • 131
  • 1
  • 6
0
votes
1 answer

Puppet Run giving Error: failed to execute puppetrun: ERF12-4252

So as in the title, whenever I try to "Run Puppet" from Foreman I get the following error in the GUI. This was all due to, in the beginning a configuration error, where activemq needed to be set up. Once that was determined and set up correctly, I…
0
votes
1 answer

foreman puppet manage 100's of servers without logging in each device

I want to know is there a way to manage hundreds of servers in foreman. Let's say I have 100 machines. In each machine, OS is already installed and ssh is accessible. Now I want to install a particular software through puppet in all these machine…
Kenshin
  • 109
  • 5
0
votes
2 answers

Example of generate('...') use in puppet

I am trying to learn how to use puppet, following along with their Quick Start Guide. I would like to add a time stamp using generate: $timestamp = generate('/bin/date') class helloworld::motd { file { '/etc/motd': owner => 'root', …
43Tesseracts
  • 125
  • 1
  • 6