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

Puppet hang on 100% CPU usage

We're running puppet to manage our AWS instances and are migrating from a custom apt module for it, to the puppetlabs hosted apt module. Everything seems to work fine until during an puppet apply ...
2
votes
1answer
156 views

Puppet templates without modules

I want to use puppet without a puppetmaster and apply manifests with a git push workflow. I'd like to avoid splitting up everything into modules, because the server config is not very complex. ...
2
votes
1answer
408 views

When using multiple source files, how do you see which one Puppet is going to use?

Say you had a file directive like so: ***SNIP*** file: "/tmp/file_I_need": path => "/tmp/file_I_need", ensure => "present", source:[ ...
2
votes
1answer
426 views

puppet certificate fingerprint changed before and after signature?

I am getting quite a weird trouble here with my puppet configuration. On client and server (debian-squeeze), same version of puppet, clock synchronized. Things were going great until I decided to ...
2
votes
1answer
152 views

Create users via Puppet by reading a mySQL table

For a particular service, users are added/removed via web to a mySQL table. I need to replicate those users on several ubuntu servers (as regular shell users), preferably through Puppet. Currently I ...
1
vote
1answer
83 views

puppet Could not find dependency

I have inherited a puppet server. It has a couple of dozen hosts under management and it is mostly working fine. When I say mostly there are a few hosts that fail when checking in: Error: Failed to ...
1
vote
1answer
117 views

Puppet for Patch Management

I am thinking of using Puppet for massive patch management. The way to go with this, based on some research, is to create a class and apply it wherever you need, like in the following case: class ...
1
vote
1answer
133 views

Puppet: Unable to add physical volume

I want to create a physical volume in Puppet. Below is my code class lvm::crelvm { physical_volume { '/dev/sdb2': ensure => present } volume_group { 'vg_cas': ensure => present, ...
1
vote
1answer
120 views

Error: Duplicate declaration virtual defines user & group equal name

I need create a user with the name user1 & group user1. I defined a virtual resource to create it. Inside a class1 I create the user: include '::class1::virtual_accounts' ...
1
vote
1answer
174 views

Server provisioning without PXE

I have a lot of servers in different data centers which should be reinstalled from time to time. I am familiar with Puppet so I am able to configure the O/S after it boots up but I can't perform an ...
1
vote
1answer
347 views

Nginx unmet dependencies over Vagrant / Puppet

I have no such issue on 64bit Ubuntu Precise, but once I tried to start 32bit machine, it failed on this command: # /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install ...
1
vote
1answer
609 views

external fact not available at very first puppet run

Introduction: We are using puppet to configure the nodes via a custom fact which is then referenced in hiera. The fact can either reside in the golden image in /etc/facter/fact.d/ or via pluginsync ...
1
vote
1answer
56 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
vote
1answer
85 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 ...
1
vote
1answer
77 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 ...
1
vote
1answer
550 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 ...
1
vote
1answer
103 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 ...
1
vote
1answer
314 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 ...
1
vote
1answer
262 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
1answer
187 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 ...
1
vote
1answer
183 views

How to define nodes from a Hiera file in Puppet?

I am using puppet and the puppet network device management module and I am trying to build my custom type. In the built-in type for the routers configuration, you can specify a list of nodes and then ...
1
vote
1answer
27 views

Compact Node Definition

I created a new module for my autofs mounts using defined types so I can specify as many new mounts in my node definitions as needed. So for example my node definition looks like the following: node ...
1
vote
1answer
726 views

Can I use variables in The Foreman as a Puppet ENC?

Is it possible to set variables like server_role=webserver, allow_root=false in The Foreman as a Puppet ENC? And does the Foreman as an ENC support hierarchies? E.g. make a group of webservers, that ...
1
vote
1answer
280 views

puppet ignores ENC classes

I am using a ruby script to retrieve the class parameters and my YAML output is as below: classes: tomcat_install: tmp_dir: /tmp tomcat_home: /tmp/tomcat6 puppet.conf is as below: ...
1
vote
1answer
152 views

Puppet agent on FreeBSD skipping runs

I am experimenting with puppet and we are using FreeBSD on some servers. I noticed that the agent on the FreeBSD is for some reason skipping runs, i.e.: May 6 09:19:15 eagle puppet-agent[66970]: ...
1
vote
1answer
570 views

How to refer to current iteration of hash loop in puppet

I have a hash like so net:ip { '': ip => { ip1 => { addr => '192.168.10.1', device => 'eth0', }, ip2 => { addr => '192.168.50.10', device => ...
1
vote
1answer
368 views

Own puppet function

I'm trying to make my own function. I keep getting this message. err: Could not retrieve catalog from remote server: Error 400 on SERVER: Function 'brent_k' does not return a value at ...
1
vote
1answer
347 views

How to change single variable in Puppet between environments

Specifically, if I'm in staging, I want directory A, and in QA, directory B: file{'/etc/appenv': ensure => file, owner => 'root', group => 'root', mode => 0644, source => ...
1
vote
1answer
828 views

Puppet configuration file on Windows

I'm running puppet on windows as an admin (testing on windows 7, even though it is not officially supported). When I install puppet following the windows installation instructions, no puppet.conf file ...
1
vote
1answer
617 views

Unable to start puppetmaster on CentOS 6

I installed puppet 2.6.12 on CentOS 6. When I try to start the puppetmaster service using the command service puppetmaster start I get the error: Starting puppetmaster: ...
1
vote
1answer
291 views

debian puppet clients (0.24.5-3) failing to retrieve file , centOs (0.25.5-1) working ok

I have got a puppetmaster and a mix of CentOs 5.4 and Lenny 5.0.3 clients. The CentOs have puppet-0.25.5-1.el5 installed and are working fine to retrieve files. The Debian boxes have the 0.24.5-3 ...
0
votes
1answer
24 views

Apache configuration resulting in recursive /index.html

I'm using puppet to configure Apache, and have a problem. I'm trying to serve a simple front page, with links to 2 subpages for Kibana and Uchiwa. I'm trying to use http://server/logging for kibana, ...
0
votes
1answer
15 views

On ubuntu 12.04, what file has the systemwide list of gem sources for rubygems 1.9.1

I need to deploy a gem from a custom gem source to my ubuntu 12.04 servers that are managed by puppet. In the puppet class, I will put the command that adds our custom gem server to the gem sources, ...
0
votes
1answer
25 views

How to create an apt repository on puppet master

I am setting up a puppet master and want to distribute nagios core 4 and nagios-plugins to each of my agents and the master itself. Nagios core 4 is currently not available from the Ubuntu ...
0
votes
1answer
73 views

Install Applications on Windows RDP Servers with Puppet

The scenario is installing Windows applications with Puppet on a Windows RDP server. I have Puppet install the applications without problem, but per the best practice, you're supposed to be in install ...
0
votes
1answer
39 views

Puppet exec type seems to ignore the unless attribute

I have an exec command to change the hostname. I only want to execute that if the hostname is not what it should be: exec { 'update hostname': command => 'sudo hostname VM01', unless => ...
0
votes
1answer
58 views

Puppet working with nested hashes and arrays

I want to checkout several SVN projects and I need to be able to choose the directory names for each branch or trunk. Now I want to check out the SVN project called svn_name in the folder service_dir ...
0
votes
1answer
66 views

mcollective - different ruby path/environment

How do I tell the mcollective server to use a different ruby path, or otherwise control the ruby environment? I'm running on Centos 6.5, and have installed the ruby193 collection onto the servers and ...
0
votes
1answer
68 views

unattended update PCs via foreman

I have recently became responsible for about 50 workstations running Mint Linux 17. The PCs are used for very basic data entry and only require a working browser. Although i'm told the PCs basically ...
0
votes
1answer
41 views

Puppet agent cannot find environment

Puppet master can find the environment, [user@puppetmaster]$ sudo puppet agent --configprint modulepath /etc/puppet/environments/development/modules:/etc/puppet/modules:/usr/share/puppet/modules ...
0
votes
1answer
36 views

How can I use a rubygem in a puppet provider on debian stable?

I'm trying to use a puppet provider which requires a ruby gem. It's being run on Debian stable (wheezy), but I get the following error: err: Could not run Puppet configuration client: no such file ...
0
votes
1answer
46 views

Puppet (machine) State

I'm trying to wrap my head around Puppet, to be able to tweak our automatic build/deployment process. The one thing that I'm missing at the moment is a concept of a "state" the machine can be in: if ...
0
votes
1answer
68 views

Generate foreman-installer-answers.yaml

Is there a way to generate a foreman-installer-answers.yaml file from a current setup? After initially installing Foreman I changed a couple of things in the web interface and also used ...
0
votes
1answer
52 views

How to seperate the CA server from Master (basic setup)?

I followed Centralize the Certificate Authority guide to seperate my ca from the master however I'm running into trouble. My Setup Hosts file I have the following in the /etc/hosts file on all ...
0
votes
1answer
73 views

future parser error in puppet

I have below code class dummy::eachtest{ $filename = [1,2,3] each($filename) |$value| { file {'/etc/dummy/manifests/${value}': ensure => 'directory', } } I got below error when I compile ...
0
votes
1answer
42 views

Confuse in enabling package repository

I am having trouble installing puppetdb so I am back tracking my steps and try to find out my error. So I am to enable puppet package repositories before I install puppetdb shown in this guide. ...
0
votes
1answer
165 views

sudo apt-get update change config files for puppet?

I booted up 3 vm in linuxmint. 1 puppetmaster and 2 puppet. 2 days ago I could run "sudo puppet agent --test" in both of the client without a problem. Today I was installing meteor in one of my ...
0
votes
1answer
146 views

Puppet agent on Windows - Warning messages in Windows Application Logs

I have puppet master 3.6.2 on Linux and puppet agent 3.6.2 on Windows Server 2008 R2 On the Windows servers in Windows Application Logs I have Warning messages: Log Name: Application Source: ...
0
votes
1answer
455 views

Foreman errors out when provisioning using an ms-dhcp/dns smart proxy

Im running foreman, with smart-proxy on a win2k12 r2 box running ad/dhcp/dns. When i try to provision smart proxy dumps this to the logs: Changed the current scope context to 192.168.20.0 scope. ...
0
votes
1answer
102 views

MCollective metadata refresh returns: Host name lookup failure

With puppet installed, the command /opt/puppet/sbin/refresh-mcollective-metadata is run every 15 minutes. It loggs hostname: Host name lookup failure when it runs. hostname, hostname -i, and hostname ...