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

learn more… | top users | synonyms

4
votes
2answers
861 views

Pass hostname as argument into Fabric task

I'm trying to put together a fabric script that creates a virtual instance via an API and then runs puppet on that instance. I've got a task that creates the VM, and a task that can 'bootstrap' the VM....
0
votes
1answer
53 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 ...
7
votes
5answers
9k views

Puppet's automatically generated certificates failing

I am running a default configuration of Puppet on Debian Squeeze 6.0.4. The server's FQDN is master.example.com. The client's FQDN is client.example.com. I am able to contact the puppet master and ...
0
votes
1answer
47 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': ...
6
votes
3answers
6k views

How to convert a string to integer in Puppet?

I want to check whether the content of a variable is an odd number. But I need an integer for it. $ip_array = split($ipaddress, '.') $odd_ip = $ip_array[3] % 2 if $odd_ip == 1 { notice("is odd") } ...
-1
votes
1answer
125 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
63 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
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. ...
6
votes
2answers
10k views

New server unable to fetch configuration from Puppetmaster due to some ssl error

Three machines in the production environment had some hardware issues and were decommissioned. The infrastructure team has reinstalled them and gave them the same hostnames and IP addresses. The aim ...
0
votes
1answer
153 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 = { '...
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 ...
1
vote
0answers
104 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
104 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, "...
6
votes
2answers
4k views

Basic puppet: Writing infrastructure configuration with an ENC, style, how-to?

I barely know enough Puppet to ask this question. I think I understand that the configuration for a particular node would consist of a collection of modules, with some node-specific glue. From the ...
0
votes
2answers
48 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. ...
1
vote
1answer
404 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
276 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
1answer
149 views

“Puppet device” not working with catalyst 2950

I have setup the puppet and made suitable tweaking for puppet device management to work. I have device config set for my switch catalyst 2950. Certificate request and signing works good and when it ...
1
vote
1answer
410 views

Puppet Master doesn't get certificate request from agent

I have a puppetmaster server and four puppet agent clients. Here I'm attaching my puppet.conf files and hosts in all node. When I call 'puppet cert list' it returns nothing. But, when called with --...
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
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
2answers
50 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
507 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 ...
2
votes
2answers
640 views

Own puppet function

I'm trying to make my own function. I keep getting this message. err: Could not retrieve catalog from remote server: Error 400 on SERVER: Function 'brent_k' does not return a value at /etc/puppet/...
0
votes
0answers
139 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
28 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 ...
1
vote
2answers
522 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
2answers
156 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
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 ...
1
vote
2answers
251 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 ...
3
votes
2answers
2k views

Using Chocolatey as a Package provider for Puppet

I am attempting to use Chocolatey ( http://chocolatey.org ) as a package provider for Puppet, but I continually get this error when running the Puppet agent on my Win 7 box. info: Caching catalog ...
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
494 views

Puppet nodes cant' find master, ec2 public versus internal ip addresses and hosts files

If I setup my hosts files such that they reference all other ec2 nodes using the internal ip addresses, will this work or do I have to use the external ip addresses? Do I need to specify anything in ...
0
votes
1answer
159 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
votes
1answer
118 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 ...
2
votes
5answers
153 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 ...
1
vote
3answers
4k views

Is it possible to notify a File[] resource in Puppet and trigger resources subscribed to that file?

We're using Puppet to manage an OpenStack installation. OpenStack consists of a number of loosely connected parts, all communicating via AMQP. Several of the parts use a common configuration file (/...
0
votes
1answer
32 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
161 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 ...
0
votes
1answer
731 views

Puppet Operation not permitted on owner/group change

I'm running Ubuntu 12.04 with vboxheadless 4.2.10 and vagrant 1.2.7 to provision instances on a server. When I run vagrant up I get the following errors: err: /Stage[main]//File[/var/www/example....
1
vote
1answer
128 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 ...
-2
votes
1answer
15 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
575 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
172 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 ...
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 ...
9
votes
4answers
7k views

How to set up :datadir: when using Hiera with Puppet and Vagrant

I'd like to know how to set up :datadir: in hiera.yaml for optimal usage with Puppet and Vagrant. Currently I'm using vagrant 1.5.0 with virtualbox 4.2 on Ubuntu 13.10 with an Ubuntu 12.04 guest ...
0
votes
1answer
33 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::...