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
0answers
5 views

configure dependency of a puppet module

I need to more finely tune the Apache vhost file being generated by the example42/kibana Puppet module. Is it possible in Puppet to 'reach through' the example42/kibana plugin and configure the ...
2
votes
1answer
47 views

How do I keep MySQL from ever increasing it's disk space usage when used with puppet-dashboard?

The setup We have a Debian Linux set up with MySQL v5.1.73 (innoDB storage engine) and puppet-dashboard version 1.2.23. As you probably guessed, puppet-dashboard is using MySQL as its backend. Also, ...
3
votes
1answer
15 views

How can we force a puppet manifest and module syntax check prior to version control check-in?

I am working on deploying version control for our puppet modules and manifests. I want to enforce a workflow that requires a puppet module and manifest code check prior to a check-in of changes. This ...
2
votes
1answer
24 views

Puppet 3.6.2 “The CA bundle included with OpenSSL may not be valid or up to date” error on FreeBSD

Trying to fetch a module, I have the following output Notice: Preparing to install into /usr/local/etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Error: Could ...
0
votes
0answers
8 views

Puppet master receiving a YAML error after upgrade to 2.7.25-2

Our puppetmaster server was upgraded to the latest available on RHEL6 (puppet-2.7.25-2.el6.noarch). We are now receiving errors such as this on the master: Aug 26 11:36:59 master1 ...
1
vote
1answer
39 views

Puppet read output of command and store in a variable

I am very new to puppet and trying to execute my puppet script but its failing all the time. I want to store the output of below bash command and want to store in a variable which I can use later: ...
1
vote
1answer
24 views

Need help translating rate limiting iptables rules to Puppet format

I use Puppet Iptables module to manage Iptables rules on my machine. I'd like to implement to rate limit failed SSH connections as described here: iptables -A INPUT -p tcp --dport 22 -m recent ...
0
votes
1answer
34 views

Puppet command depends on another class

I am having a issue of understanding how I could make puppet run a command only if another module/class is installed. I read that Define function could do it, but I did not understand it. Example what ...
0
votes
2answers
28 views

Restarting mysql utilizing the puppetlabs/mysql module?

I have two folders -- one is 'public_modules' and the other is 'private_modules'. When I start a new Vagrant machine, the 'public_modules' folder is populated with modules as described in my ...
0
votes
0answers
18 views

puppetlabs/firewall nat policy issue

I'm using puppetlabs/firewall. I need to create following iptable rules: iptables -A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8443 My manifests is firewall { '001 default ...
3
votes
1answer
36 views

Puppet resource output - what is it telling me?

