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

0
votes
2answers
42 views

Override resources in puppet classes

Let's assume i have a site.pp like this: class videoServer { file { '/root/testFile' : ensure => present } file { '/root/testFile2' : ensure => present } file { ...
0
votes
0answers
37 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
85 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
51 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 ...
2
votes
2answers
72 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
53 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
33 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
55 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 ...
2
votes
1answer
263 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 => ...
1
vote
1answer
27 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
65 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 ...
1
vote
0answers
25 views

LiveCD with puppet razor

I have a couple of servers and want to provide live cd and O/S reinstalls using razor-server from a self-coded panel. Razor has very bad documentation and i saw only some bits of info regarding O/S ...
0
votes
1answer
172 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
1answer
37 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
2answers
37 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\ ...
1
vote
2answers
67 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 ...
0
votes
1answer
54 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
22 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 ...
3
votes
1answer
57 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 ...
-7
votes
1answer
79 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
0answers
164 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
1answer
59 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 ...
-2
votes
1answer
33 views

puppetlab 'file_line' type not working in one puppet apply run

When i run puppet apply policy1.pp , it does not apply all the file_line resource type written in policy1.pp. So when i run again puppet apply policy1.pp it will apply remaining file_line resource ...
0
votes
1answer
102 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
2answers
23 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
94 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 ...
1
vote
2answers
62 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 { ...
0
votes
1answer
67 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
1answer
74 views

Using example of Hiera NTP in puppet does not work

I am currently trying to rebuild the example described here The Problem is, that when I try to get the ntp::servers variable I get the following error, which I have problems with understanding. ...
2
votes
1answer
352 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]# ...
2
votes
2answers
142 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 ...
0
votes
1answer
39 views

Use 'commands' ruby puppet function outside of puppet provider

to allow me to easier debug my providers, I sometimes wanna use 'command' in my own ruby code. Trying to figure out how is problem. This is how I use it inside a provider: commands :wget => ...
0
votes
1answer
101 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. ...
1
vote
1answer
178 views

What causes the error “Could not retrieve catalog from remote server: execution expired” in Puppet

My puppet agents fail randomly with the following errors: err Could not retrieve catalog from remote server: execution expired Puppet 2014-09-11 22:25 UTC err Could not ...
1
vote
1answer
43 views

How can I have puppet use a local (on the master) password hash for users?

We define users as such: user { 'belmin': ensure => present, uid => 308, comment => 'Belmin Fernandez', managehome => true, password ...
0
votes
1answer
184 views

puppet cert list -all: Error: header too long

I tried restarting my puppet master but the error still persists. Also see it from all the puppet agents that try to join. puppet agent --server puppet.example.com --waitforcert 60 --test --verbose ...
0
votes
1answer
493 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
1answer
140 views

Puppet not running powershell script on Windows 2008 server

The puppet agent on my Windows VMs is not executing powershell scripts. I have tested it with a very simple script as well. The script is stored on C drive as test.ps1. Its contents are as follows:- ...
0
votes
1answer
522 views

How can you install puppet on CentOS 7

CentOS 7 comes with ruby 2.0.0.353-20.el7. I'm trying to install puppet there, and running into errors. First I run: rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm rpm -ivh ...
0
votes
0answers
74 views

Limit Apache 2.4 to only accept GET/POST/HEAD

I wonder if you can help i'm using Apache 2.4 on Ubuntu Servers. I'm trying to limit requests to GET/POST/HEAD using the following in my httpd.conf (ubuntu 14.04) I have attempted to do so using the ...
3
votes
1answer
73 views

Centos 5 - Using official repository to upgrade manually installed Puppet server

I have Puppet server version 2.6.4 that was manually installed using RPM packages directly (instead of using Yum to fetch packages from a repository). Now I want to upgrade it to the latest version ...
1
vote
1answer
37 views

configure dependency of a puppet module

I need to more finely tune the Apache vhost file being generated by the example42/kibana Puppet module. Is it possible in Puppet to 'reach through' the example42/kibana plugin and configure the ...
2
votes
1answer
185 views

How do I keep MySQL from ever increasing it's disk space usage when used with puppet-dashboard?

The setup We have a Debian Linux set up with MySQL v5.1.73 (innoDB storage engine) and puppet-dashboard version 1.2.23. As you probably guessed, puppet-dashboard is using MySQL as its backend. Also, ...
4
votes
1answer
50 views

How can we force a puppet manifest and module syntax check prior to version control check-in?

I am working on deploying version control for our puppet modules and manifests. I want to enforce a workflow that requires a puppet module and manifest code check prior to a check-in of changes. This ...
2
votes
1answer
132 views

How to solve the CA bundle included with OpenSSL may not be valid or up to date issue while trying to install a Puppet module?

Trying to fetch a module, I have the following output Notice: Preparing to install into /usr/local/etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Error: Could ...
0
votes
1answer
54 views

Puppet master receiving a YAML error after upgrade to 2.7.25-2

Our puppetmaster server was upgraded to the latest available on RHEL6 (puppet-2.7.25-2.el6.noarch). We are now receiving errors such as this on the master: Aug 26 11:36:59 master1 ...
4
votes
1answer
285 views

Puppet read output of command and store in a variable

I am very new to puppet and trying to execute my puppet script but its failing all the time. I want to store the output of below bash command and want to store in a variable which I can use later: ...
1
vote
1answer
45 views

Need help translating rate limiting iptables rules to Puppet format

I use Puppet Iptables module to manage Iptables rules on my machine. I'd like to implement to rate limit failed SSH connections as described here: iptables -A INPUT -p tcp --dport 22 -m recent ...
0
votes
2answers
57 views

Puppet command depends on another class

I am having a issue of understanding how I could make puppet run a command only if another module/class is installed. I read that Define function could do it, but I did not understand it. Example what ...
1
vote
2answers
110 views

Restarting mysql utilizing the puppetlabs/mysql module?

I have two folders -- one is 'public_modules' and the other is 'private_modules'. When I start a new Vagrant machine, the 'public_modules' folder is populated with modules as described in my ...