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

Puppet, Windows, and UAC

Is it possible to use Puppet on Windows where UAC is enabled? Does Puppet have any method for automatically saying yes to UAC prompts for a software install? My module does the following workflow: ...
0
votes
2answers
496 views

Installing Mongo driver for PHP using Puppet+Vagrant

I'm playing around with Vagrant and Puppet, provisioning a development machine for a project based on Apache/PHP/Mongo. I have all components setting up correctly (using modules from Puppet Forge), ...
1
vote
1answer
277 views

Facter - custom fact, returns empty data set when invoked by Puppet agent

According to this puppet labs article, I can create custom facts from shell scripts. I have created a bash script that returns a single fact, it is packaged in a modules facts.d directory. The module ...
-1
votes
1answer
216 views

Install PHP 5.3.X, PHP 5.4.x and PHP 5.5.x in the same environment using Puppet

Anyone already tried to install these three version using Puppet in Ubuntu? I have a VM that is managed by Vagrant and I want to have these three version so I can specify which PHP version I should ...
44
votes
6answers
11k views

Why use Chef/Puppet over shell scripts?

New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along. I would agree they are more readable. ...
1
vote
1answer
60 views

On MacOS X, can I configure Wifi from Puppet or the command line?

I would like to create entries for the company's Wifi in every Mac via Puppet. Is this possible? (or if it is possible from the command line, I can figure out how to do it in Puppet)
0
votes
0answers
21 views

Can MacOS VPN be configured via Puppet (or the command line)

I run Puppet on MacOS X. I want to configure the Cisco VPN client using Puppet. Is this possible? (Or ... if it can be done from the command line, I can figure out how to do it in Puppet).
0
votes
2answers
66 views

Hiera datatypes wont load in Puppet

I have spent a couple of days on this, followed the instructions on http://downloads.puppetlabs.com/docs/puppetmanual.pdf and even the Puppet Training Advanced Puppet manual. When I run a test ...
5
votes
2answers
7k views

Puppet: Test that a Resource is defined?

I've been trying to figure out a way to test if a resource is already defined in another file, and if not create it? A quick example: if File[$local_container] { alert("Testing - It existed ...
3
votes
1answer
253 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
0answers
44 views

Renaming an OpenVPN server - how to keep from losing all clients?

I have been instructed to change the domain name on a bank of servers. One of these is for OpenVPN and I'm wondering how best to do this without cutting off all the clients. Each client is also ...
0
votes
1answer
86 views

Hiera concatenated lookup from yaml

I am trying to configure the puppet-logstash module via Hiera. When I make the call to hiera('profiles::logstash::config'), the return value is a concatenated string. It tells me that it cannot ...
0
votes
1answer
42 views

Need help writing a wrapper for Hiera yaml data

This post seems like it might be helpful but I haven't been able to adapt it to my needs. The meat of it is: $custom_thing = ('custom_thing',{}) create_resources(param, $custom_thing) full post on ...
0
votes
1answer
39 views

Puppet: Nagios with regex node names

I am configuring a puppet master and want to rely heavily on hiera. Many of my systems will be almost identical due to being scalable. I have therefore created node manifests which use regex rather ...
1
vote
1answer
84 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
31 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, ...
4
votes
3answers
1k views

Amazon AWS EC2 + Puppet, get Puppet to know AWS instance tags

I am having a problem with my AWS deployment, fairly new to AWS and Puppet. So coming to my question - can you distinguish puppet nodes with AWS machine tags or CNAME domains? A little background ...
1
vote
1answer
48 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 ...
11
votes
4answers
3k views

Using Puppet to remove SSH keys not explicitly allowed

I'm using puppet to distribute SSH keys, like so: ssh_authorized_key { "alice@foo.com": ensure => present, key => 'xxxx', type => 'ssh-rsa', user => 'deploy', } The ...
-1
votes
1answer
46 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
420 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 ...
3
votes
1answer
179 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 ...
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 ...
-1
votes
1answer
67 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
73 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
178 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, ...
1
vote
2answers
59 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
51 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
2k views

Puppet:Could not find default node or by name with node test2

I installed Puppet 3.1.1 on an Ubuntu Server. My manifests folder looked like this: ├── nodes │   └── test1.pp └── site.pp The content of site.pp was: # site.pp import "nodes/*.pp" Node test1 ...
0
votes
1answer
119 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 ...
1
vote
2answers
135 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 ...
4
votes
1answer
71 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 ...
1
vote
1answer
752 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
1answer
102 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: ...
10
votes
5answers
8k views

How do I access an environment variable in a puppet manifest?

How do I access an environment variable (from the puppet daemon's environment) in a puppet manifest?
2
votes
2answers
58 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 ...
0
votes
1answer
441 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 => ...
0
votes
3answers
1k views

Puppet print out messages

Is there a way to print out messages to the console before executing a command in puppet. For example, let's say my manifest has: exec { command => 'mycommandhere' } I would like to print a ...
0
votes
0answers
31 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
91 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 = ...
1
vote
0answers
72 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
95 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 ...
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
49 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 ...
0
votes
1answer
2k 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 ...
6
votes
4answers
1k views

Can any puppet agent get any puppet file from the master?

My Puppet master contains some sensitive files. I want each puppet agent to be able to access only those files that are of interest to that specific agent. In other words: Does the puppet agent run ...
4
votes
2answers
311 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
107 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?
0
votes
3answers
724 views

Figuring out correct Apache module names for a2enmod

I have an existing httpd.conf file which I am supposed to get to work on a Vagrant instance running Ubuntu, which I am using Puppet to provision. The problem I am running up against is with module ...
0
votes
3answers
87 views

standart packages list

I am learning the puppet system and now need to do the next task. We have a few servers with same OS (Altlinux p6,t6) - puppet-agents and have a puppet-master. On agents there are some packages ...