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
11
votes
1 answer

Could Puppet-reports be removed once these have been processed by Puppet-dashboard or PuppetDB?

Puppet-reports are using a lot of diskspace in: /var/lib/puppet/reports /var/lib/mysql The assumption is that it stores all reports in the MySQL database, because both paths are about the same size. The resource_statuses table consist of rows that…
ujjain
  • 3,983
  • 16
  • 53
  • 91
11
votes
2 answers

Puppet agent certificate verify failure

I have a Puppet Master/Agent set up, and have successfully signed the certificate for the agent on the master. However, when I run puppet agent --test I get a failure that looks like this: Warning: Unable to fetch my node definition, but the agent…
John Smith
  • 111
  • 1
  • 1
  • 3
11
votes
1 answer

What directory and file structure to use for Puppet?

The Puppet tutorials I have read so far haven't mentioned how to structure the puppet .pp. Can anyone share some experiences of what works and scales well?
Sandra
  • 10,303
  • 38
  • 112
  • 165
11
votes
1 answer

How to enable systemd instantiated service with puppet?

I've got the following puppet service: service { "getty@ttyUSB0.service": provider => systemd, ensure => running, enable => true, } When I try to apply this configuration on my client, it throws the following error: err:…
Clayton Louden
  • 333
  • 1
  • 4
  • 16
11
votes
11 answers

System updates for many servers

We have many servers and still want to update them all. The actual way is that any of the sysadmins go from server to server and make a aptitude update && aptitude upgrade - it's still not cool. I am searching now for a solution which is still…
Dennis Wisnia
  • 259
  • 2
  • 12
11
votes
4 answers

Best practice for automated Linux updates

We are working on a way to perform automatic updates for our RHEL/RHEL-based servers. Initial idea: Using Puppet, we disable the default repositories and point to our own. Then, we use ensure => latest for the packages we want to automatically…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
11
votes
2 answers

Puppet - get list of packages and versions

Is it possible to tell puppet to compile a catalog for one (or all) node(s) and save that particular data somewhere? I'm specifically interested in getting all needed packages and their versions per node, but a general approach for getting any data…
Michal Bryxí
  • 417
  • 2
  • 7
  • 17
11
votes
5 answers

How to deploy applications (in .tar.gz) with Puppet?

I'm a beginner with Puppet and I would like to know if I'm on the right way to deploy applications with Puppet. The applciations are in a tar.gz file which contains a file with the version number. So, I do this to deploy (I go on the server and do a…
Richy
  • 115
  • 1
  • 1
  • 4
11
votes
2 answers

What's the difference between include and require in puppet

I have a class in puppet if I have the following code: class A { require B .... } I get circular dependencies error. If I have: class A { include B .... } everything works fine
talg
  • 241
  • 1
  • 3
  • 5
11
votes
2 answers

filebucket configuration in Puppet

How do you configure and work with your Puppet filebucket? I'd like to: Store file bucket data on a single server Be able to audit/parse/prune the file bucket when necessary Ensure that filebucket data is securely transferred between…
robbyt
  • 1,642
  • 3
  • 14
  • 26
10
votes
2 answers

In Puppet, what is the difference between 'include' and 'class'?

I can either write include '::ntp' or I can write class { '::ntp':} What is the difference between them, or do I need both?
x3nr0s
  • 289
  • 2
  • 5
  • 13
10
votes
3 answers

How to reference a hiera variable from elsewhere the hierarchy?

So suppose in a very specific hiera YAML file I define a variable, such as "env_name". env_name: "dev-unstable" Now in a more general hiera file I'd like to interpolate that variable into a string. server_name:…
Mojo
  • 955
  • 2
  • 9
  • 24
10
votes
2 answers

Error 400 on SERVER: The environment must be purely alphanumeric, not 'puppet-ca'

I would like to share this mistake as i have waste for one day on this. So I think i might be useful for other There is a puppet server setup by my colleague in infrastructure team. They provide me another window 2008 r2 to install puppet agent on…
Sarawut Positwinyu
  • 387
  • 1
  • 2
  • 7
10
votes
1 answer

How can I require an array of resources in puppet?

In my Puppet-manifest I need to exec a command, but only after an array-driven collection of another exec finished. Like this (pseudo-code): define foo() { exec { "touch $name": } } .... { $bars = [ "a", "b", "c" ] foo { $bars :…
Mikhail T.
  • 2,338
  • 1
  • 24
  • 55
10
votes
4 answers

How to set up :datadir: when using Hiera with Puppet and Vagrant

I'd like to know how to set up :datadir: in hiera.yaml for optimal usage with Puppet and Vagrant. Currently I'm using vagrant 1.5.0 with virtualbox 4.2 on Ubuntu 13.10 with an Ubuntu 12.04 guest running puppet 3.1.1 I am trying to set up an…
greg_1_anderson
  • 291
  • 1
  • 2
  • 6