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

learn more… | top users | synonyms

3
votes
1answer
5k views

Uninstalling/Upgrading Puppet

The questions below are all related to the topic of uninstalling/upgrading Puppet: How do I uninstall previous versions of puppet? What files do I need to delete and where are they located? Is there ...
0
votes
1answer
22 views

Puppet Agent - launching as sudo

I'm having issues getting my Puppet agent to launch. I will be using the agent with the --onetime parameter as I want to agent to pull its configuration rather than the Puppet Master pushing. I am ...
4
votes
1answer
60 views

Can puppet update package to latest minor release?

For example I have php-fpm installed: Name : php-fpm Arch : x86_64 Version : 5.4.16 Release : 23.el7_0.3 Size : 4.5 M Repo : installed From repo : updates ...
0
votes
1answer
24 views

Apache configuration resulting in recursive /index.html

I'm using puppet to configure Apache, and have a problem. I'm trying to serve a simple front page, with links to 2 subpages for Kibana and Uchiwa. I'm trying to use http://server/logging for kibana, ...
1
vote
0answers
27 views

Puppet node no picking up hiera parameter from global.yaml file

I am using Foreman, Puppet and Hiera to provide parameter data for my nodes. Each node has its own node.yaml file on the Puppet Master in /etc/puppet/hieradata. There is also a global.yaml file ...
2
votes
1answer
55 views

puppet agent failing to run automatically

I have two nodes besides the puppet master listed in my puppet master. The two are currently listed as unresponsive. It appears the puppet agents are failing to run automatically. In my logs on the ...
0
votes
0answers
12 views

Puppet: remediation handler 'Recieved API Response (404)'

What would cause a 404 when trying to run 'touch /tmp/hello' on CentOS6.5? The server has a subscription to its hostname, I don't see anything on the sensu-agent.log on the server showing it got the ...
-1
votes
0answers
10 views

puppet suse12 ruby error

I am trying to execute puppet in suse12 but I am receiving following error: puppet apply --modulepath=/tmp/puppet/modules/ /tmp/puppet/manifest/site.pp --color true ...
0
votes
1answer
15 views

On ubuntu 12.04, what file has the systemwide list of gem sources for rubygems 1.9.1

I need to deploy a gem from a custom gem source to my ubuntu 12.04 servers that are managed by puppet. In the puppet class, I will put the command that adds our custom gem server to the gem sources, ...
0
votes
1answer
18 views

Puppet: Pass facter value to class (sensu puppet module)

