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

Puppet agent run errors with `Could not run stack level too deep`

I have configured Puppet Server to use an external CA, and generated the necessary keys. My puppet.conf looks like the following: [master] vardir = /opt/puppetlabs/server/data/puppetserver logdir = /var/log/puppetlabs/puppetserver rundir =…
Metalopholus
  • 1
  • 1
  • 2
0
votes
0 answers

puppet resource ordering via require metaparameter fails to work

In my puppet configuration, I've got a defined resource type as follows. Everything was working fine under puppet 2.7, but after an upgrade to puppet 3.8, I'm having trouble with it. When I create a user, the exec runs without the user and group…
mc0e
  • 5,866
  • 18
  • 31
0
votes
1 answer

Puppet somehow fails to include class containing apache (module) configuration

Recently I've been getting a very strange error when running my Puppet server. Error message: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement,…
0
votes
1 answer

Puppet: DRBD Resource not promoting in Corosync/Pacemaker

I'm trying to recreate a complete cluster setup from blank using puppet. Everything up to this point works, but now the cluster doesn't promote the DRBD resource on either node. This is the working cluster configuration that I'm trying to…
0
votes
0 answers

What is a good way of retrieving/caching external facts using facter?

All of our servers have attributes that we store in a database and I'd like to make these attributes available locally on each server for use by Puppet. I don't want facter to query the database each time facter is run so using a facter executable…
wsaxton
  • 195
  • 11
0
votes
2 answers

How to access facter GCE metadata

Facter contains GCE (Google Compute Engine) metadata details: $ facter | grep gce gce => {"instance"=>{"attributes"=>{}, "description"=>"", "disks"=>[{"deviceName"=>"srvpup01", "index"=>0, "mode"=>"READ_WRITE", "type"=>"PERSISTENT"},…
0
votes
1 answer

Can't install Example42 puppet dashboard module

I installed example42 puppet dashboard module using sudo puppet module install example42-puppetdashboard, after that I added class { 'puppetdashboard': }to default node section in site.pp and triggered puppet agent -t. Everything worked almost good…
Dziki_Jam
  • 33
  • 6
0
votes
0 answers

Can't run foreman-installer on CentOS 7

I'm trying to install foreman on CentOS 7 to work with Puppet 4.5. After performing all the steps from the manual I can't run foreman-installer. [vagrant@puppetmaster ~]$ sudo foreman-installer Could not get default values, check log file at…
Dziki_Jam
  • 33
  • 6
0
votes
1 answer

Is there an onlyif equivalent condition that can apply to a Puppet class or to a "file" command in a manifest?

I am using CentOS 7 with Puppet Enterprise 4.4.x for my Puppet Master. I am using Windows Server 2012 with Puppet Enterprise 4.x for my Puppet Agents. My goal is to have a class in a Puppet Manifest apply conditionally to each Windows Server…
Kiran
  • 67
  • 4
  • 10
0
votes
1 answer

Migrating Puppet Code to Puppet 4: Issue with Classes

We are migrating our Puppet Code from 3.5.7 to 4.5.2 While applying manifests I am getting following error Error: Failed to apply catalog: Parameter unless failed on Exec[sh /home/agile/svncheckout.sh]: 'test -f /home/agile/subversion.done' is not…
Zama Ques
  • 523
  • 1
  • 9
  • 24
0
votes
1 answer

Puppet failed to copy exec catalog

Seeing the following error in Puppet 4 # /opt/puppetlabs/bin/puppet agent --verbose --no-daemonize --onetime Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Caching catalog for…
Zama Ques
  • 523
  • 1
  • 9
  • 24
0
votes
2 answers

Failed to parse inline template: undefined local variable or method

I have below manifests for disk iteration class my_module::filesystem { include 'my_module::params' my_module::recursion { 'start': fssize => '0', disk => $my_module::params::count, } } include my_module::filesystem below is the…
Olive
  • 25
  • 2
  • 5
0
votes
0 answers

Notify value of variable that holds a nested fact - Puppet4

I am trying to understand what the difference is between the following: $major_release = $::facts['os']['release']['major'] $selinux_is_enabled = $::facts['os']['selinux']['enabled'] If I put in my manifest: notify { "major release is:…
moley
  • 1
0
votes
1 answer

Puppet master seems to ignore environment provided by ENC

When runing puppet agent, the first puppet agent run fails, but the second goes through. -We use ENC, and it exports environment. It appears like the ENC was either called after the fail, or for some reason "environment" variable provided by ENC is…
vbartoni
  • 63
  • 5
0
votes
1 answer

mco puppet configuration issues

I am facing some while configuring mcollective for puppet # mco puppet runonce The Marionette Collective version 2.8.8 Unknown command 'puppet', searched for applications…
Zama Ques
  • 523
  • 1
  • 9
  • 24