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

learn more… | top users | synonyms

0
votes
1answer
903 views

Puppet Device unable to get local issuer certificate

I installed puppet 4.3 and centos7 to use Puppet Device to manage Cisco routers. The server hostname is "puppetmaster" (by running hostnamectl puppetmaster) The centos server is running puppet master ...
1
vote
1answer
78 views

Can't run puppet device (Could not request certificate: Could not write to… privatekeydir)

I setup puppet 4.3 on a Centos 7 server. This is a puppet master that is also running puppet agent. I am attempting to setup Puppet Device to configure a router. when I attempt to run puppet device I ...
0
votes
0answers
18 views

Have both local and puppet managed users on linux

We manage users via puppet on our ubuntu servers. So any user not managed via puppet(i.e. created locally) is being removed when the host is being puppetized. Is this the expected behaviour of puppet? ...
0
votes
1answer
72 views

puppet could not evaluate: could not retrieve information from environment

puppet can do exec on node, but cannot transfer file from module. Ubuntu 14.04 server Puppet 3.8.4 Already tried: making file world readable disabling FW creating facter.d in module directory On ...
1
vote
1answer
51 views

// , In Puppet, what is the accepted way to use different Puppet modules in different Puppet environments?

Some people I work with actually give each Puppet environment its own $modulepath, but also have the common $modulepath. Please find an example of this below: [redis] modulepath = ...
1
vote
1answer
34 views

Copy folder and its subfolders from puppet master to agent

I'm trying to copy folder /vagrant/scripts and its sub-folders located on puppet master into the agent. I use the following config in the init.pp: file { '/home/vagrant/scripts': ensure => ...
0
votes
0answers
34 views

How to use theforeman/foreman to bootstrap?

I've used the Foreman installer in the past to get a server up and running, but I'm now trying to do the same thing as a bootstrap I can reliably repeat. There's a PuppetForge module, ...
4
votes
1answer
34 views

Why do some r10k configuration files start their YAML lines with :?

I'm looking at setting up r10k for Puppet deployment, and I have various example r10k.yaml configuration files, but some seem to use an extra : at the start of many lines, for instance, at ...
1
vote
1answer
39 views

Generating basic Nagios configuration with Puppet in the wrong side

I have a little problem when I try to integrate Puppet with Nagios. This is my configuration (I know, it's so simple but it's my first try) /etc/puppet/modules/nagios/manifests/init.pp class ...
0
votes
0answers
171 views

Puppet: Is it possible to remove multiple lines using file_line type?

In past times of the company I work for, someone configured many aliases and exports in /etc/profile. Since then we've implemented Puppet and there's a module which manages the application user ...
0
votes
1answer
76 views

Could not evaluate: Could not retrieve information from environment bootmaster source(s)

Feeling like a complete newbie to puppet (I admit I am very rusty :-) So my manifest/site.pp file contains. file {"/tmp/findme.txt": source => "puppet:///modules/concat/concatfragments.rb" ...
-2
votes
1answer
31 views

puppet variable parsing inside quotes

How can I make the last exec resource parse variables? Currently it is coming out blank inside rc.local file as such: [root@server1 ~]# cat /etc/rc.local #!/bin/sh /usr/sbin/balance -b 127.0.0.1 ...
1
vote
1answer
27 views

How do I deploy a specific revision of my puppet code with r10k?

Using r10k to deploy my puppet code. How do I use it to deploy a specific revision? Specifically, my :base repo. Thanks!
0
votes
1answer
33 views

add nodes to Foreman

I'm completely confused how I can add my servers to Foreman. I've setup a Foreman server, I pointed the /etc/puppet/puppet.conf "server" directive to my Foreman server, and I under ...
2
votes
0answers
40 views

Can't figure out how to use schedule and tidy resource in puppet

I have puppet code, that I can't manage to get to work: schedule { 'daily_once': period => daily, repeat => 1, } node 'puppet1' { tidy { ...
2
votes
1answer
34 views

Puppet Agent - cert clean vs. fqdn duplicate

I couldn't find any answer to what happened in my puppet environment, that's why I hope somebody will explain it to me here. ENV: Foreman (Puppet CA), Puppet Master, Puppet Agent I have an oracle vm ...
2
votes
1answer
109 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] - ...
1
vote
1answer
33 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
42 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
88 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
149 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
16 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
89 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
69 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 => ...
0
votes
1answer
94 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
69 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
61 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
44 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
114 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
49 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
56 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 ...
0
votes
1answer
136 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
84 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
93 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
47 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
47 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
317 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
27 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( ...
1
vote
1answer
225 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
595 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
29 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
45 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
391 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
127 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
27 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
119 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
298 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
33 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 ...