Trying to set a custom subscription to get remediator.rb working in the sensu module in puppet. class sensuJenkinsMasterClient { class { 'sensu': purge_config => true, ...
2
votes
4answers
5k views

How to fix Puppet fully-qualified parameter path error?

I regularly but randomly get the following error message when I run the puppet client on machines (non-daemonized): err: Could not create : Parameter path failed: File paths must be fully qualified ...
0
votes
2answers
13 views

puppet: execution ordering of classes 'instances'

I know how I can use resource ordering in Puppet to order built-in types (user, group, cron...) or classes, but I wonder how I can make it for specific instances of classes. For example, I use ...
1
vote
1answer
25 views

Windows Environment Deployment [closed]

We have run into a situation that has caused some issues. We currently are using Inno Setup Software to install are software on our client systems. The issues that we run into is we need to make a lot ...
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 ...
0
votes
1answer
21 views

Grouping nodes in puppet

In my site.pp manifest, I have the following import "nodes/*.pp" This lets me nicely create separate files for different groups. However, inside each .pp file, i still have to explicitly set the ...
0
votes
1answer
26 views

How to fix error: Could not find class apache::base?

I'm using the following sample manifest from camptocamp/puppet-nagios: node 'central_monitoring_server' { import "nagios" $nagiosadmin_password = "XXXX" ... include apache::base include ...
1
vote
1answer
39 views

How to install puppet module from GitHub?

I've installed camptocamp/nagios from Puppet Forge, but seems it has dependencies to puppet-apache_c2c which is published on GitHub. I've installed nagios module as suggested: puppet module install ...
0
votes
1answer
15 views

Do I need to set rules for source and destination ports for outgoing rules on iptables?

I'm using puppetlabs firewall module and I'm having troubles setting up iptables for a simple web host. I'm following this guide and want to set up additional rules. ...
0
votes
1answer
33 views

What to use instead of import keyword?

I'm using the following sample manifest from camptocamp/puppet-nagios: node 'central_monitoring_server' { import "nagios" $nagiosadmin_password = "XXXX" ... include apache::base include ...
1
vote
2answers
39 views

Get value from hiera hash in Puppet

I have this structure in my hiera file that create some rules in my smb.conf. samba::shares: PDF: - comment = "PDF" - path = /home/smb/pdf - browseable = yes - hide dot files = yes ...
0
votes
0answers
34 views

Puppet or chef script to set up an Ubuntu server [closed]

Are there any Puppet/Chef/Other scripts to automatically set up and configure Ubuntu 14.04 with everything needed to host a website securely? I have looked on Github, but nothing seems very popular ...
3
votes
3answers
28 views

Checking puppet-generated exim config before deploying

I use Puppet to generate /etc/exim4.conf and I want to make sure that the configuration is valid before I install the file on production systems. I've considered— using a git hook to call ...
5
votes
2answers
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 ...
-2
votes
0answers
44 views

Install Puppet3 master on AWS (Amazon Linux 2015.03)

I'm trying to install a Puppet 3 master on Amazon Linux 2015.03. The puppet3-master package installs fine, but I need puppetdb, which is not available as an RPM from the AWS repos. Also, I need ...
0
votes
2answers
72 views

How to pass parameter for Exec from notify?

I've the following Puppet manifest: # PHP Configuration class php { exec { "php5enmod $module": path => "/usr/sbin", command => "php5enmod $module", } file ...
14
votes
2answers
1k views

Puppet and launchd services?

We have a production environment configured with Puppet, and want to be able to set up a similar environment on our development machines: a mix of Red Hats, Ubuntus and OSX. As might be expected, OSX ...
0
votes
2answers
4k views

Puppet: exec onlyif value is not equal

I have a script that really only needs to be run one time on a server, i.e. at deployment time, but figured it would be best to have Puppet manage it. The script remaps several legacy user id's that ...
3
votes
1answer
474 views

Vagrant: I need a provisioning system with no dependecies

Getting off the ground with a vagrant config. Host is Windows. I have a really simple config, so I wanted to use Ansible, but got this: [default] Running provisioner: ansible... The executable ...
1
vote
1answer
1k 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 ...
-3
votes
1answer
36 views

Puppet noob, stuck on the same error for hours

I'm trying to setup a puppet master with hiera. When I try "puppet agent --test" on the mongo node I get this error. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ...
0
votes
1answer
20 views

ec2_metadata fact not updating

I have added a "role" value to my instance metadata (I'm running on Openstack). I see it in curl http://169.254.169.254/openstack/latest/meta_data.json, but it is not appearing in the ec2_metadata ...
-1
votes
0answers
33 views

Puppet: Local environment: “bootstrap” doesn't match server specified node environment “production”

When I run puppet agent --noop --test --environment=bootstrap I get this warning: Warning: Local environment: "bootstrap" doesn't match server specified node environment "production", switching ...
0
votes
2answers
590 views

How to apply prefork configuration for Apache in Puppet?

I'm using the puppetlabs apache module to manage my apache configuration. I got everything configured, except the Server settings for mod_prefork. There is a template for prefork and it gets variable ...
0
votes
2answers
56 views

Managing thousands of machines with approval controls [closed]

We are a startup that is just getting up to speed and running into the problem of managing hundreds of machines, and having to do nightly and weekly releases to all of them as well as managing their ...
3
votes
1answer
36 views

Puppet: How does hierarchy work if a role is matched?

I'm trying to understand how does Puppet hierarchy works. My Puppet server's hiera.yaml looks like so: [root@puppet puppet]# cat hiera.yaml :backends: - yaml :yaml: :datadir: ...
0
votes
1answer
25 views

Setup SSL keys when using roles-profiles pattern with Puppet

Here is a scenario. I have two web applications (lets call them webapp1 and webapp2) that needs apache, php (with some modules), and the web app's code it self. This is how I set this I set this up ...
1
vote
2answers
868 views

Problem getting puppet to sync custom fact

I am having trouble getting puppet to sync a custom fact. I am using puppet version 0.25.4. The fact is inside a module as described in http://docs.reductivelabs.com/guides/plugins_in_modules.html If ...
17
votes
5answers
936 views

When is it appropriate to use a configuration manager (eg Puppet / Chef / Ansible)?

At my current workplace, I look after two VMware host machines, an OpenBSD physical machine, three Debian VM's, and six Windows Server VM's (2008/2012). I'm considering implementing a configuration ...
8
votes
2answers
4k views

How do I provide dpkg configuration parameters to aptitude or apt-get?

When installing gitolite I find that: # aptitude install gitolite The following NEW packages will be installed: gitolite 0 packages upgraded, 1 newly installed, 0 to remove and 29 not upgraded. ...
2
votes
3answers
6k views

solved: puppet master REST API returns 403 when running under passenger works when master runs from command line

I am using the standard auth.conf provided in puppet install for the puppet master which is running through passenger under Nginx. However for most of the catalog, files and certitifcate request I get ...
1
vote
1answer
41 views

Is it possible to execute «unless» clause as a specific user?

Background: I am upgrading our lxc puppet module to support the emerging unprivileged LXC technology. The code that creates the container is executed unless the following test if the container ...
-2
votes
1answer
29 views

How to implement iptables using Puppet

i would like to implement these rules below in puppet from puppet master to clients Could anyone help me to get the script for this iptables rules, and in which file we want to have this below ...
2
votes
1answer
42 views

how to open port 80 on box managed with Puppet

I have a puppet master virtual machine that manages almost 20 nodes. I have Nagios installed on one of these nodes and in order for the Nagios GUI to work I would need to stop the iptables on that ...
1
vote
2answers
974 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 ...
2
votes
1answer
51 views

Is the file current.mof a bottleneck when using the DSC module?

The msutter DSC module (PowerShell Defined State Configuration) seems to have a bottleneck. Every class that uses a DSC resource generates intermediate Powershell/DSC code that creates a file called ...
8
votes
4answers
13k views

how to set path when applying single puppet module?

I'm trying to run a single module like this: puppet apply --verbose --modulepath=moduleshere --noop -e 'include myclass' However, I get this kind of error, indicating the path is not set Parameter ...
2
votes
2answers
45 views

How to disable yum repositories not managed by puppet

Trying to bring a very ad-hoc environment into a more standardized and managed state. In my use-case, I'd like to disable all non-Red Hat repositories (provided by the subscription-manager plugin). ...
0
votes
0answers
22 views

Augeas: setting multiple array elements

I'm trying to modify multiple entries in grub.conf via augeas that are broken down by the lens in an array. augtool> ls /files/boot/grub/grub.conf/ default = 0 timeout = 5 splashimage = ...
5
votes
1answer
86 views

How to exclude named pipes and sockets in Puppet?

We have an application which spawns named pipes (type p) on the fly. We want to manage the other files of the directory where the pipes are spawned with Puppet. Is there a simple way to tell puppet to ...
0
votes
0answers
25 views

Securing SSL Keys (for production web application) with Puppet and Hiera

I'd like to know what is the best way to secure SSL keys and certificates for web applications. I am using the roles/profiles pattern. Here is the scenario: I have a web application. There is a ...