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

learn more… | top users | synonyms

0
votes
1answer
10 views

Creating new environments in Puppet with Foreman does not work

I am new to Puppet and Foreman. I have installed Puppet with Foreman on a Ubuntu LTS 14.04 Server. I connect some Clients and change the Hostgroups. That works all fine. But now I want to create a new ...
0
votes
0answers
10 views

Fail2ban failed: option ignoreip in section DEFAULT already exists

tl;dr Fail2ban behaves differently depending on OS, one throwing an error and one working fine with a duplicate directive. Environment Ubuntu 16.04 Fail2Ban v0.9.3 (what's in the repos as of time ...
0
votes
0answers
16 views

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 ...
0
votes
0answers
13 views

Disabling a particular environment in Puppet

We are using a shared puppet+mcollective setup to manage our deployments in both our DEV and QA environments. We are mco puppet runonce for doing the deployment with proper working manifests being ...
0
votes
1answer
18 views

Creating new environments in Puppet Server

We are using a shared Puppet Server to manage both QA and DEV environments . The default configurations Puppet Server uses is Production environment # puppet master --configprint all | grep ...
0
votes
1answer
25 views

Puppet Server not applying manifests

I did a Puppet/MCollective setup using four nodes. # mco ping Node-010.test.com time=107.58 ms Node-003.test.com time=110.68 ms Node-009.test.com ...
0
votes
0answers
10 views

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 ...
1
vote
0answers
8 views

mcp puppet runonce not executing manifests

I am using mcollective with puppet . The setup is successful . But when I apply manifests , the manifests is not getting executed . My manifests is as follows: node default{ } node 'Node-009....
-1
votes
1answer
12 views

I want to reboot the system using puppet by using reboot resource but it is throwing error like “Invalid resource type: Reboot”?."

I want to reboot the system using puppet by using reboot resource but it is throwing error like "Invalid resource type: Reboot"?. Is there any need modules that I need to install??. please help me.
0
votes
1answer
14 views

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 in: /usr/libexec/...
0
votes
0answers
26 views

Hiera hash or array error

I developed an AWS S3 bakcup modul, but after the latest modify, puppet client not running (for run I using a following command: puppet agent --no-daemonize --debug --onetime). My hiera.yaml: --- :...
-2
votes
0answers
21 views

Datacenter sensu returned: Connection error. Is the Sensu API running? [on hold]

I freshly installed sensu on CentOS 7 using puppet. I also tried to get uchiwa working - the panel itself works, but I'm getting this error: ALERT Datacenter sensu returned: Connection error. Is the ...
0
votes
0answers
24 views

Can't deploy from private git repo using r10k

I'm working on learning to use r10k to deploy my puppet code, and I've run into a snag when trying to deploy from my control repo. The error message I get is: Failed to authenticate SSH session: ...
1
vote
1answer
33 views

Puppet changing source file permissions

I'm setting up jail shells using puppet to maintain a copy of the required libraries within the jails. Using the following puppet code I can successfully copy the files across: file { "/home/${...
0
votes
1answer
29 views

Foreman change autosign behavior

We have setup foreman in our infrastructure and started adding the first hosts. Now, after the setup is done, we'd like to change the default autosign behaviour we set with --puppet-autosign when ...
0
votes
1answer
14 views

puppet4 .erb nilClass on .each

erb $names = ['foo','boo','wee','haa'] <% @names.each do |name| %> Hello <%= name %> he is here <% end %> config.pp file {'/tmp/tester': ensure=>'present', content=&...
1
vote
0answers
19 views

puppet master is not executing autosign script

I have created a shell script to autosign Puppet certificate requests at /etc/puppet/autosign.sh and have configured this path in the puppet master's configuration. autosign = /etc/puppet/...
1
vote
3answers
65 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
51 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
33 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
15 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. Facter....
3
votes
1answer
41 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
34 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
26 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 ...
7
votes
2answers
193 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
31 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 ...
2
votes
1answer
190 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
13 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 ...
2
votes
2answers
100 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
22 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
31 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 ...
2
votes
1answer
70 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 http://yum....
2
votes
1answer
45 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
26 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 => '...
0
votes
1answer
43 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
30 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
47 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
19 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 host,...
0
votes
1answer
47 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
12 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
34 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
21 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
38 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
128 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
19 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 => "example....
1
vote
1answer
35 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
58 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
58 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 ...