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
1answer
294 views

How to get Run Puppet button working on Foreman?

First of all, I know there is already a very similar question here on serverfault, but it doesn't quite answers my problem. So, my setup is the following: I have one server, running Ubuntu 14.04 LTS ...
2
votes
1answer
53 views

Puppet directory environments and the $environment variable

Like many (I hope), I am preparing for Puppet 4 by separating out my manifests into environments. I intend on having 3 separate environments: qa, staging, prod. In setting up the manifests initially, ...
1
vote
0answers
82 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
28 views

change puppetdb dump location instead of /var/log/puppetdb

I have seen a few hprof dumps of puppetdb indicating crashes. While I investigate that is there a way to configure that dump location to be somewhere else. While I do have space constraints on ...
1
vote
2answers
132 views

Testing a docker instance with beaker

I have a suite of Beaker tests running against a docker host. I dont know the intricacies of how docker handles swap files, but it seems that it doesn't like it. The Puppet code looks like this: ...
0
votes
1answer
23 views

Creating a self-governing puppetmaster (puppetlabs)

I am working on my first puppetlabs puppet installation. I have a question concerning the overall setup. Is the puppetmaster able to govern it's own server as it governs its puppet agents? Is there ...
1
vote
0answers
62 views

Getting the error “Error 400 on SERVER: Invalid parameter” when defining a type for a yumrepo

I am trying to define a type to create yum repos. I want to be able to pull the data from common.yaml and have this define pull in that data and act upon it. I have not gotton that far and I am ...
0
votes
1answer
77 views

Making logrotate remove old logs after reducing 'rotate' value

I'm trying to reduce the number of log files kept for Apache by reducing 'rotate 52' in /etc/logrotate.d/apache2 to 'rotate 8'. With weekly rotation this should keep 2 months of logs instead of a full ...
0
votes
0answers
23 views

Remote server lost login information during puppet deploy

Let me discuss some background on how this situation came to be first. Skip the first paragraph if you're not interested in the details. I am in a committee in my study community that manages said ...
2
votes
2answers
207 views

Cannot install puppet because of unmet dependencies

I'm trying to install puppet on a fresh ubuntu 14.04 machine but I get the following error Some packages could not be installed. This may mean that you have requested an impossible situation or ...
12
votes
2answers
2k views

Configuration management: push versus pull based topology

The more established configuration management (CM) systems like Puppet and Chef use a pull-based approach: clients poll a centralized master periodically for updates. Some of them offer a masterless ...
0
votes
0answers
46 views

Installing suPHP with PHP5.5

I'm using PHP 5.5 on my CentOS server and installed using yum and the webtatic repository (package is php55w). I need to use suPHP on my server but I realize that the mod_suphp package available ...
-3
votes
1answer
45 views

Puppet: Execute script relative to file [closed]

I'm totally new to Puppet, so I'm sorry if this question isn't even well-formed haha. I'm trying to use Boxen to set up my new Macbook Pro. I've found a script that will help me manipulate what is in ...
1
vote
1answer
28 views

Puppet dashboard

I saw your comment on "Puppet Dashboard replaces site.pp". How did you link together normal /etc/puppet files with Dashboard? I can see all my nodes in Dashboard, but Dashboard classes have nothing ...
0
votes
0answers
52 views

puppetboard unable to reach PuppetDB

I've installed puppetboard onto a working puppet server that uses the puppedb successfully. I installed puppetboard via the pip method. However I am getting an error when I load the page for the ...
0
votes
1answer
641 views

Installing Graylog2 with puppet

I have manged to install Graylog2 from scratch by downloading all the DEB files and making the configurations. Now I try to install Graylog2 with the help of puppet in an environment and had no luck ...
0
votes
0answers
76 views

puppet xdebug.ini not working

I install xdebug puppet Here is folder structure /myproject Vagrantfile puppet\ xdebug\ files\ xdebug.ini manifests\ init.pp This is ...
0
votes
0answers
62 views

installing drupal drush thru vagrant puppet

