Tagged Questions

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
16k 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
154 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
126 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
492 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
423 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
59 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
580 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
281 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
83 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
66 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
397 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
95 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
407 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
143 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
1k 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
193 views

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

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
476 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
122 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
135 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
85 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
30 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
173 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
108 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
77 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 ...
1
vote
2answers
955 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
292 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
675 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
3k 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
156 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
306 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
194 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
279 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
58 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 ...
1
vote
1answer
577 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
133 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
730 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
160 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
47 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
1k 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
92 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
30 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
132 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
1k 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
21 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 ...
1
vote
3answers
413 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
85 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
302 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
217 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
251 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 ...
1
vote
3answers
2k 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 ...