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

Puppet recurse attribute for file resource when creating non-directory/normal files

If I want: file { '/var/shennanigans/happy-hour.drunk': ensure => present, mode => 700, owner => shamus } Can I use recurse => true to ensure the shennanigans directory exists ...
3
votes
1answer
66 views

Puppet: ensure user is in wheel group on all nodes without affecting other group membership

I want to make sure user bob is in wheel group on every server managed by puppet, but I do not want to change any other group membership for that user if on one node bob belongs to the apache group, ...
4
votes
2answers
50 views

Puppet: Run Augeas only when a specific package exists

I want to use Augeas to modify "/etc/inittab", but this should only happen when the package "sysvinit" is installed. That package is not under Puppet control (and shall not be). The "onlyif" from ...
0
votes
2answers
309 views

Using puppet to ensure vagrant box is upgraded

I'm using puppet to provision a vagrant box (Ubuntu in this case). After initially starting the vagrant box (vagrant up), running apt-get upgrade will list several updates. I would like to run these ...
0
votes
1answer
99 views

Default path for exec resource with forman and puppet

I'm using Foreman (1.4) and Puppet (3.4.3). I just started using Foreman and Puppet like 4 weeks ago, so I'm new. What I want to do is set a default path for exec resources. According to many howtos ...
-2
votes
1answer
404 views

Why chef, puppet, ansible, salt, etc.? [duplicate]

The devops tools ecosystem is puzzling to me. Instead of shell scripts that work everywhere everyone in the server orchestration/management space is bolting on their own proprietary formats. Ansible ...
4
votes
1answer
1k views

How to set up :datadir: when using Hiera with Puppet and Vagrant

I'd like to know how to set up :datadir: in hiera.yaml for optimal usage with Puppet and Vagrant. Currently I'm using vagrant 1.5.0 with virtualbox 4.2 on Ubuntu 13.10 with an Ubuntu 12.04 guest ...
0
votes
1answer
71 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
67 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
79 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
140 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
41 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
110 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
70 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
220 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
66 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
420 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
45 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
25 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
57 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
277 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
15 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
187 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
73 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
130 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
125 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
106 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
189 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
243 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
50 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
214 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
133 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
152 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
421 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
52 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
72 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
88 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
479 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
143 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
49 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
107 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
143 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
76 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
146 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
665 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
109 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
133 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
84 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
59 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 ...