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

learn more… | top users | synonyms

2
votes
1answer
147 views

how to create array of arrays from hiera in puppet

I have a situation where I have to generate array of arrays which are declared in hiera in puppet at different hierarchies. Lets say at environment level I have a declaration test: - [a,b,c,d] - ...
2
votes
1answer
38 views

Safe to puppet add system users to Debian

I would like to add via puppet a system user to Debian boxes. The user is: user { 'puppet': ensure => 'present', comment => 'puppetserver daemon', gid => '109', groups => ['...
3
votes
2answers
43 views

Is it possible to get puppet to combine recursive and non-recursive changes to a given directory

I am using puppet 3.8.4 on debian. I want to recursively set the owner and group on a set directory, but only set permissions on the directory itself ie. I don't want to chmod anything in the dir only ...
4
votes
2answers
96 views

On a puppet node, how do I see a list of resources?

Given access to a single node that is being managed by puppet enterprise, I want to view the list of resources that puppet is managing. How do I do that? Node OS is Ubuntu 14.04. Interested in PE ...
2
votes
2answers
204 views

How to provision a node via puppet if it's using an image-based virtualization technology?

I'm trying to integrate puppet and vSphere via this module: https://forge.puppetlabs.com/puppetlabs/vsphere This module lets you create servers via a few lines of puppet code. I have a vm template ...
0
votes
0answers
17 views

Puppet master reverts back to older state and installs incorrect config/software

Has any one seen an issue with Puppet where we deployed some new configuration changes in the morning, but much later in the day it looks like the configuration was reverted. At least one package had ...
0
votes
1answer
119 views

Puppet EXEC: execute part of code only after another part is executed

I have the following puppet code: exec { 'set mysql root password': user => root, path => "/usr/bin:/usr/sbin:/bin", command => "/usr/bin/mysqladmin -u root password \'${...
0
votes
1answer
86 views

Facter (2.4.4) sets ipaddress to docker0 and not the ethernet interface (CentOS7)

Is there a way to fix this? Can I change the interfaces order? I have a lot of puppet modules that use $::ipaddress, works fine on CentOS 6 with docker but no on 7 interfaces => docker0,...
0
votes
1answer
125 views

AWS - ELB - Puppet - Must not contain unprintable characters

I am setting up a miscellaneous server cluster behind an internal AWS ELB which will serve NTP, centralized Rsyslog, and Puppetmaster. I configured the listener on the ELB to use https (8140) which ...
0
votes
1answer
98 views

puppet could not find class roles::webserver

I'm trying to get classes working in puppet, but it gives me an error when I try puppet agent -t on the node: root@webserver01:/etc# puppet agent -t Info: Retrieving plugin Error: Could not ...
1
vote
1answer
64 views

Puppet agent apply default configuration but doesn't apply node configuration

Puppet master version: 3.3.1 Puppet agent version: 3.3.1 Content of site.pp import '*/*.pp' node default { include 'auth' } In the folder where site.pp is located there is folder called '...
0
votes
1answer
48 views

Puppet - using hiera parameters in a top scope manifest file

I have a site.pp file which looks like this: Package {allow_virtual => false,} stage { 'pre': before => Stage['main'] } stage { 'post': require => Stage['main'] } resources { 'firewall': ...
-1
votes
1answer
132 views

runinterval not working for Puppet Agents

I am running puppet agents on windows. I am trying to change the interval of Puppet Agent check-in with the Server. on puppet master, i modified puppet.conf file and added runinterval = 5m under ...
0
votes
1answer
51 views

Foreman: Pass host comment to puppet

In the Foreman there is the ability to set a comment for hosts. I would like to pass this comment to a puppet class assigned to these hosts so that the comment can be printed in the motd of the hosts. ...
0
votes
0answers
6 views

Puppet: Running multiple *_spec.rb files across multiple modules

I am attempting to run all of my *_rspec.rb files across all of my Puppet modules in one fell swoop. To run all *_rspec.rb files in my module at present I simply run rake spec from the module ...
0
votes
1answer
64 views

Is it possible to write a test in rspec-puppet to check if registry exists?

I am trying to install .net framework 4.5.2 using puppet module using exec resource instead of using Package resource due to some reason. I want to write a test case to check if it is installed or not....
0
votes
1answer
160 views

Puppet doesn't configure MySQL

I have a following Puppet class using puppetlabs/mysql module: class hg_playground::makowals::brains::db { class { '::mysql::client': package_name => 'mariadb', } $override_options = { '...
1
vote
0answers
116 views

Issue with policy-based autosign in puppet

I am trying to implement policy based autosign in puppet. I have performed following steps: On puppet master: I have created a ruby utility to autosign the certificate if matching the extension ...
1
vote
1answer
116 views

Puppet - Custom Function - Statement - Error - “Must be the value of a statement…”

Seems simple enough... # /path/to/puppet/modules/custom/lib/puppet/parser/functions module Puppet::Parser::Functions newfunction(:release_check) do |args| raise(Puppet::ParseError, "...
0
votes
2answers
52 views

Puppet agent fails to find test module

I'm setting up a puppet master and agent. They are running on the same host, as I want puppet to manage this host, too. The agent fails to find the convenient test module that the package provides. ...
0
votes
1answer
61 views

Easiest way to view puppet reports on pending (i.e., --noop) changes

My Puppet environment consists of a master and numerous agents which are run manually via the invocation of puppet agent --test. I am attempting to find the easiest (i.e., human readable, at-a-glance ...
1
vote
1answer
473 views

Puppet: how to install git package from Debian wheezy-backports?

I am using the Apt module (https://forge.puppetlabs.com/puppetlabs/apt) and have added an entry for the Debian wheezy backports repository: apt::source { 'wheezy-backports': location => '...
1
vote
0answers
28 views

Debugging Puppet File Server

I'm attempting to retrieve a file from puppet using the following: file { '/etc/shibboleth/attribute-map.xml': ensure => 'present', source => file( "puppet:///private/etc/shibboleth/...
1
vote
1answer
331 views

Puppet string interpolation with function call and a variable as parameter

Trying to construct a string. I can do: "Blah blah ${::osfamily} blah blah" "Blah blah ${$::osfamily} blah blah" But whats the syntax to call a function with a variable as parameter and have ...
1
vote
2answers
899 views

Extract nested hash facts from puppet's facter command-line tool. How?

This might be obvious. However, after searching through facter's help, puppetlab's website, and Google I am still unable to figure out how to retrieve a nested facter fact . For example, I can do: &...
0
votes
1answer
29 views

Puppet: compiling binaries

We use puppet to distribute our own software (i.e., the stuff we write, which we want running on our own servers). So somewhere we have to compile this software. It makes sense to me that I might ...
0
votes
1answer
31 views

Puppet: managing multiple users without repeating myself

When I add a user to my puppet configuration, I end up copy/pasting something like this: user {'jeff': ensure => 'present', groups => ['sudo', 'supervisor'], require => [...
0
votes
2answers
51 views

Puppet Ochestration: get results of puppet run

How can i get results of puppet apply -t --noop in some script readable way? Are there any resources to apply? I suppose there should be something better then GREP :) Making some modification to the ...
0
votes
1answer
584 views

Add file with puppet and remove it after a run

I want to add a file with puppet that should only exist while puppet runs. The file should be there to prevent apt from starting any services (which fails) during my puppet run. This is the class I ...
0
votes
0answers
147 views

Puppet server not picking up node's hiera facts

I am trying to make a simple configuration in puppet. The idea is that a machine reports the type of data it wants and puppet supplies the configuration. I am using Puppet 4.2 and the example below ...
0
votes
1answer
33 views

How to reference a heira variable from elsewhere the heirarchy?

So suppose in a very specific hiera yaml file I define a variable, such as "env_name". env_name: "dev-unstable" Now in a more general hiera file I'd like to interpolate that variable into a ...
3
votes
1answer
157 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 ...
1
vote
2answers
814 views

Check directory before creating file in puppet?

I'm trying to make a function which directory/file will be created only when the first directory exists, of not it must be skipped because of failed dependence. I've tried this "onlyif" workaround, ...
1
vote
1answer
35 views

Add package provider to Puppet within Vagrant

I'm using Puppet to provision a Vagrant box and would like to include a 3rd party package provider (https://github.com/torrancew/puppet-cpanm) The README.md in that repo shows how to use the provider ...
0
votes
0answers
22 views

Puppet: Why is there a time difference between files in the /var/lib/puppet/state directory after a successful Puppet run?

I have a Puppet server in my company installed with Foreman. While looking on Foreman dashboard I see that a few servers are "out of sync". I've found that on these server the Puppet agent service ...
1
vote
2answers
272 views

Puppet HTTP 400 error With Environment Configuration

I have reconfigured my puppet (v3.6.2) server (RHEL 7.1) into supporting environments as shown below. /etc/puppet puppet.conf auth.conf environments ...
-1
votes
1answer
121 views

Puppet: What's the difference between the default `puppet.conf` and the one which is generated by `puppet master --genconfig`?

There's a Puppet server in my company which I've installed a few months back and it's fully production and doing a great job. I'm deepening my knowledge in Puppet now by reading online about best ...
0
votes
1answer
165 views

Puppet-Foreman: Hosts are not updated on default runinterval, what could be the cause?

Linux servers in my company are configured and managed by Puppet which installed with Foreman. While looking at the Foreman dashboard I can see that 95% of the servers appear as synced and updated (...
1
vote
2answers
181 views

Puppet storeconfigs confusion

I'm fighting with Puppet storeconfigs of many hours and finally I found one thing which confusing me. I would like to set up storeconfigs, but when I set storeconfigs and storeconfigs_backend values ...
0
votes
1answer
35 views

vcsrepo puppet module not using user parameter for mercurial

I have a server that relies on puppet vcsrepo to update code in a local mercurial repository based on a tag. When I change the required tag, using the vcsrepo "revision" parameter, vcsrepo should do ...
1
vote
3answers
162 views

Using puppet to configure puppet master

I'm starting to use puppet and in configuring the puppet master I feel I'd like puppet to maintain that host as well. What's curious is that I see no recommendation or even much discussion for or ...
1
vote
1answer
134 views

Puppet does not work with augeas in a multiple ruby versions environment

I am trying to make puppet work with augeas but it complains there is no augeas provider. Some googling suggested to sudo yum install augeas augtool ls /files/etc/php.ini # test it works as expected ...
0
votes
2answers
61 views

Puppet: Cannot find class cron

I'm using Puppet 3.4.3. I'm trying to use the cron type to manage cron jobs (as documented here: https://docs.puppetlabs.com/references/latest/type.html). However, any time I try and run my ...
-2
votes
1answer
17 views

Using parametrized modules on manifests

I'm having some trouble using parameters on puppet modules, here is what I'm doing: init.pp node "example_node.example_domain" { include repositories("TESTS") } manifest of repositories module ...
2
votes
2answers
656 views

Puppet: How to set line order within a file?

Linux servers in my company are managed by Puppet. There's a DNS module which configures /etc/resolv.conf on all servers based on physical location which is configured as a facter value. As you know ...
0
votes
1answer
49 views

Using hiera to include modules in example42/apache

I'm trying to set up a puppet configuration for work (open source version), and my goal is to create a sort of standard class that most of our servers could just use with a simple hiera_include in the ...
1
vote
1answer
186 views

Enable mod_php for apache when provisioning Vagrant with Puppet

I have a Vagrant machine provisioned by Puppet. I was able to install PHP & Apache but mod_php is not enabled so I can't run PHP scripts. I am using puppetlabs/apache. include apache::mod::php ...
0
votes
1answer
34 views

Multiple Puppet classes need to access a resource and append a value to it, so another class can iterate through it after other classes are evaluated

I'm relatively new to Puppet and have recently inherited a very large infrastructure (Puppet 3.6 on a number of RHEL 6 machines). My Puppet infrastructure looks a bit like this: I have my_module::...
2
votes
5answers
157 views

Puppet: converting a custom template into config file

I took over administrative duties for an Linux environment of around 20 boxes. Trying to consolidate configuration management with Puppet. Most is straightforward, however I stumbled on the firewall ...
0
votes
1answer
119 views

Puppet: Error: Could not set 'file' on ensure: getaddrinfo: Name or service not known on Ubuntu 14.04 x64

I'm trying to use Puppet to deploy a server on Ubuntu 14.04 x64. I can ping the puppet server fine, and the server is set correctly in puppet.conf. Puppet can connect to the master, send its key, I ...