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 server multiple SSL certificates?

I have puppet server setup as part of a docker-composition. I have nodes inside the composition which connect directly to the container. This works fine because the Puppet master automatically created an SSL certificate using its local name (only…
Philip Kirkbride
  • 279
  • 2
  • 10
  • 30
0
votes
2 answers

Puppet agent not working without `sudo`

I've installed puppet on an Ubuntu 14.04 system. It works fine when I use: sudo puppet agent -t But: puppet agent -t returns: Warning: Unable to fetch my node definition, but the agent run will continue: Warning: SSL_connect SYSCALL returned=5…
Philip Kirkbride
  • 279
  • 2
  • 10
  • 30
0
votes
1 answer

Environment specific configuration in puppet

I have a custom puppet module for setting up Apache web server and I use templates to copy the configurations. We have different environments like production, Quality Assurance, Integration testing. Each environment has one or more servers. The…
0
votes
1 answer

Where is default sql file for PuppetDb?

I'd like to make some slight modifications to PuppetDB (adding a few columns and a table). I've been reading through the source code and I can't seem to find the default structure that is setup on PuppetDb's initial install. I need to modify the…
Philip Kirkbride
  • 279
  • 2
  • 10
  • 30
0
votes
0 answers

Use encrypted eyaml data from puppet file?

I'm storing some sensitive data using eyaml. I have the encryption part working and integrated into my Hiera setup but I'm not sure how to unencrypt from within a puppet file. When I run the following code in puppet: $message =…
Philip Kirkbride
  • 279
  • 2
  • 10
  • 30
0
votes
1 answer

Puppet use master's ssh key for git clone?

I'm using the vcsrepo puppet module to sync git repositories. # install git repo vcsrepo { "/home/repo": ensure => present, provider => git, source => "git@bitbucket.org:pk2klic/test.git", } It's working on the master server…
Philip Kirkbride
  • 279
  • 2
  • 10
  • 30
0
votes
2 answers

Use Puppetdb for ENC variable?

I'm reading through the Puppet Documentation on adding a custom fact. Most of the information seems related to making module that runs on the agent. In my case I just want a simple environment variable that I could set from the master for each…
Philip Kirkbride
  • 279
  • 2
  • 10
  • 30
0
votes
1 answer

Puppet send extra info when agent connects?

I'm writing an ENC for Puppet. Currently I have a basic template which is hooked up and working: #!/bin/bash if [ "$1" = beta.example.com ]; then echo "environment: beta" else echo "environment: production" fi The value $1 is automatically sent…
Philip Kirkbride
  • 279
  • 2
  • 10
  • 30
0
votes
1 answer

Is /etc/puppetlabs/puppet/puppet.conf on Puppet4 equivilent to /etc/puppet/puppet.conf

I often see tutorials and instructions referencing puppet.conf at /etc/puppet/puppet.conf. I don't have this file but I do have /etc/puppetlabs/puppet/puppet.conf on my computers with Puppet 4 installed. I just want to confirm that these two files…
Philip Kirkbride
  • 279
  • 2
  • 10
  • 30
0
votes
1 answer

Manifests apply failing: using same hostnames in two different manifests file

have written the following manifests using tidy resource to delete old war files $ cat /home/kar/cleanwars.pp node 'node-010.example.com' { tidy { '/home/kar/temp/': path=> '/home/kar/temp/', age => '1w', recurse…
Zama Ques
  • 523
  • 1
  • 9
  • 24
0
votes
0 answers

Puppet applying catalog either in multiple runs or does't apply completely

I have a Win (Server 2012 R2) agent box on which i have installed Active Directory. I am now trying to create OUs in it. [root@myhost] cat create_organizational_unit.pp class infra::ad::create_organizational_unit ( $ou_data =…
Technext
  • 147
  • 2
  • 8
0
votes
1 answer

Sending more than a file to a puppet client

How I must configure a "init.pp" file for sending more than a file in the same class? What I have done is this: class nagios { file { ['/usr/lib64/nagios/plugins/']: path => '/usr/lib64/nagios/plugins/', …
0
votes
1 answer

Puppet,git: Unable to clone

My puppet master has code as below vcsrepo {'/var/www/html': ensure => 'present', provider => 'git', source => "https://github.com/wikimedia/mediawiki.git", revision => 'REL1_23', …
Raja G
  • 289
  • 1
  • 2
  • 10
0
votes
0 answers

Use puppet to append to a file on one node

We have an existing puppet setup that is working well. However, on one node, I want to append a line to a configuration file. How do I do that? The file is currently fully defined in a manifest. The .pp file includes a file { ... } paragraph with a…
mpez0
  • 1,512
  • 9
  • 9
0
votes
1 answer

How to determine when the next puppet agent run will occur?

I am running a Puppet Enterprise Puppet Master (version 2016.2) on RHEL7.2. I think that by default that the puppet agent will run every 30 minutes. But as I watch for the puppet agent to run I do not see it run. I look at the reports for my…
Red Cricket
  • 470
  • 2
  • 8
  • 21