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

1
vote
1answer
153 views

puppet-logstash module produces a blank logstash.conf

I am probably confused on the proper usage. I have setup the configuration of my shipper using Hiera: classes: - os::repo - profiles::logstash::shipper logstash::configfile: 'input_file': ...
0
votes
1answer
33 views

cluster of services and restarting on package upgrade

I'm using puppet to manage a bunch of servers. Those servers run a simple service - exposed to the world via load balancer. That service's instances are independent in that they can run on their own, ...
1
vote
4answers
189 views

How do I use saz-sudo puppet module to deploy my own sudoers file with hiera?

I have saz-sudo installed and have created a site_sudo module based (I hope) on it. Here's what I have in my site_sudo/manifest/init.pp file: class { 'site_sudo': } sudo::conf { 'web': ...
1
vote
1answer
52 views

Puppet on Windows failing silently

None of my newly added Windows Puppet nodes seem to work, though none give errors. My Linux nodes work fine. I tried this line below in my nodes.pp, and a puppet kick runs without error, but does ...
-1
votes
1answer
60 views

Nested Puppet Resources

Iv recently installed a puppetmaster and im trying to configure a puppet class with a nested resource. eg. class base { user { 'testuser': name => 'test', ensure => ...
1
vote
1answer
828 views

Puppet Duplicate declaration errors with virtual defines

I'm trying to use puppet to add all my users to a system and add all of them to a single group. However, I keep getting Error 400 on SERVER: Duplicate declaration: Group[users] is already declared ...
4
votes
1answer
31 views

Puppet implicitly includes a class?

A fellow engineer came to me with an interesting puzzle. He discovered that third party module (docker, in this case) which contains a class he wants to customize with parameters is not referenced ...
3
votes
1answer
383 views

“net ads join” fails in puppet exec but runs OK directly from command line

I have the following exec that joins a Linux (CentOS 6) host to an Active Directory domain. When run as root from the bash terminal, it runs successfully and the host is joined to the AD domain ...
-1
votes
1answer
89 views

Network protocol of Puppet [closed]

I want to know, how puppet master process and agent process interacts with each other using network. I mean, what exactly occurs, when master process send commands from manifest to agent process and ...
3
votes
2answers
88 views

Getting a list of resources of a given type

I am setting up a dirvish backup system using puppet. Dirvish has the concept of a vault - a self-contained directory which contains the backup data and the configuration for what and how to backup. ...
0
votes
1answer
298 views

Managing AWS Beanstalks with Puppet

I'm thinking about using Puppet Enterprise to deploy sets of servers/services to Amazon Web Services. As far as I can tell, the best way to do this is via CloudFormation. Based on what I've read, ...
3
votes
1answer
393 views

Enable FastCGI on Apache with Puppetlabs/Apache

I'm using Puppetlabs/Apache to configure Apache. In the main puppet file, I call and configure it: class { '::apache': } class { '::apache::mod::fastcgi': } apache::vhost { "${::fqdn} non-ssl": ...
1
vote
2answers
63 views

puppet provisioning, new node, update configuration on master

What would be the preferred way to update the configuration of one node when provisioning new nodes? E.g. let's say there is a cluster-like environment i am provisioning nodes, let's say these nodes ...
2
votes
1answer
61 views

Puppet: conditional definition of types

I am not sure how to word this questions so please suggest an edit if you feels its inappropriate. I am trying to extend existing puppet modules with support of different OS. I have ran out into a ...
1
vote
2answers
237 views

Creating a resource only once with Puppet

I have a class which prepares config files and keys inside the puppet files folder so that they can be downloaded by other nodes. The class will be called once for every other node besides the puppet ...
0
votes
1answer
161 views

Puppet variables, defaults, merging and a template

During the task of writing a module, I found out that I have a huge amount of configurable parts. To better organize the module (for the sake of read- and maintainability), I have chosen to split ...
4
votes
1answer
90 views

Is there a streamlined way to export settings from an existing CentOS 5.10 server for local Vagrant provisioning? (Puppet, Chef, shell, or otherwise)

I've recently started the process of learning how to use Vagrant for spinning up a local development environment. (after getting frustrated with the various WAMP stack options) Vagrant is great so ...
2
votes
2answers
169 views

Puppet concatenate templates

In the module I'm currently working on, I got a load of configuration options that need to be set, have default values ... and should be fragmented into shorter template files as else it would be a ...
1
vote
1answer
922 views

Puppet exec command with variable not executed

I have a very simple Puppet (sub)module that should use Git to clone a repository from a remote location: class wppuppet::git( $location = '/var/www/wp' ) { file { $location: ensure => ...
2
votes
1answer
2k views

Puppet agent -t results in error: Failed to generate additional resources using 'eval_generate:

This problem occurs intermittently. I first experienced it yesterday, and I simply restarted from scratch and it disappeared but just came back today. I'm running Puppet v2.7.11 on EC2 servers running ...
0
votes
0answers
46 views

Referencing a global hash from Puppet DSL

I'm trying to reference a global hash from a Puppet DSL manifest, but scope.lookupvar is failing to find it. My declaration is in rubydefs.pp and is of the form $my_hash = JSON.parse(`...some stuff ...
2
votes
0answers
117 views

Puppet Split function fails

Problem Puppet split function fails since Puppet has been upgraded puppet to version 3.5.1, while this worked until 3.4.3 Code 1 $ports_regex = "80\\|443" 2 3 $ports_string = ...
0
votes
1answer
152 views

Puppet install of Openstack: Could not find resource 'Package[dnsmasq-base]Package[dnsmasq-utils]' for relationship on 'Package[neutron-dhcp-agent]'

ebug: Executing '/etc/puppet/etckeeper-commit-pre' debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson err: Could not retrieve catalog from remote server: Error 400 on SERVER: ...
1
vote
0answers
84 views

Puppet Apply on Windows more than 28 times slower since version 3.3

Problem Puppet on Windows has been upgraded from 2.7.22 to 3.5.1 on Windows7. When puppet apply was executed it looked like puppet was stuck. A retry demonstrated the same behavior and the run ...
3
votes
2answers
136 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
64 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 ...
6
votes
6answers
284 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
4k 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 ...
4
votes
2answers
536 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
304 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
392 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
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
121 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
112 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
463 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
373 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
57 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
507 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
233 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
61 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
351 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
93 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
337 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
128 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 ...
2
votes
0answers
175 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
402 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
112 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
120 views

Puppet file link doesn't create target under Windows

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