I'm a little confused by the output of the puppet resource commands, and the documentation isn't helping me. If I run puppet resource user myuser for example, it yields: user { 'myuser': ensure ...
0
votes
0answers
37 views

java.lang.ClassNotFoundException: org.postgres.Driver when starting PuppetDB

When I start puppetdb I am getting the following error: cat /var/log/puppetdb/puppetdb.log 2014-08-06 11:29:50,558 ERROR [main] [utils.logging] Uncaught exception java.lang.ClassNotFoundException: ...
0
votes
0answers
29 views

Puppet run multiple using different users

I have a question, Is it possible in puppet to do things as different user, for instance I want to install git, vim, curl as root and install postgresql as vagrant. Is it possible to do? class ...
0
votes
2answers
36 views

puppet nis user management

I started using puppet for managing our RHEL servers. At this point I try to setup the user management. We are running a NIS environment on our campus, so until now I added the line +testuser::::: to ...
1
vote
1answer
23 views

Puppet Enterprise 3.3 Not Adding Modules to Classes

I am running Amazon Linux with a stock install of Puppet Enterprise 3.3. When I launch the command: puppet module install puppetlabs-ntp As per the puppet labs documentation, it does not show up ...
-1
votes
0answers
16 views

Why ENC is not sending complete array to my puppet agent?

I've been migrating the modules configuration to an External Node Classifier, I've tried to make a known_hosts file from template, so I have to send a bunch of data like IPs, ssh keys and hostnames, ...
2
votes
1answer
21 views

Using puppet to manage ntpd certificates

My company is requiring me to implement signed time in ntpd with autokey. One of the requirements for autokey to work is to generate keys on each host. All the clients are part of the same group so ...
-1
votes
2answers
26 views

Could not recieve information from environment production

Im getting this error on my node agent, when i run puppet agent --test err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from environment production source(s) ...
5
votes
1answer
123 views

How can I require an array of resources in puppet?

In my Puppet-manifest I need to exec a command, but only after an array-driven collection of another exec finished. Like this (pseudo-code): define foo() { exec { "touch $name": } } .... { ...
0
votes
2answers
63 views

Puppet template erb if variable is not defined keep default

I am trying to learn puppet and I can not understand how I can setup template erb to choose default value if variable is not defined in common.yaml or in node.yaml. This is what I have tried: 1) # we ...
0
votes
2answers
40 views

Suppress specific error/warning mesage in puppet?

Is it possible to suppress specific error messages when running a Puppet manifest? The following snippet activates and starts iptables if the file /etc/sysconfig/iptables exists. It works fine, but ...
0
votes
1answer
18 views

Notifying apt module “apt_update” from custom puppet module

I'm trying to configure APT to not install recommended packages. I'm using puppetforge puppetlabs/apt module so I wish to notify the Exec['apt_update'] resource from that module. I'm using this: ...
0
votes
0answers
15 views

Foreman Parameters accents not allowed

I'm using foreman to manage my servers launching "Run puppet" from theforeman interface. My classes use some values defined as foreman "parameters" to work. Everything works fine, but not when a ...
1
vote
2answers
92 views

Using a configuration management tool to configure nodes without ssh

I'd like to manage the configuration of several devices running embedded Linux. There is a web server in my environment which has a SOAP interface I can use to get/set all the parameters of each of ...
0
votes
2answers
63 views

Puppet: differences between centralized and decentralized manifest distribution

There seem to be two different ways to distribute puppet manifests: Centralized: This involves running a central puppet master server which is periodically queried by puppet agents for changes. ...
0
votes
2answers
127 views

Accidentally revoked all puppetmaster certs

I ran puppet cert clean --all, thinking it would only clear the certificates that hadn't been signed yet. There's about 300 nodes that rely on the puppet master. As far as I can tell, puppet agent ...
0
votes
0answers
17 views

Puppet Lambdas: counting up PHP-FPM worker ports with each

I'm using puppet 3.6 with the future parser. Now I'm trying to create PHP-FPM workers over an hiera hash: website: "testuser": "password": "asdfasdf" "server_name": "testdomain.com" ...
1
vote
1answer
20 views

What exactly are out_of_sync Puppet Resources?

In the puppet_run_summary.yaml reports one of the categories for resources is out_of_sync. What does this mean exactly?
1
vote
1answer
79 views

puppet service not stopping service (iptables)

I am trying to use a puppet master 3.1.1 to manage iptables on various servers. My local puppet agent is 2.7.19, the server OS is CentOS 5.4. ...
1
vote
0answers
144 views

Puppet Enterprise 3.3 on RHEL 7 - Error: Could not find terminus console for indirection node

With a fresh install (monolithic) of PE (Puppet Enterprise) 3.3 on RHEL (Redhat Enterprise Linux) 7 I'm currently getting the following error: ... Info: Loading facts in ...
1
vote
1answer
95 views

How can I diagnose and speed up slow Linux puppet sync?

I'm running puppet and it functions okay, but it's taking about 15 minutes on a sync without any changes, and it seems to me that this shouldn't take more than a minute or two. Here are some stats: ...
5
votes
2answers
260 views

Puppet - removing user who is logged in?

I've just started learning puppet and have came across a problem I was wondering if anyone knew how to fix.I m trying to remove a user I get an error message stating that they are logged in so can't ...
0
votes
2answers
50 views

How to print regex match

My problme is two fold. First is printing a regex match. The second is the actual regex. Problem 1: I'm trying to print the output of yum grouplist --verbose into a format that I can put into a ...
-1
votes
2answers
28 views

hiera.yaml is not loading on vagrant provision

Whenever I provision vagrant all the data is nil. When I ssh in and specify /etc/puppet/hiera.yaml as the config option i can get the values. How can I get vagrant to use the right hiera.config file? ...
1
vote
1answer
72 views

Nginx unmet dependencies over Vagrant / Puppet

I have no such issue on 64bit Ubuntu Precise, but once I tried to start 32bit machine, it failed on this command: # /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install ...
2
votes
1answer
86 views

“Run Puppet” function in Foreman works inconsistently

First, a quick overview of our setup: We have a Foreman instance running properly, let's call it foreman. The Puppet master works well, let's call it puppetmaster. There are two hosts contactable ...
0
votes
1answer
196 views

puppet-master/foreman “undefined method `[]' for nil:NilClass on node” after update

After updating my puppet-master from 2.7 to 3.6.2 I get the following message when running puppet agent on a node: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined ...
1
vote
0answers
45 views

Puppet Enterprise and parser=future error. Uninitialized constant Puppet::Pops

When trying to set parser=future on PE I get this error Could not autoload puppet/indirector/node/console: uninitialized constant Puppet::Pops This works using open source puppet 3.6 but not with ...
0
votes
0answers
132 views

PuppetDB: Connection refused

I'm trying to get PuppetDB to run on my puppetmaster machine. The problem is that I always get the following message when doing an agent run: err: Could not retrieve catalog from remote server: Error ...
3
votes
1answer
58 views

Puppet: how to run an exec only if puppet has made changes

We are doing basic management of some servers via puppet - The servers themselves run as part of a clustered system that handles other aspects like user accounts etc and includes a monitoring script ...
0
votes
2answers
92 views

Puppet node does not pull changes from master

I have followed the following three How-To's http://terokarvinen.com/2012/puppetmaster-on-ubuntu-12-04 https://help.ubuntu.com/12.04/serverguide/puppet.html#puppet-installation ...
1
vote
1answer
56 views

Puppet class / node dependencies

as many people, I have a class dependency problem with puppet. Either one class gets executed too early or I end up in a dependency cycle. Following setup: node foo: require base include ...
3
votes
0answers
32 views

advantages of using puppetmaster over git pull [duplicate]

I am currently setting up puppet for a network of around 30 servers in a master / agent setup, but since I am using the open source version of puppet, is there really any advantage of using a ...
2
votes
1answer
97 views

How to install and run Puppet Device in order to configure Cisco Switches and Routers?

According to this documentation it should be possible to configure a Cisco Switch by using the Puppet Module Device. Where could this module be found? Is this module restricted to Puppet ...
0
votes
1answer
153 views

Foreman environment import

I have foreman installed on an ubuntu 14.04 server. Now following problems: I have installed many puppetlab modules (puppetlabs/apt, puppetlabs/ntp, etc). After a click on "Import from..." I were ...
-1
votes
1answer
152 views

puppet logical conditions- “onlyif” and “unless” not working

I have written the following code and this works fine if swap is not in place, but once swap is created and if the script is executed again, it leads to error. I tried adding conditions using onlyif ...
0
votes
1answer
37 views

Management of system directory in linux using git

I'm using puppet to manage my linux systems. I have to use /etc/puppet directory to keep manifest files instead of user home directory, and I want to manage them by git. But because /etc/puppet's ...
1
vote
1answer
18 views

Intelligently handling puppet master unavailable (almost caching)

Is there a good way to set up caching for Puppet, specifically templates? I have a number of modules that would be really, really useful to have available in a DR situation. Proposed Solution I know ...
0
votes
1answer
54 views

Manage workstations with Puppet and TheForeman

I'm building an IT infrastructure for managing all the workstations in my company. I am interested in Puppet and a external node classifier as The Foreman, but I see all the time that Puppet and The ...
2
votes
1answer
34 views

File resource should not skip files if a separate file resource exists in the puppet project

It seems like puppet does not copy a file which is part of a recursive resource, if there is a separate definition for that file somewhere else. Is there a way to avoid this? For example this does ...