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
66 views

How do I configure virtual hosts on instances? [closed]

I've created a host type with puppet classes suitable for a web server and have successfully built a server with this. However, I can't see how to configure a vhost on that server (without actually ...
0
votes
4answers
62 views

Puppet: include other files depending on hostname

I'm trying to get something like this to work in my Puppet manifest: if $hostname == 'host1' || $hostname == 'host2' { # Modified config.txt for portrait mode. file { ...
1
vote
1answer
74 views

Puppet not passing exe switches on windows

I am trying to install vlc to my lab of 150 window computers using puppet. I am following this guide and have set up my manifest as: node 'node.domain.tld' { package { "VLC media player 2.1.3": ...
1
vote
0answers
132 views

Puppetlabs Apache module: Debian PHP-FPM FastCGI APC

I'm currently setting up a new web server on Debian Wheezy and use the following modules from the forge: http://forge.puppetlabs.com/puppetlabs/apache http://forge.puppetlabs.com/example42/php The ...
3
votes
2answers
39 views

Filter puppet pluginsync

Is there a method to filter which plugins are being syncd? I have a few new modules downloaded from the forge (puppetboard,puppetdb,python). These modules include plugins, they are also only needed ...
0
votes
1answer
92 views

Puppet: class already declared

I'm currently in reorganising the structure of my puppet code to a model, which uses, profiles and roles. I've started with profiles and was testing, but already run into issues :/ In my node ...
2
votes
1answer
58 views

Puppet - Don't stop manifest execution if a module fails

I'm having some trouble understanding one of many Puppet logic mechanisms : the module failing scenario. I have multiple modules doing various things on a set of differents nodes and I want to ...
2
votes
1answer
193 views

How to define multiple /etc/hosts entries with Puppet ENC?

I'm writing an External Node Classifier for my Puppet infrastructure, and I have the need to manipulate the /etc/hosts file on each node. The following (due to the duplicate key) is invalid YAML: --- ...
3
votes
1answer
64 views

The wisdom of 'server 127.127.1.0' in ntp.conf for virtual servers

Considering the 'undisciplined local clock' on VMs is not what you'd call accurate in most cases, how wise is it to include lines such as these in your NTP configuration? # Undisciplined Local Clock. ...
0
votes
1answer
36 views

creating development environment with a button click

We create development and testing environments manually and its taking lot of manual effort and time now. We want to completely automate that like "click a button to create a development/testing ...
6
votes
1answer
375 views

Puppet package “ensure => latest” doesn't always work

I have a unique situation where the Puppet package ensure => latest directive only worked on some of my systems. Out of 30 servers, the packages updated properly on all but 4. I'm trying to get ...
0
votes
1answer
40 views

Cannot find class pe_mcollective

I'm migrating to Puppet Enterprise. Already pushed through a few issues, but now faced with this annoying problem during an agent run ... Could not find class pe_mcollective ... First off I'm not ...
2
votes
1answer
24 views

Puppet master executes a catalog on itself

Can a puppet master execute its catalog on itself? I want to automate some tasks on my master server. The best would be to create a node for the master server and apply the catalog directly. If it's ...
0
votes
1answer
52 views

Puppet Master does not seem to be receiving certificate to sign from agent

I wanted to configure DNS round robin on my Puppet 2.7.23 Master servers. I configured 2 Red Hat 6.5 servers with Puppet running via Rack with Passenger on Apache 2.2.15 with mod_ssl. I configured ...
0
votes
1answer
245 views

Puppet, hiera and erb - erb would not recognize array

I have a pretty annoying error I am desperate to fix. I have a puppet module where certain things are kept in a yaml file (hiera) so that people could quickly edit just that part. The structure is ...
2
votes
1answer
14 views

Exclude ifaces from network related facters

I am looking for a way to exclude ifaces from the macaddress and the interfaces facter in order to make puppet run faster on certain hosts. These facts are built-in as far as I understand and I would ...
0
votes
2answers
169 views

How to fix php5-mcrypt on Ubuntu 13.10 install via puppet?

I'm pretty new to Puppet. So, I'm here asking for help on how the best way to fix my problem. I'm using this puppet module to provision PHP into my Ubuntu 13.10 box. But, it seems that package ...
1
vote
1answer
69 views

How do you upgrade puppet on Apache / passenger on EL6.4?

I have a Scientific Linux 6.4 server running apache / passenger with puppet-server installed. Also installed is Foreman 1.4. When I upgraded my agents to 3.4.2, they started all logging: Using less ...
0
votes
1answer
122 views

Can I get the exact error when starting Apache using Puppet?

How can I get Puppet to show me the real error when it starts Apache and there's a problem? Is it a limitation of Puppet? Of Apache? Of how I put them together? I've created a Puppet module for ...
1
vote
3answers
120 views

puppet hash create file

Sooo i have this hash in app1's puppet manifest $applicaton = 'app1' daemontools::build { $application: path => "/opt/supervise/${application}" envvars => { ...
1
vote
2answers
98 views

Puppet master digest issues

I am running the following setup of Puppet : Puppet master : CentOS 6.4 x86_64 with puppet-server-3.2.1-2.2 and openssl-1.0.0-27.el6_4.2.x86_64 Puppet agent 1 : RedHat AS 4.8 x86 with ...
0
votes
3answers
151 views

Puppet: Trying to configure puppet client for first use but got some problems with certificates

I'm trying to configure my clinet 'Itai-test' to receive puppet settings from the puppet server which is called 'puppetmaster'. On the server I ran: [root@puppetmaster requests]# puppet cert ...
6
votes
2answers
237 views

How would we automate networking in a puppet environment?

Our infrastructure: we run a puppet master for about 250 nodes (about 100 hardware servers). The OS on the nodes itself is fully puppetized. Now we're looking into extending this puppet setup to the ...
1
vote
0answers
46 views

How to delete group using puppet when main group of another user

I have the following Puppet recipe: group{'pablo': ensure => absent, gid => 1020, } user{'pablo': ensure => absent, gid => 1020, managehome => false, } But ...
4
votes
2answers
167 views

Is it possible to use Puppet to ensure multiple files in a directory are present without defining all of them?

I have a couple hundred one-off servers that have different configuration files that need to be present in a directory. Copies of the files reside on the puppet master. Within one of my classes I ...
0
votes
1answer
120 views

Using Puppet with complex Nginx VirtualHosts

I'm trying to use Puppet and a Nginx plugin to manage a virtual host config file. I have everything working, but now that I need to add some rewrite rules I'm running into issues. I know I can use ...
4
votes
3answers
135 views

What is the recommended puppet server directory layout?

I am just setting up a new puppet server and wanted to find out what the best practise directory structure is? Ive had a look around on different forums and on the puppet site and what strikes me is ...
2
votes
2answers
388 views

Basic puppet: Writing infrastructure configuration with an ENC, style, how-to?

I barely know enough Puppet to ask this question. I think I understand that the configuration for a particular node would consist of a collection of modules, with some node-specific glue. From the ...
2
votes
1answer
49 views

puppet: enable / disable recurse directories

so i have a basic modification module which applies to all servers managed through hiera. One submodule is called "files" and puts the scripts to /usr/local/bin/ of each server. So it iterates through ...
2
votes
2answers
70 views

Chef-to-Puppet transition: How to search for nodes when writing templates?

I've moved from a Chef shop to a Puppet shop. Here's something I would commonly do in Chef: I would have a template for a config file for, say, Varnish or haproxy, that would route requests to nodes ...
1
vote
1answer
84 views

Reload Puppet gem provider source

So I've got Puppet Enterprise 2.7 on a "master" node, puppetentmaster. While working to craft new recipes for installing Ruby 2.0 on a "client" node, I noticed if I forced the client to begin using ...
0
votes
1answer
425 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 ...
1
vote
1answer
136 views

Problems with Exec in Puppet

i want to to run the following command with puppet: sb2-init rasp /home/ubuntu/raspberry_pi_development/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc In ...
1
vote
2answers
48 views

Puppet pre-generated certificates for multiple agents

I have a requirement like below I have generated pre-generated certificates in master for multiple agents with some name I have to copy the pre-generated certificate to all the agents. All the ...
1
vote
1answer
103 views

How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) to send log files from several servers to a central server?

Summary How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) and scheduler (cron) to send log files from several servers to a central server? Context Our ...
4
votes
1answer
134 views

Print hiera config to multiple lines in config file managed by puppet

In my yaml file I have multiple values that need to be printed out into an ini file managed by another php module. I can grab the values through heira and output them to the ini file but it's in the ...
1
vote
2answers
75 views

Puppet - 2.7.x - Set SGID

Im trying to puppetize a module which will ensure I have the same path on servers for storing local log files for custom web applications. As such I would like to set the SGID to ensure that even if ...
0
votes
1answer
140 views

Recreating CentOS environment with Vagrant

I have a Vagrant and CentOS related question. I'm trying to replicate a CentOS server which uses WHM/cPanel for hosting. Each site on the server is hosted in /home/$user/. This means with Vagrant I ...
8
votes
1answer
608 views

Configuration management: push versus pull based topology

The more established configuration management (CM) systems like Puppet and Chef use a pull-based approach: clients poll a centralized master periodically for updates. Some of them offer a masterless ...
3
votes
1answer
108 views

Puppet reporting without master

I am planning a Puppet infrastructure for about 100-200 servers. This is the design so far: Stash (git) for storing puppet config (not planning on using a master). Hiera to query either yaml, json, ...
2
votes
2answers
117 views

Puppet: managehome on user type only works when user doesn't exist

I'm looking for clarification here. It seems the managehome attribute of the user defined type only works when the user doesn't exist. Have a look at this DSL user { 'artifactory': ensure ...
0
votes
1answer
80 views

puppet gitlab postgresql conflict

I#m trying to setup a VM with postgresql and gitlab. I'm using the following packages: gitlab & postgresql This is my init.pp class { 'postgresql::server': ip_mask_deny_postgres_user => ...
2
votes
0answers
58 views

puppet node keeps adding itself to the master

Im at the start of learning puppet. So far I successfully setup my master with dashboard and a couple of agents. But on one of my testing nodes I made a mistake when adding the node. I added it twice ...
0
votes
1answer
113 views

Puppet Init VirtualEnv Just Once

So here's a snippet from my manifest (based on this module: https://github.com/stankevich/puppet-python): python::virtualenv { $virtualenv_dir: ensure => present, version => 'system', ...
3
votes
2answers
260 views

Trying to install RabbitMQ with Puppet

Here is error I am getting: ubuntu@sync1:/etc/puppet$ sudo /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install rabbitmq-server Reading package lists... Building dependency tree... ...
3
votes
2answers
169 views

Best way to exclude node from puppet manifest

I would like to exclude a few nodes from a manifest. I've read "How to exclude Puppet modules for a few nodes?", but I would like to achieve something similar to ...
3
votes
2answers
120 views

Puppet eval variable only once

I generate password for new users with apg Simple: $password = generate('/etc/puppet/utils/gen_password') The only problem with this command is that I need it only once, but it's evaluated every ...
3
votes
1answer
144 views

Pass hostname as argument into Fabric task

I'm trying to put together a fabric script that creates a virtual instance via an API and then runs puppet on that instance. I've got a task that creates the VM, and a task that can 'bootstrap' the ...
1
vote
1answer
73 views

troubleshoot puppet install order

My puppet agent run fails initially, then succeeds on the second run. I understand that it probably has to do with my execution order, and a dependency is being added later on in the execution ...
3
votes
3answers
223 views

Update puppet master certificates automatically on new certificate

i am in process to set up a number of stateless nodes. Each node is provided with the same OS image file. It fetches the hostname from the DHCP/DNS server during boot time. Next step is to acquire ...