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

learn more… | top users | synonyms

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
238 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
78 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
190 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
147 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
142 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
492 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
271 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
1answer
73 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
443 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
181 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
216 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
596 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
59 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
84 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
105 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
636 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
176 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
57 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
122 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
172 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
84 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
171 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 ...
10
votes
1answer
928 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
118 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
184 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
108 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
65 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
147 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
361 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
217 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
169 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
206 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
82 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
298 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 ...
2
votes
1answer
66 views

How to insert row into RDBMS table from puppet module?

I have a database table where I need to insert a row for each host has been assigned a particular puppet model. Lets call this puppet model foo. The db table is called foo_hosts has three columns: ...
4
votes
1answer
112 views

Why would Puppet exclude a file resource without error?

The oddest thing is happening during this Puppet run (using Puppet Apply) and it has me perplexed. I've tried my usual channels to find solutions but I cannot find anything on the topic. I apologize ...
-1
votes
1answer
65 views

New puppet master VM counted towards licenses used, old puppet master node made agent no longer responsive

*Using VSphere Client 5.1 Ubuntu precise VM's with Puppet Enterprise 3.3.1 and PostgreSQL 9.3.1 I am utilizing the same postgresql database to manage a new puppet master and I know that the licenses ...
3
votes
2answers
246 views

Manage enable - disable nginx site by Hiera puppet?

i got the task to implement hiera puppet script to manage sites_enabled for nginx. Here is my puppet script: common.yaml --- classes: - nginx nginx: enabled: abc.com ...
0
votes
1answer
139 views

Puppet agent not following `server` setting

I have a very strange issue with Puppet 2.7.18 (on a Raspberry Pi) that started all of the sudden. In simple terms, the agent only partially follows the 'server' directive in puppet.conf. The ...
0
votes
2answers
131 views

How to add multiple checks of OS for a package in puppet

I have mixture of CentOS , 5.8, 5.7, 6.1, 6.3 , 4.7 Ubuntu, Debian, servers with me. I want all of them to have nrpe installed on them. the problem i am facing is that when i write puppet code to ...
2
votes
3answers
92 views

How to make puppet to start all services in the end of the catalogue run?

Especially when setting up a completely new server from the scratch, puppet tends to start dependant services as soon as all their dependencies are satisfied. This sometimes leads to situation that ...
1
vote
2answers
2k views

puppet only exec when file does NOT exist

I only want to exec following command when file (/usr/local/bin/papply) does not exist. not sure what to put there. exec { 'git add url': command =>'git remote add origin ...
2
votes
1answer
457 views

How to collect tagged exported resources?

I export an haproxy::balancermember resource for my application servers: class www_admin($datacenter){ @@haproxy::balancermember{"${hostname}-www-admin:9193": listening_service => ...
2
votes
0answers
142 views

When using the puppet node init command, are the parameters to specify in the answers.install file

On puppet-enterprise version 3.3.1, I am attempting to use the puppet node init command on a VMware puppet master node hosted on a VMware VSphere client with VCenter 5.1.0. My puppet master node has ...
3
votes
2answers
63 views

How does active puppet agent handle downed puppetmaster?

Say that a puppet agent is in the middle of a refresh and I stop the puppet master service. Is there any point that it would potentially cause an incomplete or corrupt setup to be pushed out like I ...
4
votes
2answers
285 views

Overriding Parameters in Previously Declared Puppet Resource

I'm attempting to rebuild nwaller's sssd puppet module to be entirely LDAP based and to be a little cleaner. In it we have a resource defined for each authentication domain of the form define ...
1
vote
1answer
78 views

Augeas edit option if it exist, add otherwise - while referencing newly created node

I want to do something along the lines of: set /files/etc/exports/dir[. = '/export/home'][client = '10.0.0.0/8'] /export/home set /files/etc/exports/dir[. = '/export/home'][client = ...
2
votes
1answer
65 views

Is there more than one provisioning technology named fog? [closed]

I have a puppet installation in which I tried to check the fog version (for cloud provisioning), but I got no response so I assumed it was not installed. I need fog in order to utilize the vmware ...
1
vote
1answer
294 views

Puppet fails to mount a CIFS share

I have a Puppet module that I use to mount a CIFS share. Both the puppetmaster and the agents are running SLES 11. The mount works manually with this command: mount.cifs //servername/path/to/share ...