Questions tagged [puppet]

Puppet is a ruby-based Configuration Management system incorporating a model-driven DSL. Its purpose is to provide configuration file enforcement, service state monitoring, package installation and other server-side management.

Puppet is a ruby-based Configuration Management system made by Puppet Labs.

Puppet has its own DSL, a model-driven language.

Its purpose is to provide configuration file enforcement, service state monitoring, package installation and other server-side management.

Functionality is provided by types. Out of the box, puppet comes with a number of commonly used types such as package, service and file.

It can be extended with modules available from the Forge.

Puppet is written in Ruby and licensed under the Apache v2 and the source code is avaliable on Github.

Useful Links:

See Also

4080 questions
5
votes
1 answer

How do jenkins, Github and Puppet interact

First I should disclose I only manage vendor relationships and lack deep technical knowledge. I just had a conference call with one of our sub-contractors who has asked me to sign off on a PO for 4 different servers (one for Jenkins another for…
van
  • 9,159
  • 19
  • 60
  • 93
4
votes
2 answers

puppet can't find pip : Parameter provider failed: Invalid package provider 'pip' at < path_to_pip_file >

I have a simple .pp / puppet file, and I'm getting "Parameter provider failed: Invalid package provider 'pip' at sis.pp:24" Here's the line 24: 20 package {"numpy": 21 ensure => installed, 22 provider => pip, 23 …
qwexar
  • 303
  • 5
  • 16
4
votes
2 answers

Map puppet path to absolute path

I'm trying to write a new function for puppet which would take a puppet source path as argument, such as: puppet:///modules/foo/some/dir The function then needs to analyse this directory, so I need to figure out the absolute path to the directory,…
raphink
  • 3,625
  • 1
  • 28
  • 39
4
votes
1 answer

Puppet Behaviour not consistent in Amazon VPC

I'm testing out puppet in Amazon VPC and found out its behavior is not consistent. In Amazon EC2, puppet works out perfectly fine. But while running puppet manifests in Amazon VPC, sometimes it runs properly..sometimes not. root@ip-10-0-0-123:~#…
Sanket Dangi
  • 1,185
  • 9
  • 16
4
votes
1 answer

Puppet SSL connection issue

puppet version 2.6.6 I intermittently see SSL connection errors similar to the following on puppet agents: Could not evaluate: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A Could not retrieve file metadata for…
Andrew Eells
  • 735
  • 12
  • 30
4
votes
1 answer

Separating configs from WAR/EAR for Puppet deployments

We do a lot of deployments of Java web applications to Weblogic and Jboss servers. Quite often the deployment looks like this: Copy the code and default configs to a staging directory on the application server or Weblogic admin server. Edit a…
Cakemox
  • 167
  • 1
  • 6
4
votes
1 answer

Declare dependency between array elements in Puppet

Is there any way to declare in Puppet's language that packages in an array should installed in the order they are given in the array? I want to automate the installation of CUDA, which requires nvidia-driver-latest-dkms, cuda and cuda-drivers (on…
Christoph
  • 1,964
  • 2
  • 27
  • 44
4
votes
1 answer

puppetserver ca commands fail connecting to https://puppet:8140 when using SRV record solution

I use SRV solution in my puppet architecture. When trying to setup a new puppet master and CA and view my certificates I get this error: puppetserver ca list --all Fatal error when running action 'list' Error: Failed connecting to…
deez
  • 1,472
  • 3
  • 18
  • 28
4
votes
0 answers

append multiple structured custom facts

I'm trying to get multiple structured custom facts to append to my root key (called rag here), but instead they always replace the current value. Q1: Is this the expected behavior of Facter.add ? So to get it to work i created two external facts,…
RASG
  • 5,988
  • 4
  • 26
  • 47
4
votes
1 answer

How to isolate Puppet function mocking in rspec unit tests

I have a Puppet class that uses the result of a custom Puppet function. To make sure I only test the logic in my class, and not the logic in my function when doing unit tests for the class, I want to mock the function. However, I can't seem to fully…
Simon
  • 260
  • 1
  • 14
4
votes
1 answer

How to call a puppet function from a different module than the module it is defined in

I have defined a puppet function check_value in module test_one test_one |- functions |- check_value.pp and the function declaration: test_one::check_value(String $check) >> String { ... } I declared a class test_functions within the…
VanagaS
  • 3,130
  • 3
  • 27
  • 41
4
votes
3 answers

Puppet like syntax for python

Anyone know of any good ways to do puppet like pp files for python. Almost like config files that can inherit other configs files and also have limited logic in them like if statements and variables? Thanks!
Mike
  • 7,769
  • 13
  • 57
  • 81
4
votes
1 answer

Puppet after 5 years, when certificates expire?

I'm reading that the default expiry date for puppet certificates is 5 years, and can set set with the attribute ca_ttl in puppet.conf. I have 2 questions, given a setup of many agents connecting to a puppet master. What happens when an agents…
Philip Kirkbride
  • 21,381
  • 38
  • 125
  • 225
4
votes
1 answer

Append a hash to a series of nested hashes in Puppet4

Given is an hash of hashes in hieradata: profile::jdbc::connections connection_name1: username: 'user1' password: 'pass1' connection_name2: username: 'user2' password: 'pass2' and an hash of defaults in puppet…
4
votes
2 answers

Remove value from hash Puppet

I have the following params in hiera: base::users: john@example.com: ensure: present user: john sudo: true type: ssh-rsa key: AAAAB3NzaC1yc2EAAAABJ in puppet i'm getting the following hash: {john@example.com => {ensure =>…
aRTURIUS
  • 1,230
  • 2
  • 13
  • 31