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
0answers
10 views

How to solve No request sent, we did not discover any nodes while trying to run Puppet using MCollective?

MCollective [vagrant@localhost ~]$ mco ping localhost.localdomain time=117.12 ms ---- ping statistics ---- 1 replies max: 117.12 min: 117.12 avg: 117.12 [vagrant@localhost ~]$ ...
0
votes
1answer
18 views

Deploying distributed apps with Puppet - advice?

I'm looking into migrating our deployment process over to using Puppet. I'm starting by deploying the third-party apps we use for the system, which include Solr Cloud orchestrated by a Zookeeper ...
4
votes
1answer
37 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 ...
2
votes
2answers
23 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 { ...
1
vote
2answers
48 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 ...
-2
votes
0answers
27 views

check the existing physical diectory [on hold]

I have below linux script $disk=$(ls /dev/sd[b-z]) pvcreate $disk how can I check exsisting physical disk in puppet for pvcreate physical volume (for lvm creation)
1
vote
1answer
13 views

Puppet and windowsfeature - Boolean Error

I'm new to Puppet Enterprise, but trying to learn how to deploy custom class files to Windows servers. I am attempting to use the opentable/windowsfeature module, but I'm getting an error when my ...
0
votes
0answers
12 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
1answer
31 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
2answers
25 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
24 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 ...
-1
votes
1answer
41 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
27 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
25 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 ...
0
votes
2answers
31 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
26 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
votes
1answer
49 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
13 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
2answers
31 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; ...
1
vote
2answers
29 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 ...
0
votes
0answers
30 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
26 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
19 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 ...
2
votes
1answer
85 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
0answers
37 views

mcollective ping not working

I am facing the below error while setting up mcollective activemq setup on centos, could you please let me know what went wrong in the setup? mco ping The ping application failed to run, use -v for ...
0
votes
1answer
33 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 ...
6
votes
2answers
170 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", ...
5
votes
2answers
84 views

Puppet: Can't manually generate cert and issue cert request over API

I've spent far too much time trying to figure this out now, and I could really need a pointer. The tl;dr is that I need to manually generate a certificate on one node, and then issue a certificate ...
0
votes
2answers
87 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 ...
0
votes
1answer
43 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
1answer
35 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 { ...
1
vote
1answer
38 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
0answers
21 views

glusterfs with puphpet on ubuntu 14.04

I am not able to find peers on two ubuntu 14 servers. I am using puphpet.com to make my puppet machines. I followed this tutorial: ...
0
votes
1answer
43 views

How use global parameters in Forman?

I'm new in Foreman, and I want to use a parameter for all my hosts managed by puppet and I think to use the global parameters it's a good way. But I can't understand how use it. For exmple if I take ...
5
votes
1answer
208 views

Managing puppet modules with git

I have a puppet/foreman server running on Debian 7 for managing my systems. I use the community version 3.7 of puppet and foreman 1.6.0. I use directory environments. At the moment I use a rather ...
1
vote
1answer
44 views

Cant use npm as provider with puppet

I am attempting to do the following in puppet: package { 'bower': ensure => present, provider => 'npm', require => Class['nodejs'], before => [ Exec['npm_install'], ...
2
votes
1answer
40 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, ...
0
votes
1answer
139 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 ...
1
vote
0answers
57 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 ...
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 ...
0
votes
0answers
92 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 ...
1
vote
2answers
80 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
51 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 ...
0
votes
0answers
38 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
38 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
0answers
47 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 ...
1
vote
1answer
26 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
44 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 ...