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

learn more… | top users | synonyms

1
vote
3answers
39 views

How to set MAILTO in cron using Puppet?

The expectation was that there would be a mailto attribute, but the this source denies that cron { 'resource title': name => # (namevar) The symbolic name of the cron job. This name is ...
2
votes
1answer
35 views

Zabbix network discovery of puppet managed network

I try to automate the discovery of my entire network, which is managed with puppet, and I want to use the zabbix network discovery feature instead of Puppetdb for mulitple reasons. I've tried ...
0
votes
1answer
29 views

How can I list all cronjobs created by puppet?

I have several crontabs defined in a pp file, e.g: cron { 'puppet-cron1': ensure => present, command => "cat /etc/issue", user => root, minute => '*/30', } cron { ...
1
vote
1answer
13 views

Blank value in custom puppet fact

I know that the following custom fact matches the string I want, as if I add a 'puts' or 'print' ahead of the $1 it prints the correct string. But as show the fact returns nothing. A blank. ...
3
votes
1answer
25 views

Let's Encrypt and local puppet development

I develop Puppet manifests in a Vagrant VM. I'd like to configure an SSL-terminating webserver, but obviously Let's Encrypt verification will fail when the node is only running on my laptop. Is ...
2
votes
0answers
31 views

Disabling ctrl+alt+delete in systemd with logging

I'm trying to update some of my Puppet manifests that disable CAD on RHEL machines. Right now I'm doing it the over the top way on systemd: masking (ie. linking to /dev/null) $ctrlaltdel_process = ...
0
votes
1answer
12 views

Puppet Create/Install Windows Service

Pretty new to Puppet... here is what I am trying to accomplish: Copy a powershell script, exe and config file locally and then execute the powershell script, which does the following: creates the ...
6
votes
2answers
135 views

Immutable Server model with Docker/Ansible vs. Ansible, Puppet, and Foreman in AWS?

We are running into an interesting argument and are falling into two camps. I'm interested in any particular problems with either idea or gotchas we might be missing. Really, anything that can help us ...
0
votes
1answer
25 views

Configuring remote access to mysql via puppet

The problem: I want to connect to mysql from another host I have a mysql instance that I configure with puppet. I want to be able to access the instance from host 1.2.3.4. Part 1: I start by hand ...
1
vote
0answers
81 views

How to install Apache with PHP 7.0 on Ubuntu 16.04 using puppetlabs-apache

I want to install Apache with PHP 7.0 on Ubuntu 16.04 using Puppet Labs Apache module. Following the documentation the module supports Ubuntu 16.04. There is a ticket related with PHP 7.0 support ...
0
votes
1answer
8 views

Corosync configuration with puppet

I'm relatively new to puppet, and I'm trying to create a configuration with puppet that will spit out a ready-to-go production system, like we're currently using. I'm using Debian Jessie with Puppet ...
1
vote
2answers
89 views

Create a file only if the directory exists?

I am trying to write the module where it creates the file if directory exists or else it shouldn't do anything. class puppetmodule{ exec { 'chk_dir_exists': command => 'test -d /usr/dir1', ...
1
vote
0answers
20 views

Setting dnsmasq_config_file with Puppet managed OpenStack installation

Our OpenStack installation is rolled out with Puppet. We use the excellent puppetlabs-openstack module for that. Due to the slow turnover cycles we are still stuck with version 5.0.2, right now we ...
1
vote
0answers
26 views

How to manage clusters with foreman/puppet

I need to deploy i.e. three distinct Zookeeper clusters. Each server inside a cluster should be configured to know what its ID is (and create a myid file). Also every Zookeeper server needs to know a ...
-1
votes
0answers
98 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 ...
2
votes
1answer
43 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 ...
2
votes
1answer
40 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 ...
1
vote
0answers
20 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
33 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
29 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
0answers
70 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! @ ...
0
votes
1answer
14 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 ...
1
vote
0answers
35 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
16 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 ...
0
votes
1answer
42 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 ...
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 ...
0
votes
1answer
32 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
0answers
18 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
29 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 ...
0
votes
1answer
70 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 ...
2
votes
1answer
18 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 => ...
1
vote
1answer
31 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
38 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
2answers
55 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
25 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 ...
1
vote
0answers
23 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] ...
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 ...
0
votes
1answer
36 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: ...
1
vote
1answer
35 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 ...
1
vote
1answer
34 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?
2
votes
1answer
26 views

Getting puppet to install modules

In my current setup I have a host-up script that takes a freshly provisioned VM in a DC somewhere, issues the couple commands that I need to run puppet apply (make sure hostname is set, that puppet is ...
1
vote
2answers
58 views

How to hide “failed dependencies” logs on puppet

I would like to avoid (or hide at least) "failed dependencies" logs on puppet. I want to deploy files only if exec requirement are true. It's working but puppet shows a lot of err/warning logs : ...
0
votes
1answer
44 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 ...
-2
votes
1answer
41 views

Return yaml value to puppet fact lookup

I'm trying to resolve a YAML value in a module file { '/boot/config.txt' : ensure => present, mode => '0755', content => $::hostname?{ 'serverName1.domain' => ...
1
vote
2answers
28 views

Passphrase-less ssh keys on a puppet master?

Our puppet code lives on github, so we pull to the puppet master. But our github repository is private. Is standard (best) practice to give the puppet master ssh keys to github without passphrase ...
2
votes
1answer
42 views

Testing a puppet master with vagrant

I'm new to puppet. I read a bunch, managed to write a simple (and probably clumsy) manifest to configure a host together with a similarly simple fabric script to deal with pre-puppet setup. Great, ...
0
votes
1answer
25 views

How does puppet decide if a node is active? (Changed)

I'm trying to change default behavior in puppet when a Notify resource is applied to a node. Current state (puppet version 3.8) is that whenever the client is applying a simply Notify message, the ...
0
votes
1answer
13 views

Puppet client source class files

Is it possible to somehow find the source files of the applied Puppet classes of a client? I have access to a server that is managed by Puppet and would like to take a peek inside the source class ...
0
votes
0answers
23 views

Is it possible to install puppet recipe on an existing system manually?

I have a Vagrant/Puppet Box configuration installing ubuntu, PHP, nginx, redis, etc ... I would like to apply same software on my current ubuntu vm with my working enviroment. I could Install the ...
1
vote
0answers
44 views

Permission error when puppet-agent requesting ssl certificate on fedora 23

I recently set up puppet server/agent instances on separate vm both running fedora 23 workstation. When requesting a certificate from agent I get the following error: Error: Could not request ...