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

learn more… | top users | synonyms

0
votes
0answers
5 views

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 ...
0
votes
1answer
19 views

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 ...
1
vote
1answer
30 views

File Copy failing using Puppet File resource

I am trying to copy files using file resource . My code is as follows: node 'Node-002' { file { "/root/helloworld.txt": ensure => file, owner => "root", group => "root", mode => "...
-1
votes
0answers
27 views

How to use hash with templates (puppet) [on hold]

I'm trying to create several files (based on a template) using hash and hiera. I would like to create 2 files (test1 and test2) and send test1(a,b,c) values in the file test1 and test2(a,b,c) values ...
0
votes
1answer
16 views

How do you list all the files managed by `puppet`?

I need to make some changes to a system but I am not sure if the changes I make are managed by puppet or not. So I want to check to see if puppet is managing the files I wish to change. How do you ...
0
votes
1answer
16 views

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/...
0
votes
1answer
11 views

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: ...
0
votes
1answer
28 views

Migrating to Puppet 4.5.2

We are migrating to later versions of puppet. New Version: # puppet --version 4.5.2 Existing Version: #puppet-3.8.7 Our existing site.pp is as follows: #A default site.pp to do a quick test ...
1
vote
0answers
25 views

Copying multiple folder file in same folder using puppet

I am trying to come up with a puppet module sensu_client that installs and configures sensu client in an instance. The module directory structure is like this: . |-- examples |-- files | |-- ...
1
vote
2answers
30 views

trying to install puppet 3.8 on centos

I am trying to install an older version of puppet, 1) i installed puppet-devel repo 2) i did yum update and then ran yum install puppet --skip-broken I get the following error: Packages skipped ...
1
vote
3answers
86 views

Update apt gpg key over puppet

The puppet apt repository PGP key has expired some days ago /etc/apt/trusted.gpg.d//puppetlabs-keyring.gpg ---------------------------------------------- pub 4096R/4BD6EC30 2010-07-10 [expired: ...
1
vote
2answers
20 views

How to identify which Puppet master was used in an agent run?

I'm currently running multiple load-balanced masters and need to debug some differences between them. Is there a good way to include the hostname or some other ID of the puppet master in the agent ...
2
votes
1answer
26 views

Is there something like a map function in puppet?

[Any suggestions on a better title are welcome] For better or worse, I currently have a data structure like so (yaml) servers: server1.example.com: private_ip: 10.0.0.1 public_ip: 22.33.44....
1
vote
1answer
30 views

Best way for user management with Hiera

I am currently trying to move our Puppet setup to further use Hiera. In regard to this, I would like to create the users with Hiera, but having some problems how to do this when moving up in the ...
3
votes
1answer
277 views

Why is r10k called r10k? [closed]

I am using r10k for a while now. I wonder what r10k means. Questions Why is the tool called r10k? Where does it stand for? Attempts to answer the question Neither the puppet docs, nor the internet ...
2
votes
0answers
17 views

r10k: proper merging workflow with git

I am currently running Puppet with in masterless mode. I am using r10k for module and environment deployment. Simplified version: The r10k control repository has two branches: testing and production. ...
0
votes
1answer
29 views

How to install gems for non-default Ruby with Puppet?

The ruby included with RedHat/CentOS-6 is of version 1.8.7, which is too old for many applications. Though simply updating it with a custom-built RPM is possible, my colleagues shy away from the idea ...
1
vote
1answer
17 views

Different manifest location on Puppet Server/Agent

My Puppet Server Environment setting is as follows [master] vardir = /opt/puppetlabs/server/data/puppetserver logdir = /data/log/puppetlabs/puppetserver rundir = /var/run/puppetlabs/puppetserver ...
0
votes
2answers
39 views

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::...
0
votes
1answer
22 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
17 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
28 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
21 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 ...
1
vote
1answer
22 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 ...
1
vote
1answer
34 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
1answer
17 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
22 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
29 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
27 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: --- :...
1
vote
1answer
38 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
35 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
33 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
19 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
26 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
108 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
62 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
38 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
16 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
57 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
40 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
31 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
219 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
36 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
238 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
21 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 ...
3
votes
2answers
119 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
26 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
37 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
100 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....