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
401 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
75 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
36 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) ...
2
votes
1answer
122 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
145 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
43 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
86 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
38 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', ...
1
vote
0answers
26 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
52 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
37 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
325 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
50 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
116 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
206 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
158 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
18k 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
711 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
51 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
48 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
157 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
83 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
545 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
8k 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
316 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
105 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 ...
0
votes
1answer
38 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
533 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 ...
5
votes
3answers
157 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
80 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 ...
20
votes
7answers
22k views

Adding a yum repo to puppet before doing anything else

Is there a way to force puppet to do certain things first? For instance, I need it to install an RPM on all servers to add a yum repository (IUS Community) before I install any of the packages.
0
votes
1answer
32 views

Puppet CRLs in an environment where 'puppet' doesn't resolve right

Due to political reasons above the technical layer, the bareword puppet does not resolve to the correct puppetmaster for parts of our infrastructure. These areas have their own, independent ...
80
votes
7answers
16k views

How can the little guys effectively learn and use Puppet?

Six months ago, in our not-for-profit project we decided to start migrating our system management to a Puppet-controlled environment because we are expecting our number of servers to grow ...
0
votes
1answer
60 views

Using Foreman to install packages

I have an Ubuntu 14.04 server running Foreman and Puppet (as the master), and some other Ubuntu 14.04 machines which are Puppet nodes. I want to use Foreman to make sure the Puppet nodes have certain ...
2
votes
2answers
55 views

Puppet: How to enforce file creation in root's home folder?

I'm trying to set a custom .vimrc profile on all servers in the production environment by using Puppet. I wrote the following manifest: class vim { file { "/etc/skel/.vimrc": path => ...
5
votes
4answers
5k views

Tools to automate windows server administration? Puppet? [closed]

We'd like to reduce the amount of time required to administer our Windows servers. Pretty much every server our team has responsibility for runs some variant of Windows but for historical reasons ...
0
votes
1answer
72 views

Install Applications on Windows RDP Servers with Puppet

The scenario is installing Windows applications with Puppet on a Windows RDP server. I have Puppet install the applications without problem, but per the best practice, you're supposed to be in install ...
0
votes
0answers
99 views

mongodb authentication not working in puppet

I used the same connectionstring in the terminal and it's working ok. But from Ruby I get error output when vagrant provision runs mongo admin -u 'vaga' -p 'vaga' --authenticationDatabase admin ...
3
votes
1answer
153 views

How to use puppets stored config & concat to generate a semicolon seperated list of ip adresses?

puppet version 2.7.18 stored configs (not puppetdb) I my case i have 3 couchbase nodes, which should be concated to an couchbase connection string which looks like that: ...
3
votes
1answer
81 views

How should I handle Mint instances with Puppet?

I use Puppet to set up VMs from time to time. Sometimes I run Linux Mint on these VMs. I have a lot of Puppet modules I like to use, but when they check the LSB facts they recoil from the strange ...
0
votes
3answers
79 views

Puppet and agent server with same host name but different private keys

I am trying to use puppet as follows in Amazon AWS: I deploy an instance which has hostname "server.example.com", which launches the puppet agent on boot and gets an initial software payload. I then ...
6
votes
5answers
2k views

How to generate good serials for DNS zones with Puppet?

My tradition is to set all zone serials to the timestamp at modification. Now that Puppet is my new religion, I want to set serial timestamps when building zone files from exported resources. A ...
4
votes
5answers
1k views

Alerting on Failed Puppet Status

I can view "Currently failing" nodes in the puppet dashboard web GUI, and even drill into it to see what policy has gone awry. I can also see if nodes are not reporting. Is there any way I could get ...
3
votes
1answer
225 views

Is it worth it to do revision control/puppet/etc. on a single-server-setup?

After reading Using revision control for server configuration files?, I decided to install etckeeper on my server. However, it's a one-server setup, so I only have one physical machine and no load ...
21
votes
2answers
18k views

Could not find class, and yet it is there

When doing a puppet agent call from a new image, I'm getting a err: Could not find class custommod error. The module itself is in /etc/puppet/modules/custommod same as all of the other modules we're ...
1
vote
2answers
126 views

Command file 'nagios.cmd#015' does not exist issue if passivecheck is sent to NSCA daemon

Introduction As /usr/local/nagios/etc/nsca.cfg is replaced by the default config if opsview has been restarted the reference to this file that resides in /etc/init.d/opsview was changed to ...
5
votes
4answers
9k views

Puppet: Test if Resource is defined, or create it

I've been trying to figure out a way to test if a resource is already defined in another file, and if not create it? A quick example: if File[$local_container] { alert("Testing - It existed ...