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
0answers
13 views

Puppet modules in PuPHPet

I just tried the PuPHPet puppet receipe online configurator, which worked out without any big problems: vagrant up and things are running. The folder structure that was added to the download/zipball ...
3
votes
2answers
42 views

How to ensure that the «if» statement gets parsed _before_ a given resource/class?

Sometimes there are complicated interactions between packages. To avoid class interface with countless, seemingly unrelated parameters, I though about using tags, defined(<resource>) function ...
1
vote
1answer
17 views

Puppet and managing .k5login with parameters and arrays

So I have Foreman set up, and would like to pass in a parameter that is basically a way to easily specify users and groups that can log in as that user. My idea is currently to have the parameter take ...
5
votes
3answers
26 views

Version Controlling Foreman & Puppet

I have just setup Foreman for the first time & am not sure how to go about putting all of my configurations under version control. I know I can use Git for each module I install on my Puppet ...
0
votes
1answer
60 views

ConnectionError: [Errno 111] Connection refused (Openstack installation through Puppet)

I have just completed an installation of Openstack through puppet, and after jumping through a few hoops have gotten to a point where I can attempt to log into the dashboard. When I do this I'm ...
3
votes
2answers
77 views

Using puppet and ensure latest for RPM package management

Using ensure => latest, I have systems which do not need all of the same packages. Will ensure => latest install the packages or only update if they already are present? If they are not ...
1
vote
1answer
43 views

puppet: how to submit command “yum update” to all agents?

I'm new to puppet and trying to create manifest which will request all agents to update all currently installed yum packages. What should be the best way to describe this in manifest?
1
vote
1answer
32 views

Invalid parameter config_hash: Attempting to install mysql (and Openstack) via Puppet

I've searched around for hints on how to solve this but I haven't been able to find anything concrete. I've seen Puppet apache module causing 'Error 400 on SERVER: Invalid parameter ...
2
votes
1answer
51 views

How to disable user's password via puppet securely?

I have my SSH servers setup to use only Public Key authentication with password authentication disabled. When adding users through puppet I would like to disable user passwords. So far I have came ...
3
votes
1answer
31 views

Puppet default node definition

I have some confusion about the default node. Will the classes defined in the default node only be applied if there is not other node definition, or do they get default and any other matching node ...
1
vote
1answer
25 views

Puppet 2.7 Ensure file on client updates when puppet:///file is updated on Master

I have a Perl script that I pushed out to all my Puppet Linux clients. I have since edited my script, module/modulename/files/scripts/a_script script on the Puppet master, but the clients don't get ...
-1
votes
3answers
91 views

Can I administer Amazon RDS instances with, Chef? Salt? Puppet? Ansible?

On the face of it, it looks like I need to be able to install some software daemons on the target nodes for these things to work. If I can't do that (e.g. an Amazon RDS instance), what are my options? ...
1
vote
1answer
35 views

npm install not running properly over puppet

I'm having a problem running npm install when using Puppet to set up my application. I'm using Puppet to set up a node.js application that we will be using live in a few weeks. This application has ...
1
vote
1answer
20 views

puppet apply and extlookup

I still use extlookup (Yes, I know that it's deprecated :-( But I can't find time to move to hiera). My problem - I need to move from puppet master/puppet agent setup, to puppet apply that is run ...
4
votes
2answers
49 views

Puppet: create service before file but notify service if file changes

I want file "run" to be created AFTER Service nginx, but also i want to notify Service nginx if file run changes. Notify implies that it is run BEFORE nginx. The use case is the following. We use dj ...
1
vote
1answer
33 views

Puppet 3.3.1 Certificate verify failed

I`ve trouble to setup a master/node scenario with puppet 3.3.1 (puppet opensource) on both master and slaves. The slaves are on a windows and SLES machine. The Master is also on a SLES machine. The ...
0
votes
2answers
73 views

Finding a user's home from bash

I'm trying to get the value of a user's home from a puppet script. This particular user is a Samba user, not a local one, with the username of the form DOMAIN\user. I've tried the following, with no ...
1
vote
1answer
17 views

Puppet: substitute parameter in fact name

Here is custom fact: require 'etc' Etc.passwd do |user| Facter.add("homedir_#{user.name}".intern) do setcode { user.dir } end end It determine users home dir locations. Here is ...
1
vote
2answers
35 views

What is the best practice to set a global variable in puppet?

I have several modules which uses the same admin mail, right now it's hardcoded all over the place, is it correct to setup a global variable, I mean, with global scope or is there something else I can ...
0
votes
1answer
22 views

Command not found in if-else statement

I have some function, that do chroot into some directory. I execute this command twice with exec type if if-else statement. First time I execute command in then section, and second time — in else with ...
3
votes
1answer
53 views

Correct way to add commands to to rc.local above “exit 0” with puppet?

A puppet novice, I'm currently working on a deployment script that will start a couple of foreverjs services from rc.local at boot time. My concern is that, in Ubuntu, rc.local comes with an exit 0 ...
0
votes
0answers
27 views

Puppet MongoDb enabling authentication and defining password

I'm working on enabling authentication using the puppetlabs mongodb module. As the docs say, to enable authentication, I should add auth => true. But in order for authentication to work, I have to ...
0
votes
2answers
61 views

“/usr/bin/env: bash: No such file or directory” during puppet exec command

I am setting my first steps into puppet. I am trying to setup ambari. This is my puppet config: exec { "ambari-repo": command => "curl ...
1
vote
0answers
38 views

Need a PHP version manager to deploy multiple versions of PHP on production servers

I'm currently running a few LAMP stacks, where I've setup PHP 5.2, 5.3 and 5.4 by hand. All servers are running Ubuntu 12.04 LTS. 5.3 is currently installed via apt-get but all other PHP versions are ...
3
votes
1answer
46 views

puppet doesn't remove old mount entry in /etc/fstab

I defined a simple class for mount a nfs share on host as follow(current) class mounts { file { [ "/mnt/share", "/mnt/share/share1" ]: ensure => 'directory', } mount { ...
0
votes
0answers
34 views

Identical Vagrant VM's install pip packages differently?

I have a vagrant VM being provisioned via Puppet. I'm testing this on two different Ubuntus, 12.04 and 13.10, both using the "standard" precise32 box. The application I'm testing is a Django ...
0
votes
1answer
29 views

Puppet file link doesn't create target under Windows

file {'VaultUsersLink': path => "C:/VaultWorkspace/VaultUsers.lnk", require => File['VaultWorkspace'], ensure => link, target => ...
1
vote
1answer
30 views

Use puppet to manage a set of files under different subdirectories

So I have a need to generate a file tree for certain users on Windows. I need to provide a list of users, preferably from an external fact, and have puppet make sure a set of files is in a directory ...
0
votes
0answers
21 views

Overriding types in Puppet

Is there a possibility to override standard types such as file or service in Puppet? I have to use my own class and functions to manage file system in containers on puppet agents, but I haven't ...
0
votes
1answer
19 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
52 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
29 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
46 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
37 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 ...
-3
votes
1answer
163 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 ...
1
vote
1answer
142 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
36 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
31 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
43 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
44 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
1answer
28 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
28 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
37 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
60 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
45 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
31 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 ...
5
votes
1answer
136 views

Puppet package “ensure => latest” does not 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
17 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
21 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
27 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 ...