this is part of puppet manifest class composer { file { '/tmp/composer.sh': source => 'puppet:///modules/composer/composer.sh', ensure => present, ...
2
votes
2answers
137 views

Access arrays/hashes in facter 2 facts

In facter 2 you can now have arrays/hashes as facts. For example: os => { "name"=>"CentOS", "family"=>"RedHat", "release"=>{ "major"=>"7", "minor"=>"0", ...
0
votes
1answer
69 views

Install of hiera-puppet-1.0.0-1.el6.noarch conflicts with file from package puppet-3.7.1-1.el6.noarch

Installing puppet and hiera sudo rpm -ivh http://yum.puppetlabs.com/el/6.4/products/x86_64/puppetlabs-release-6-11.noarch.rpm sudo yum update -y sudo yum -y install vim unzip rubygems puppet ...
0
votes
1answer
326 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 ...
2
votes
1answer
269 views

Why does Puppet need two runs to update bash?

Im learning puppet, and Im trying to update bash (no prizes for guessing why). This is in my site.pp file { "/etc/apt/sources.list.d/shellshock.list": source => ...
2
votes
2answers
95 views

Is there a way to have puppet create a user's home folder (managehome) but not delete when ensure is 'absent'?

My first thought was doing something like this: define my_user( $name = $title, $ensure = present, $uid, $gid, $password, $groups, $comment, $shell ) { $managehome = $ensure ? { present ...
1
vote
1answer
84 views

Puppet template if defined syntax

I am having trouble finding a solution in Puppet documents. I am trying to define a variable in Puppet template. For example: If class graylog2 and apache are defined in node class section then the ...
2
votes
1answer
46 views

Having puppet use yum --installroot for certain nodes

I have a case where we are throwing together diskless node images that get thrown out to nodes via PXE and then mounted via a ramdisk. To build these previously we have just installed packages with ...
0
votes
0answers
69 views

OpenLDAP Invalid credentials on CentOS 7

Afternoon all I'm using Puppet to provision some OpenLDAP servers. The module I'm using is: datacentred-ldap, and the manifest I'm using looks like: ldap-class This process works fine on CentOS 6 ...
1
vote
1answer
30 views

Puppet manifest versioning

How does puppet manifest versioning work? I can't find any documentation around this area. Most stuff I read so far says to check in to svn and do update on puppet master, but unless a puppet client ...
2
votes
1answer
70 views

Puppet's issue: Configure WAN interface, reload network in the process result in broken agent's run

A little background: I want to use puppet to fully configure RHEL6 servers freshly after they have been installed with kickstart, the kickstart itself is fully automatic and provide dhcp-enabled ...
0
votes
1answer
46 views

puppet stage syntax error

I have a shell script to install nodejs module packages which should be execute after all packages are installed. I defined a stage 'last' after the Stage[main] here is my code stage { 'last': } ...
0
votes
1answer
295 views

Issues installing Grunt in Vagrant environment

I am attempting to install node.js, npm and Grunt.js in an Ubuntu Trusty 64bit Vagrant environment and running into some issues. Here is my puppet manifest: init.pp -- class grunt::install { ...
0
votes
2answers
45 views

failed to copy a shell script from host to a vagrant box

Host is Windows 8 I prepared a shell script which execute secure_mysql_installation This is the folders structure c:\myproject\ Vagranfile puppet\ files\ ...
0
votes
1answer
73 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: ...
1
vote
2answers
138 views

What is required to transition a puppet installation to use directory environments?

I am currently running a small puppetmaster + client configuration that is not utilizing Puppet's directory environment feature. My puppet version is 3.6. I have tried the following: On the ...
3
votes
1answer
64 views

How can I get Puppet generated configuration to include internal hostnames of other ec2 instances in my CloudFormation stack?

I have a stack generated by AWS CloudFormation that includes an EC2 instance (running Ubuntu 14.04) and an RDS (database) instance. They are both inside a VPC, which includes a puppet master (not as ...
2
votes
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 ...
1
vote
2answers
611 views

problems specifying user password with puppet (+vagrant) on precise32 virtualbox

I'm using vagrant+puppet to provision a precise32 VirtualBox server to add users programatically. I've got everything working but I can't seem to set the password automatically by puppet. Here's my ...
-7
votes
1answer
85 views

Use puppet to update Yum repository [closed]

I have just started working on puppet and successfully installed the master server and agents. As part of my test, I am of the understanding that Puppet can replicate my configuration to the different ...
0
votes
1answer
25 views

Ensuring that a list of all puppet nodes with certain facts is current

I am using puppet to manage about a dozen nodes. One of the servers has a monitoring tool that requires a list of all the nodes and some basic specs. I want to utilize puppet to ensure that the list ...
0
votes
1answer
74 views

What does r10k provide since Puppet natively supports directory environments?

I'm just starting to read about r10k because I love the fact that it can create dynamic environments based on Git branches. Now, I just read that Puppet can do this without r10k. What does r10k ...
0
votes
0answers
268 views

Foreman-Installer failed to install - puppet cert --generate FQDN returned 23 instead of one of [0] - Ubuntu 14.04

I tried to install Foreman serveral times at my Ubuntu 14.04 Server. Foreman 1.5 and 1.6 always fail at the same time with following error : /usr/bin/puppet cert --generate ubuntutest.domain.com ...
0
votes
5answers
893 views

Puppet not applying config but returns without error

Using Puppet 3.2.1 attempting server / client setup, running both on same host. I'm also using puppet-dashboard and puppetdb. My manifest/init.pp: node 'my.fqdn' { file { '/tmp/test': ensure ...
2
votes
4answers
896 views

hiera_include equivalent for resource types

I'm using the yumrepo built-in type. I can get a basic integration to hiera working yumrepo { hiera('yumrepo::name') : metadata_expire => hiera('yumrepo::metadata_expire'), descr ...
22
votes
4answers
6k views

How can I pre-sign puppet certificates?

Puppet requires certificates between the client (puppet) being managed and the server (puppetmaster). You can run manually on the client and then go onto the server to sign the certificate, but how do ...
1
vote
2answers
25 views

How can we ensure that a user who is not realized does not exist in that puppet node?

We declare all our users as virtual resources. E.g.: @user { 'belmin': uid => 2001 comment => 'Belmin Fernandez', groups => ['sysadmins'], } Sometimes we temporarily realize a ...
4
votes
2answers
113 views

Puppet 2.7.x - Global variable - Append

Without getting to far into the weeds, Nginx is forcing my hand in order to accomplish some magic with vhosts and the map directive. Is there an elegant (relative) solution to sharing a variable ...
0
votes
1answer
151 views

foreman assign mutiple hosts to a config group

On foreman 1.6.0 is it possible to easily assign multiple hosts to a config group (Under the Configure->Puppet->Config Groups menu)? I've had a pretty good look around the web interface and hammer ...
1
vote
1answer
522 views

Puppet: err:/Exec/returns: change from notrun to 0 failed: Command exceeded timeout

I am trying to install Nagios on my servers using puppet and my custom shell script.Every thing works fine but I see an error in the end of puppet script execution as below : [root@localhost tmp]# ...
21
votes
2answers
14k views

Could not find class, and yet it is there

When doing a puppet agent call from a new image, I'm getting a err: Could not find class custommod error. The module itself is in /etc/puppet/modules/custommod same as all of the other modules we're ...
0
votes
1answer
76 views

Why can't puppetmaster be installed on windows?

I thought that Puppet was written in Ruby, so I'm not sure why the puppetmaster service can't run under Windows. Does anyone have an idea why? Note that I'm trying to figure out if there is a ...
1
vote
2answers
71 views

Managing ~/.ssh/config for users using puppet?

How do I adjust the "User" line in a ~/.ssh/config file using ERB template files in Puppet so that it contains the correct username that matches the account name? class accounts_global::tharold { ...