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
15 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
23 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
29 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
10 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
29 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
28 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
26 views

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

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
23 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 ...
-1
votes
0answers
16 views

Chef/Puppet Setting up a Spark + HDFS Cluster [closed]

I have several servers with linux containers running on them. I would like to install a spark cluster on them for spark-streaming with hdfs support. I was wondering if there is any quick way for this ...
-2
votes
0answers
34 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
47 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
468 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
34 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
27 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
571 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
55 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
31 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
24 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
867 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
901 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
39 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
28 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
40 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
949 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
47 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 ...
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 ...
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
43 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
19 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
85 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 ...
2
votes
1answer
1k views

Puppet vcsrepo git checkout branch

I am using puppet to clone a repo on an agent node. My site.pp contains node foobar{ vcsrepo{"home/user1/gitrepo1": provider=>git, source=>"https://github.com/foobar/foo.git", ...
0
votes
0answers
13 views

vsftpd service with tls enabled exit code 2

I am trying to set up TLS for VSFTPD on CentOS7. Whenever I try to start the service it fails with exit code 2 and no other information. anonymous_enable=NO local_enable=YES write_enable=YES ...
2
votes
1answer
46 views

What's correct catalina_base path for Tomcat installed from the package?

I've the following manifest to configure Tomcat to use 8983 port instead: include java class { 'tomcat': install_from_source => false } tomcat::instance {'default': package_name => 'tomcat7'} ...
2
votes
0answers
36 views

Centralized ubuntu update server

I am in the process of configuring a Central Update Server so we can better manage the security updates on our ubuntu based cloud servers. Here is my plan so far Install apt-mirror on cloud instance ...
1
vote
1answer
29 views

Puppet windows agent

When I tried to install my puppet agent on one my servers (windows 2008 R2), the confdir seems to default to u:\ drive. U: drive is not present for user. I can also see that the puppet labs directory ...
0
votes
1answer
26 views

Migrate vagrant Ubuntu VM to physical machine

I am attempting to use vagrant and a puppet workflow to configure a Ubuntu production server VM which will host a web application. I want to be able to reuse this workflow to configure multiple ...
0
votes
3answers
391 views

Puppet include/require a puppet lab's module

How do you create a puppet manifest that 'uses' one of the modules on the puppet forge? class foo { include puppetlabs-git (<- this doesn't work) ...
0
votes
1answer
45 views

What's the simplest way of installing Tomcat7 via Puppet with dependencies?

I'm trying to build the simple Puppet recipe as below: package { 'openjdk-7-jre-headless' : ensure => installed, } package { 'tomcat7-common' : ensure => installed, } package { ...
0
votes
0answers
22 views

Centralized package management of Ubuntu servers with QA

I currently manually maintain 3 Ubuntu servers, but now we're taking on another project that will have something like 25. So I'm looking into how to maintain that many servers without making ...
-1
votes
2answers
48 views

How to install Solr 4.x on Tomcat via Puppet?

So far I've been using the following recipe for installing Solr 3.x on Tomcat 6: package { 'openjdk-6-jdk' : ensure => installed, } package { 'solr-tomcat' : ensure => installed, } exec { ...
1
vote
1answer
4k views

How do I configure parameterized classes with arrays in puppet?

My goal is to define a class that takes, as input, an array of pairs. Since I'm not sure how to define an array of pairs, I'm just going to use a pair of arrays instead. class student($username, ...
1
vote
1answer
20 views

Concatenate arbitrary number of templates in Puppet

I'd like to use template() to concatenate some files. I read this question, which is fine if you know exactly how many files you want to concat. What if I just have an array of input file names? ...