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

learn more… | top users | synonyms

2
votes
1answer
30 views

How to secure configuration management server

There are many configuration management software options nowadays (Chef, Puppet, CFEngine, Ansible...) which offer an architecture with their repository on a central server and clients communicating ...
9
votes
3answers
5k views

Ansible, Chef, Puppet or ____ : Which has the strongest Windows support and smallest init footprint

We do mostly (but not exclusively) win servers. Preferably, we can start the OS and do little or nothing to it to make it ready to receive commands (we know we may need to create a base image with ...
-1
votes
0answers
14 views

Fatal error: Call to undefined function simplexml_load_file() on Puphpet

I have just booted up a new VM using Puphpet, VirtualBox(5.0.14) and Vagrant(1.8.1). I am running on Ubuntu 14.04 with PHP 5.6.2 and am getting this error: Fatal error: Call to undefined function ...
5
votes
3answers
12k views

Could not call sign: Could not find certificate request for puppet

I'm getting started with puppet on ec2 using the following guide. https://help.ubuntu.com/12.04/serverguide/puppet.html In the very last step when I try to sign the puppet client from the puppet ...
2
votes
1answer
22 views

yum install Puppet 4.x on a CentOS 6 machine

I have a machine running CentOS 6.6 and I want to install Puppet 4.x on it. I followed the instructions on the documentation page and I installed the Puppet repository first: rpm -ivh ...
0
votes
2answers
1k views

Puppet: Test if a virtual Resource exists or is defined?

Previously on ServerFault, it was shown how to test if a Resource was defined: Puppet: Test that a Resource is defined? if defined(File["/tmp/foo"]) { alert("/tmp/foo is defined") } else { ...
1
vote
0answers
16 views

How to maintain empty directories recursively via Puppet

We have a puppet module which contains s class which creates a bunch of directories on a Linux filesystem: class dim_dcm::dirstruct::workflow () { file { "/opt/dirstruct/etc": ensure => ...
1
vote
1answer
20 views

PostgreSQL 9.5 via puppet module fails to install on Ubuntu Trusty

Attempting to use Puppet to install PostgreSQL 9.5 on an Ubuntu Trusty, using all the documentation I could find, with the following simple class structure: class { 'postgresql::globals': ...
0
votes
1answer
26 views

Node.js module won't reinstall using puppet / vagrant

Previously I had a similar configuration to this working but as soon as I added hiera to my puppet build I started having problems. The error I currently have after running vagrant provision is as ...
1
vote
2answers
1k views

What is required to transition a puppet installation to use directory environments?

I am currently running a small puppetmaster + client configuration that is not utilizing Puppet's directory environment feature. My puppet version is 3.6. I have tried the following: On the ...
1
vote
2answers
709 views

puppet onlyif with pgrep does not work

I want to use an exec in puppet onlyif its process is NOT running exec { "execute me": onlyif => "pgrep -fc 'ruby execute.rb'", command => "execute me", } So on the above case, if ...
1
vote
0answers
53 views

Periodical changes in Remote Host Identification (SSH) on CentOS 6

I have this following error when I tried to connect using SSH: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ ...
7
votes
2answers
2k views

How to manually create Puppet CA and certificates?

I am wondering how to manually (using openssl instead of puppet ca command) create CA that would be usable by Puppet? The goal would be to script creation of such CA's to deploy them on multiple ...
0
votes
1answer
37 views

Recurring Ansible Tasks

I've been familiarizing myself with Ansible and Puppet for use as a provisioning and configuration management tool. I may not be misunderstanding something about the way Anisble is used, but the only ...
1
vote
1answer
1k views

Foreman-Installer failed to install - puppet cert --generate FQDN returned 23 instead of one of [0] - Ubuntu 14.04

I tried to install Foreman serveral times at my Ubuntu 14.04 Server. Foreman 1.5 and 1.6 always fail at the same time with following error : /usr/bin/puppet cert --generate ubuntutest.domain.com ...
0
votes
1answer
12 views

Puppet class not found because of metadata.json

I just want to add my experience here. So I had this module, let's call it test for now with this directory structure : /etc/puppet |- modules |- test | |- manifests ...
23
votes
4answers
32k views

Could not find class, and yet it is there

When doing a puppet agent call from a new image, I'm getting a err: Could not find class custommod error. The module itself is in /etc/puppet/modules/custommod same as all of the other modules we're ...
1
vote
1answer
1k views

Puppet configuration file on Windows

I'm running puppet on windows as an admin (testing on windows 7, even though it is not officially supported). When I install puppet following the windows installation instructions, no puppet.conf file ...
2
votes
3answers
3k views

How to get Run Puppet button working on Foreman?

First of all, I know there is already a very similar question here on serverfault, but it doesn't quite answers my problem. So, my setup is the following: I have one server, running Ubuntu 14.04 LTS ...
2
votes
2answers
2k views

“Run Puppet” function in Foreman works inconsistently

First, a quick overview of our setup: We have a Foreman instance running properly, let's call it foreman. The Puppet master works well, let's call it puppetmaster. There are two hosts contactable ...
3
votes
3answers
1k views

Puppet doesnt sign certs

I have build an testlap for puppet, but it doesnt work. I start the Puppet Agent on the Node and he waits for the Certificate. root:~# puppet agent --server xxxx --waitforcert 60 --test warning: ...
1
vote
2answers
52 views

Puppet: how to add a line to an existing file

Edit: The example below is correct and works perfectly. But for some reason it was not working for me at the first time and then I did vagrant provision and then everything worked perfectly. I am ...
0
votes
1answer
13 views

Error 400 on server: Could not find class docsf

I try to include the module docsf on my Foreman/Puppet-System. I cloned the git and moved the content to the modules-path /etc/puppet/environments/production/modules. If I assign the module to a ...
1
vote
0answers
21 views

Getting puppetlabs-apt module apt::ppa working in puppet hiera

I'm using the puppetlabs-apt forge module together with hiera in puppet 3.8.5. Adding apt::sources works: apt::sources: 'ubuntu': location: 'http://server.com/ubuntu' release: ...
0
votes
1answer
30 views

Puppet: Error 400 on SERVER: Permission denied

I would like to use DOCSF-module (from github). If I try to use it I'm getting this result: Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Error ...
0
votes
0answers
11 views

What replaces 'inherits' in Puppet?

The way I've done things with puppet is always to have a node specific file and a default file (or really one default per platform type). So each site would have: node "linux" { ... } node ...
2
votes
4answers
8k views

puppet master REST API returns 403 when running under passenger works when master runs from command line

I am using the standard auth.conf provided in puppet install for the puppet master which is running through passenger under Nginx. However for most of the catalog, files and certitifcate request I get ...
0
votes
0answers
14 views

Unable to use config.pp in puppetserver 2.3.1(master) and puppet 4.x(client)

1 I am following this guide. So bascially in my manifests directory I have everything in here. When I run puppet agent -t in the client. I got the following error. error: Could not retrieve catalog ...
0
votes
1answer
30 views

Why is apache installing when PHP module included?

I am using Debian 7.x This is such odd behavior I am invoking puppet through vagrant provisioner I am using puppetlabs/debian-7.8-64-puppet as the base image Why is Apache loading even though ...
0
votes
1answer
1k views

generate ssh host keys for clients on puppetmaster

I look for a solution to create the ssh host keys for my puppet clients on the puppetmaster. I did some research and found http://jsosic.wordpress.com/2012/12/04/managing-ssh-host-keys-with-puppet/, ...
-2
votes
0answers
22 views

How do I run puppet module on a remote server from inside ruby code?

From the Rails app I need to provision, configure and manage servers on Amazon AWS and Digital Ocean. Some time ago I've been using puppet, but from the command line. Would that be possible to do the ...
0
votes
1answer
1k views

What are storeconfigs in Puppet and what is their purpose?

As far as I understand it, storeconfigs are about storing the client data in the MySQL database. I assume this is the data that is also stored in the .yaml-files in /var/lib/puppet/yaml/node/, that ...
0
votes
1answer
17 views

refreshonly not working with Puppet exec resource

I am using the following user resource to create a unix user and then set an initial password for the user. I then performed an exec with chage command to force the user to change his password after ...
2
votes
1answer
13 views

Puppet run command on master

I am trying to create a letsencrypt module in Puppet. Basically, what I am trying to achieve is the following: Adding a new node and importing my module: class { "letsencrypt": url => ...
0
votes
4answers
1k views

Can I administer Amazon RDS instances with, Chef? Salt? Puppet? Ansible?

On the face of it, it looks like I need to be able to install some software daemons on the target nodes for these things to work. If I can't do that (e.g. an Amazon RDS instance), what are my options? ...
7
votes
6answers
2k views

How to generate good serials for DNS zones with Puppet?

My tradition is to set all zone serials to the timestamp at modification. Now that Puppet is my new religion, I want to set serial timestamps when building zone files from exported resources. A ...
2
votes
3answers
2k views

Access arrays/hashes in facter 2 facts

In facter 2 you can now have arrays/hashes as facts. For example: os => { "name"=>"CentOS", "family"=>"RedHat", "release"=>{ "major"=>"7", "minor"=>"0", ...
0
votes
1answer
31 views

After change, puppet now runs as the “ubuntu” user, and auditd is freaking out

This is a very strange question and I don't even know how to Google for it, so I'm posting here to see if anyone has encountered this sort of situation before. I have multiple Ubuntu 14.04 systems ...
1
vote
1answer
28 views

Using Puppet user resource to create mutlple users

I have written the following snippet below using user resource in puppet to create unix users . node 'node2.example.com','node3.example.com'{ user { 'askar': ensure => 'present', ...
0
votes
0answers
23 views

Puppet Certificate Regeneration

Running into trouble with Puppet and cert regen Puppet Master: SUSE Linux Enterprise Server 11 - Puppet Version 2.6.4 Puppet Client: SUSE Linux Enterprise Server 11 - Puppet Version 2.6.18 I was ...
1
vote
1answer
29 views

Vagrant Puppet apply manifest with wrong environment

I use Puppet 3.7 in standard client-server mode, with environments, and using Hiera for data. I use Vagrant to test the Puppet manifests directly from my Puppet repository. I recently started to use ...
0
votes
1answer
20 views

failing to look up hiera-file value from puppet

I'm in the process of upgrading an old puppet 2.7 installation to puppet 3.8, and I've also been shuffling the location of some of hiera's data. I'm not sure which is to blame here. puppet agent ...
0
votes
1answer
36 views

How to Use Puppet python module in manifest file

I am writing a puppet manifest file to install python and pymongo. This python module is installed on the server, link shown below https://forge.puppetlabs.com/stankevich/python Here is the ...
6
votes
2answers
4k views

Puppet class inheritance confusion

I've read the documentation on scope, but I'm still having trouble working this out. I've got two environments that are very similar - so I've got: modules/django-env/manifests/init.pp class ...
3
votes
2answers
1k views

How to install puppet module from GitHub?

I've installed camptocamp/nagios from Puppet Forge, but seems it has dependencies to puppet-apache_c2c which is published on GitHub. I've installed nagios module as suggested: puppet module install ...
1
vote
0answers
22 views

hiera_hash/hiera_array in foreman?

Is there a way in foreman to have puppet variables appended from parent host groups? Example of desired functionality: AllHosts: ssh_allow[10.1.1.0/32] AllHosts/publicHosts: ssh_allow[71.0.0.0/8] ...
1
vote
1answer
32 views

Puppet: Restart service on package update

So you manage a package that should be always at its latest version: package { "openssl": ensure => 'latest', } Is it possible to restart a service if the package version changes?
3
votes
1answer
115 views

How do I run hiera standalone to test values?

Presumably on my puppet master I can run hiera from the command line to see how a particular node would generate a variable set, but it's really hard to find a working example of that. I've tried ...
0
votes
1answer
31 views

Puppet Duplicate declaration: Class

I'm bit new to puppet, but I'm not sure how this would become a duplicate declaration, can someone please give me some direction whether this is a correct usage of class passing params or not? Error: ...
0
votes
2answers
251 views

Puppet Error: 400 on SERVER: Syntax error at

I am getting a syntax error when running puppet, although I cant figure out why: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'String'; expected ')' at ...