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

learn more… | top users | synonyms

0
votes
1answer
21 views

Using Puppet apt module

I'm an absolute beginner at Puppet, and I'm having an issue when I try to install a package via the apt-module. class newrelic { apt::source { 'newrelic':location => ...
0
votes
1answer
17 views

How to create an apt repository on puppet master

I am setting up a puppet master and want to distribute nagios core 4 and nagios-plugins to each of my agents and the master itself. Nagios core 4 is currently not available from the Ubuntu ...
0
votes
0answers
23 views

Add a class to a puppet manifest file using command-line

Is there any easy way to append a class definition to a Puppet manifest file? For example, I want to add a new vhost to a server defined in a separated puppet manifest, so I want to add: ...
7
votes
2answers
3k views

Lowercase variable values in a Puppet template

In my puppet config I need to lowercase a variable value before using it in a template. How to achieve this? Is there a way to lowercase a variable value inside the puppet manifest? Do I need to do ...
6
votes
2answers
3k 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 ...
1
vote
2answers
603 views

How to get Run Puppet button working on Foreman?

First of all, I know there is already a very similar question here on serverfault, but it doesn't quite answers my problem. So, my setup is the following: I have one server, running Ubuntu 14.04 LTS ...
-4
votes
0answers
61 views

which is the fastest between puppet, chef, ansible, salt and cfengine? [on hold]

I am using puppet and ansible and haven't tested much of chef and never tried salt and cfengine, but for those that have worked with all, which is the fastest? In terms of speed. Thanks PS. Yes i ...
10
votes
2answers
9k views

filebucket configuration in Puppet

How do you configure and work with your Puppet filebucket? I'd like to: Store file bucket data on a single server Be able to audit/parse/prune the file bucket when necessary Ensure that ...
4
votes
1answer
53 views

Open Source Puppet for Network Devices

I'm attempting to determine whether I'd be able to run Puppet on network devices (switches, firewalls etc.). From what I can tell after reading online documentation, Puppet Enterprise will cater such ...
1
vote
1answer
122 views

Server provisioning without PXE

I have a lot of servers in different data centers which should be reinstalled from time to time. I am familiar with Puppet so I am able to configure the O/S after it boots up but I can't perform an ...
1
vote
1answer
26 views

Why is Puppet creating these files after every run?

I've recently noticed that the Puppet agent is creating zero-length files with the name of "1" in directories I've defined as: file { '/opt/foo/': ...
0
votes
1answer
15 views

In puppet, can you supress a specific notice log entry? LVM forge module

With the LVM module from the Forge, the "size" property sets the desired size of the logical volume. The "size_is_minsize" parameter says that "size" is just the minimum desired size (it's OK if the ...
1
vote
1answer
23 views

LVM module from puppet forge randomly breaks applying manifest

When using the lvm module, we get an "Invalid parameter size_is_minsize" randomly. If we restart puppet master, the error goes away for a while but then comes back. This is on Scientific Linux 6.6 ...
0
votes
1answer
313 views

Puppet not running PowerShell script on Windows 2008 server

The Puppet agent on my Windows VMs is not executing PowerShell scripts. I have tested it with a very simple script as well. The script is stored on the C drive as test.ps1. Its contents are as ...
0
votes
1answer
20 views

puppet defined type and creating multiple templates from 1 .erb file

I need to find a solution to this problem that I've come across. I have a hash (it's supposed to be overriden as a smart class parameter later on) that I am iterating trough in my template.erb to ...
0
votes
2answers
26 views

puppet revoke all certs requests waiting on master

I would like to know if there is a way to revoke some cert requests that came to my puppet master e.g $ sudo puppet cert --list "(none)" (SHA256) ...
0
votes
1answer
1k views

How to add a puppet module to Gepetto, when using git?

I followed some "best practices" from Puppet 2.7 Cookbook and created agent - puppet master framework, with git cvs. Unfortunately, the book doesn't cover Gepetto, so I am forced to improvise that ...
2
votes
1answer
90 views

Vcsrepo fails with gitlab

I want to pull some gitlab repositories using vcsrepo but for some reason it fails to execute. vcsrepo { "/tmp/repo/update": ensure => present, provider => git, source => ...
0
votes
1answer
34 views

How to return default hash keys in hiera_hash() call?

In an attempt to clean up my client's Hiera data for Puppet, and drastically reduce the number of Hiera calls in the Puppet manifests, I'm changing constructs like some_name::key1: a_value_1 ...
0
votes
1answer
24 views

Error while installing apache with puppet-apache module

I am using puppet lab's apache module for installing and configuring apache. I am using Debian 7 (wheezy) and below is the manifest file I am use as site.pp in puppet-master. And from the puppet ...
6
votes
2answers
4k views

Add server to known_hosts

I would like to add github.com to the known_hosts file from the command line as I am creating a puppet manifest to provision a remote server. I have tried: "ssh-keyscan -H github.com > ...
0
votes
1answer
40 views

Copy and rename files matching a pattern

I have this bash script that I would like to translate into puppet: for f in $PROJECT_DIR/config/*.example do cp -n "$f" "${f%\.example}" done Essentially, find all files matching a certain ...
2
votes
1answer
27 views

Avoid declaration of if regex statements while using Exported Resources in Puppet

Avoid to add a host manually class::define { [ 'host1.domain', 'host2.domain' ]: attribute => 'hello', attribute2 => 'world' } class::define { [ 'host3.domaintwo', ...
0
votes
0answers
17 views

Is it possible to declare Exported Resources as an Attribute instead of a Type in Puppet?

Avoid to add a host manually as an attribute class::define { 'title': attribute3 => [ 'stone', 'wood' ], hosts => [ 'host1.domain', 'host2.domain' ] } ...
-1
votes
2answers
38 views

Puppet: How to display calling stack when failing a manifest (or how to get a calling stack at all)?

Suppose I have written a define, and was able to trap the illegal argument combination. How to fail the manifest with a message that comprises at least a resource that included our definition (or even ...
3
votes
1answer
30 views

Detecting Infrastructure Provider in Puppet

Note: we use Puppet standalone (master-less) i.e. puppet apply. Usually, while deploying a web application there are a number of back-end services and applications that run behind the front-facing ...
2
votes
3answers
4k views

Puppet Dashboard - Getting it to display classes and the add class, group, etc. functional?

I extracted the puppet dashboard, configured the clients to the report and got all the reporting stuff working. The classes in the policies are not being parsed into the dashboard. I also added the ...
2
votes
2answers
321 views

Report Auto-registration in Puppet-Dashboard over SSL

With software versions puppet-server 0.25.5 and puppet-dashboard 1.0.4, I have a fully functional puppet-dashboard instance complete with autoregistration of new check in reports. However, after ...
1
vote
1answer
39 views

Puppet dashboard

I saw your comment on "Puppet Dashboard replaces site.pp". How did you link together normal /etc/puppet files with Dashboard? I can see all my nodes in Dashboard, but Dashboard classes have nothing ...
1
vote
3answers
111 views

Resource reference passing in puppet

Is it possible to pass puppet resource references to other resources? My use-case is to build a jenkins build pipeline with puppet. To chain jenkins jobs into a pipeline I need to pass the successor ...
1
vote
2answers
63 views

Installing packages with dependencies using puppet

I am new to puppet, for the process of learning it I created Puppet Master and Puppet Slave setup and configured a mysql module to install mysql on Puppet client. Below is the manifest file. class ...
0
votes
2answers
46 views

Why is the Puppet agent not recognising environments?

I have configured dynamic environments in puppet.conf such as: modulepath = $confdir/environments/$environment/modules manifest = $confdir/environments/$environment/site/manifests/site.pp ...
6
votes
5answers
17k views

How to deploy applications (in .tar.gz) with Puppet?

I'm a beginner with Puppet and I would like to know if I'm on the right way to deploy applications with Puppet. The applciations are in a tar.gz file which contains a file with the version number. ...
0
votes
2answers
577 views

Using case statements with notify in Puppet

class mymodule::scripts::os_check { case $operatingsystem { /(?i-mx:centos)/: { notify("You are using CentOS")} /(?i-mx:.*)/: { notify("You are using non-CentOS OS") } } } Why does this ...
1
vote
1answer
38 views

Puppet: How to write a proper “condition and condition” statement?

I wrote a "Message of the day" Puppet module which affects all proxy servers in my company. Within the template file, I have the following "if statement": <% if @hostname !~ /^haproxy\d+/ and ...
3
votes
1answer
37 views

Puppet configuration to create file

I am trying to create a vagrant box to use for development with Puppet as provisioner. I want to set a specific .bashrc for the vagrant user. Here are my relevant files. dev.pp: class dev { ...
0
votes
1answer
71 views

Puppet agent unable to connect through Load Balancer

I am currently trying to setup a load balanced puppet infrastructure. I am using puppetserver for the puppet server(s) and puppet agent 3.7.3 for the clients. Currently I have four servers setup in ...
0
votes
1answer
57 views

Understanding Exported Resources in Puppet

In order to understand exported resources in Puppet the following documentation was read. After reading the documentation the understanding was that exported resources consist of declaring and ...
1
vote
1answer
503 views

Puppet 3.3.1 Certificate verify failed

I`ve trouble to setup a master/node scenario with puppet 3.3.1 (puppet opensource) on both master and slaves. The slaves are on a windows and SLES machine. The Master is also on a SLES machine. The ...
4
votes
2answers
7k 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: ...
1
vote
0answers
140 views

PuppetDB: unable to get local issuer certificate

I'm attempting to use puppetdb on but I'm running into some issues. I have a node called puppet. It is the master as well as where I've installed puppetdb. It's also a node that puppet manages. ...
0
votes
0answers
55 views

Could not find terminus puppetdb for indirection facts

I'm attempting to install PuppetDB but I'm running into an issue when executing puppet -t. I'm getting: Error: Cached facts for puppet.asc.ohio-state.edu failed: Could not find terminus puppetdb for ...
4
votes
1answer
464 views

Puppet: New server unable to fetch configuration from puppet, with some ssl error, what could be the reason?

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. On the ...
0
votes
1answer
32 views

Puppet exec type seems to ignore the unless attribute

I have an exec command to change the hostname. I only want to execute that if the hostname is not what it should be: exec { 'update hostname': command => 'sudo hostname VM01', unless => ...
2
votes
2answers
519 views

Accessing node variable in class and using it in a conditionnal

I am trying to configure Apache Virtual Hosts with Puppet and have been trying different things with little success. I have defined a node as the following : node 'test1.cob' inherits serveurClient ...
1
vote
2answers
1k views

pulling git-via-ssh repo via Puppet: “Could not create repository (non-repository at path)”

I'm trying to pull a git (github) repo via Puppet. I've used the official vcsrepo documentation and borrowed from the Fiesta post to come up with the following config: vcsrepo { "/tmp/": ensure ...
0
votes
1answer
867 views

Installing Graylog2 with puppet

I have manged to install Graylog2 from scratch by downloading all the DEB files and making the configurations. Now I try to install Graylog2 with the help of puppet in an environment and had no luck ...
5
votes
3answers
93 views

Can Puppet run a shell script (that it downloads from the master) without saving it?

I have a step in a Puppet module that roughly does the following to set up some application keys: file { '/root/setup_app_keys.sh': ensure => file, owner => 'root', group => 'root', ...
2
votes
1answer
61 views

Setup a non-CA Puppet Master

I would like to set up an additional puppet master to act as a non-CA server. I’ve have installed and am successfully using Passenger. The servers in question are all running CentOS 6.6 and are all ...
4
votes
1answer
1k 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 ...