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
3answers
420 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 ...
2
votes
1answer
82 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 ...
1
vote
0answers
155 views

Puppet Agent fails to run install.bash

I am having my CentOS 6.5 installed with Puppet Entrprise 3.3. The dashboard is running fine. Now I want to add a puppet agent on another CentOS 6.5 box. Since both are same OS type, Following the ...
4
votes
5answers
3k views

How to revert a configuration with puppet

I wrote a module which writes a configuration for rsyslog in /etc/rsyslog.d/60-custconfig.conf using puppet. When I add the module to the node, it works, but if I delete comment or delete the module ...
0
votes
1answer
82 views

How to instantiate multiple instances of the same resource using Hiera

Using Hiera, is it possible to instantiate two classes with different properties? I know I can do add to my node declaration: user{'francois': uid => 1000, # ... } user{'julien': uid => ...
3
votes
2answers
253 views

Pass same parameter value to multiple classes using Puppet Hiera

I'm using Hiera with Puppet and I want to pass the same parameter value to multiple classes without repeating it. Right now I've got (in Yaml): --- class_a::database_server: myoraclebox.example.com ...
0
votes
2answers
189 views

Using Puppet to sync two directories

I have a bunch of servers that have two directories on them that need to be in sync. For instance, on the same server i might have /var/path/to/dir1 and /var/path/to/dir2 which could have files and ...
1
vote
2answers
49 views

Puppet not recognising packages (which exist in yum) in Centos

I am trying to install a package in Centos using puppet. The package can be installed using yum install (sudo yum install bash-completion), but puppet says it doen't exist! (I have had this problem ...
0
votes
2answers
251 views

Beaker with docker and ubuntu-upstart image doesn't start container

I am trying to get Beaker to integrate with an Upstart enabled dockerfile. This is my current nodeset: HOSTS: ubuntu-server: roles: - master platform: ubuntu-14.04-x64 ...
0
votes
2answers
92 views

Halt the puppet master while Exec is running a script

I am fairly new to puppet and thinking if there is a way to apply a resource only after the command initiated by Exec completes it's job. My requirement is that I should schedule a backup job only ...
1
vote
0answers
51 views

Why would Puppet revoke a client's certificate?

We started getting an error from one of the Puppet-agents: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read finished A: sslv3 alert certificate revoked Indeed, according to ...
2
votes
2answers
108 views

How to subscribe to package coming from array of Hiera?

I've got the following in my hiera definitions: # common.json { "classes": [ "sysbase", ], "sysbase::packages": [ "less", "build-essential", "bash" ] } # dev.local.json { ...
2
votes
2answers
1k views

Hiera lookup based on pattern

I am trying to wrap my head around how I can transition from something I am doing in my large site.pp file into a structure I can use in hiera. It isn't clear to me from reading the puppet docs, ...
4
votes
1answer
82 views

Missing Puppet.conf

I'm configuring a puppet master server for the first time. I've completed the Pre-install Tasks I'm now working on the post-install tasks The Puppet documentation indicates that before starting ...
0
votes
2answers
112 views

Vagrant is creating files and folders in my project

Recently I updated Vagrant (v 1.6.3) and I noticed that in the folder of my project there are some new folders and files like: d20140610-11944-1j6n1cz/ d20140610-15421-1pkz3t8/ ...
0
votes
2answers
129 views

how to check physical disk in puppet

I have below linux script cre_disk=$(ls /dev/sd[b-z]) for disk in $cre_isk do pvcreate $i done My understanding from the above code is, it is checking the sdb,sdc..sdz disk file. if it exist, then ...
0
votes
0answers
22 views

How to kick off puppet jobs via http api

Good day, I'm trying to figure out how I would go about telling Puppet (master?) to spin up a new VM and provision it with the specified settings. Basically, I have a form that a user fills out and ...
1
vote
2answers
29 views

multiple array in def

I have two file class hadoopfile::file { $diskname = [aaa,bbb,ccc,ddd,eee,'] $filename = [02,03,04,05,06] hadoopfile::diskcreate_def { '$diskname:','$filename:' } #hadoopfile::diskcreate_def { ...
0
votes
1answer
51 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
70 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 ...
-2
votes
2answers
39 views

assign variable in puppet

I am newbie to puppet, I have code like below in unix log_exts=$(vgdisplay /dev/cassandra|grep Free|awk '{print $5}') if lvcreate -n lv_cas -l ${log_exts} /dev/cassandra then mkfs -v -t ext4 ...
1
vote
1answer
116 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' ...
0
votes
2answers
193 views

Puppet: Test that a virtual Resource is exists or is defined?

Previously on ServerFault, it was shown how to test if a Resource was defined: Puppet: Test that a Resource is defined? if defined(File["/tmp/foo"]) { alert("/tmp/foo is defined") } else { ...
1
vote
1answer
605 views

Will passing an array as a value in puppet install my package?

I'm working through the puppet documentation. One of the exercises is to use some conditional logic to write a general install manifest: Exercise: Use the $operatingsystem fact to write a manifest ...
1
vote
1answer
128 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
votes
1answer
374 views

CentOS 6.6 Apache 2.2.15 Invalid Command SSLCARevocationCheck

I found this which seemed to be related. But unfortunately I have the Include and the ssl.conf file. I have also verified the the revocation file exists and the path is correct. I have also set my SE ...
0
votes
1answer
1k views

Access a puppet class variable dynamically

Is it possible to dynamically access a variable in a class? For example: class namespace::hello() { $cow = "moo" $dog = "bark" } $dynamic = 'cow' $value = $namespace::hello::[$dynamic] # ...
1
vote
2answers
192 views

Chef over Puppet on Azure?

It seems like Microsoft is preferring Chef over Puppet? There seems to be more "buzz" around Chef and Azure than Puppet. https://docs.getchef.com/plugin_knife_azure.html ...
-1
votes
1answer
438 views

Failing to install puppet

Let's say I have 2 fresh Ubuntu 14.04 VMs. I wish to make one a puppet master and the other a puppet client. I following the official puppet install guide, which is very simple (linked down the ...
0
votes
0answers
29 views

Continuous Delivery WinForm + WebApp

At my company we've developed an application that has two parts: one is build in WinForms and one is build in ASP.NET MVC. The Windows application is a drawing application with alot of logic, so it ...
2
votes
1answer
189 views

When using the puppet node init command, are the parameters to specify in the answers.install file

On puppet-enterprise version 3.3.1, I am attempting to use the puppet node init command on a VMware puppet master node hosted on a VMware VSphere client with VCenter 5.1.0. My puppet master node has ...
2
votes
1answer
82 views

puppet node keeps adding itself to the master

Im at the start of learning puppet. So far I successfully setup my master with dashboard and a couple of agents. But on one of my testing nodes I made a mistake when adding the node. I added it twice ...
2
votes
2answers
53 views

How can I use Puppet to Enforce Local Group Membership?

Cross posting this from Ask@PuppetLabs. (There simply isn't enough traffic there.) I've seen a number of examples for adding users to %wheel with Augeas. These are all variations of the same thing; ...
2
votes
1answer
465 views

Trouble using hiera in masterless setup and getting values set for classes

I am running a masterless puppet setup that applies the puppet changes in the following manner. puppet apply /tmp/puppet/manifests/site.pp --modulepath=/tmp/puppet/modules ...
1
vote
1answer
165 views

How do I create node groups in puppet

I am in the process of setting up Puppet in our QA environment. I have created a few manifests and setup classes which are running fine. I am aware of Node definitions and have successfully created ...
1
vote
2answers
1k views

puppet hanging or long time on rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0

In our setup, we manage our servers using puppet. Since a few days I saw the puppet client running very slow. When stracing the puppet process I get loads of rt_sigprocmask(SIG_BLOCK, NULL, [], 8) ...
0
votes
1answer
41 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
0answers
86 views

Address already in use

I'm setting up puppetmaster using linux mint Below is the error. After much google I can't find any answer. sudo puppet master --verbose --no-daemonize Warning: Setting templatedir is deprecated. ...
0
votes
1answer
35 views

Controlling catalog pull by puppet agents

We have just started using Puppet on our QA environments. All along, I was under the impression that the agents pull the catalog from the master only when puppet is restarted on the agent nodes or ...
0
votes
2answers
132 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 { ...
6
votes
6answers
608 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
162 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 ...
2
votes
3answers
2k views

Pass --nogpgcheck to yum via puppet

How would one get a --nogpgcheck option to yum via puppet? I've tried package { 'unsigned-package': ensure => latest, install_options => ['--nogpgcheck'], } and package { ...
6
votes
2answers
229 views

Can Puppet File Source be from a web service?

Is there a (simple) way to have puppet use a file available on the internet for the Source property of a File? eg: file { "/home/text.txt": source => [ "http://www.example.com/text.txt", ...
1
vote
2answers
121 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)
2
votes
1answer
95 views

puppetlabs-postgresql: how to set globals properly without duplicate definitions

puppetlabs-postgresql's documentation recommends setting values in postgresql::globals like so: class { 'postgresql::globals': encoding => 'UTF8', locale => 'en_NG', }-> class { ...
0
votes
1answer
362 views

Use puppet to change the IP address on the nodes

I have 3 CentOS nodes. Each of them has 2 IP addresses: 10.0.1.* (eth0) and 192.168.1.* (eth1). All of them have puppet installed and there is a master puppet server for managing configuration in ...
1
vote
3answers
1k views

What determines Puppet pluginsync directory structure on clients?

I'm using puppet 2.6.8. I've got pluginsync=true on both master and client. I've created a module and a type which lives on the puppetmaster at: ...
1
vote
1answer
154 views

puppet server hostname does not match certificate - can't authenticate.

I know this question has been asked before in many different variant. I read all the post related to the problem but I cannot get agent and master talking to each other. I boot up 2 vm via vmwork ...
0
votes
1answer
198 views

Puppet file link doesn't create target under Windows

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