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 ...
26
votes
7answers
18k views

Do chef and puppet cost money?

I intend to use chef or puppet to do administration (I'm thinking more of chef as it's younger and I get a better feeling about it). In both home pages I saw there is an "enterprise edition" that ...
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....
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: ...
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: ...
5
votes
1answer
6k views

How to enable systemd instantiated service with puppet?

I've got the following puppet service: service { "getty@ttyUSB0.service": provider => systemd, ensure => running, enable => true, } When I try to apply this configuration on ...
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 => "...
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
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 ...
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: ...
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 ...
6
votes
2answers
17k views

Puppet agent certificate verify failure

I have a Puppet Master/Agent set up, and have successfully signed the certificate for the agent on the master. However, when I run puppet agent --test I get a failure that looks like this: Warning: ...
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/...
7
votes
2answers
3k 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 ...
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 ...
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 | |-- ...
2
votes
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
4answers
2k views

Foreman installation on amazon ec2 instance

Hi there and thank you for reading, I am currently in the process of setting up a puppet service for our ec2 instances and decided to give foreman a try (node certificate management and automatic ...
4
votes
2answers
6k views

Why can't puppet find my defined resource?

I have a defined resource in /etc/puppet/modules/autofs/manifests/mount.pp (from the pdx-cat/autofs module at https://forge.puppetlabs.com/pdxcat/autofs). I have a module in /etc/puppet/modules/...
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
0answers
205 views

Centralized ubuntu update server [closed]

I am in the process of configuring a Central Update Server so we can better manage the security updates on our ubuntu based cloud servers. Here is my plan so far Install apt-mirror on cloud instance ...
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: ...
2
votes
1answer
7k views

PuppetDB: Connection refused

I'm trying to get PuppetDB to run on my puppetmaster machine. The problem is that I always get the following message when doing an agent run: err: Could not retrieve catalog from remote server: Error ...
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 ...
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 ...
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. ...
1
vote
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/, ...
1
vote
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
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
114 views

Use puppet to deploy bareos (bacula-fork) to my nodes

I'm not sure if this is the right place to ask, but I would really love to use puppet to deploy bareos on my servers. Bareos is a fork of Bacula and is used for backing up remote systems. To do that ...
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
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
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 { alert("...
1
vote
1answer
1k views

puppet Could not find dependency

I have inherited a puppet server. It has a couple of dozen hosts under management and it is mostly working fine. When I say mostly there are a few hosts that fail when checking in: Error: Failed to ...
2
votes
1answer
42 views

Can r10k use a control repository on the local filesystem?

I'm starting to work with R10k for deploying Puppet environments, but I don't want to put our control repo into GitHub, and I don't have a local GitLab server at the moment. I've tried using the ...
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 ...
13
votes
4answers
5k views

In Puppet, how would I secure a password variable (in this case a MySQL password)?

I am using Puppet to provision MySQL with a parameterised class: class mysql::server( $password ) { package { 'mysql-server': ensure => installed } package { 'mysql': ensure => ...
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 ...
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
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
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 ...
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.
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
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/...