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
2 answers

How can I check if the Puppet Enterprise server/master is installed and working correctly?

Puppet Enterprise appeared to be installed on my ubuntu 14.04 server: root@puppet:/# puppet --version 3.8.5 (Puppet Enterprise 3.8.4) However, the puppet service is not running: root@puppet:/# service puppet status puppet: unrecognized service The…
AD7
  • 105
  • 1
  • 11
5
votes
1 answer

Ansible equivalent of Puppet's "unless" attribute

In Puppet, when using the exec resource, you can specify an "unless" attribute. The Puppet exec will not run unless the "unless" command exits with status 0. Puppet example: exec { 'Make sure frob is installed': command => 'apt-get install -y…
Christian Long
  • 10,385
  • 6
  • 60
  • 58
5
votes
1 answer

How to add apt-keys with puppet?

Using this puppet-module for apt, how can i import this key: https://www.dotdeb.org/dotdeb.gpg What i want to achieve is a puppet-related solution for both shell commands: wget https://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg The…
delete
  • 18,144
  • 15
  • 48
  • 79
5
votes
1 answer

Puppet 4.3.2 client node unable to connect via SSL to Puppet Server

I have just done a clean regeneration of all my Puppet certifications as per the guide in the official docs. However, I encounter this error with seemingly no good leads on Google, SO, nor anywhere else. [vagrant@client puppet]$…
lollercoaster
  • 15,969
  • 35
  • 115
  • 173
5
votes
1 answer

How to Require Another Custom Class Using Puppet

If I have two class's in my own puppet module and class 'b' has a dependency on class 'a'. How can I express this in my require statement: # a.pp class rehan::a { package { 'javaruntime': ensure => latest, provider =>…
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
5
votes
1 answer

Requiring apt::source as a dependency gives a syntax error

I need to add the docker source list to apt before installing docker. I have apt::source { 'debian-jessie': comment => 'This is the docker Debian jessie mirror', location => 'http://apt.dockerproject.org/repo', release => 'debian-jessie', …
Flavius
  • 13,566
  • 13
  • 80
  • 126
5
votes
1 answer

Puppet cannot find class

Hi I'm new to puppet and I'm trying to make a test class, but when I run puppet apply-t I get error Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::heroes for under my test directory I have . ├──…
jumpman8947
  • 427
  • 2
  • 7
  • 17
5
votes
2 answers

Where does Powershell DSC find the module code?

I found an error in the Archive DSC module (MSFT_ArchiveResource.psm1). After copying the code, debugging it in the ISE and figuring out the two lines that needed to be fixed, I want to make the change to the real file and test using Puppet and the…
Paul Chernoch
  • 5,275
  • 3
  • 52
  • 73
5
votes
2 answers

npm install within Vagrant box

I have a fairly vanilla Vagrant box configured using Puphpet with Node installed. However, when I ssh into the box and try npm install I seem to be having a raft of permissions issues. Even running with sudo doesn't seem to work Running into npm…
Steven Grant
  • 1,236
  • 3
  • 15
  • 32
5
votes
2 answers

Complex hiera lookup not working

I have the following definition in a yaml file: keepalived: cluster_name: "cluster.example.lan" cluster_ip: "192.168.1.10" cluster_nic: "eth0" haproxy: bind_address: %{hiera('keepalived::cluster_ip')} And as a result in bind_address…
Stanislav
  • 73
  • 1
  • 7
5
votes
4 answers

Error: Could not run: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A

I am trying to copy a current Puppet Master server on one domain and move it to another. Im finding that its very hard to try to change all the config remanence. Is there an easy way to do this, or a step by step best practice? I have grepped most…
tek0011
  • 147
  • 1
  • 4
  • 12
5
votes
1 answer

How do I read a Hiera value from a Puppet function?

I have to write a function that will, in order, perform the following to read the value of a variable: Check if there is a facter variable defined. If not, Read the value of the variable from Hiera. If not, Use a default value. I have managed to…
Siddhu
  • 888
  • 3
  • 9
  • 28
5
votes
2 answers

Reconnect synced folders from Vagrant after VirtualBox restart

I have created a puppet/vagrant/VirtualBox generated installation of Ubuntu running on a Windows host; see https://bitbucket.org/dmenne/rstudio-shiny-server-on-ubuntu for details. This allows users to run RStudio and Shiny server on Windows. In…
Dieter Menne
  • 10,076
  • 44
  • 67
5
votes
1 answer

Iterate over a hash key/values in Puppet

I'm dabbling with Puppet to update an arbitrary list of appsettings in an ASP.NET web.config (for deployment purpose) and I'm in a dilemma, mostly because I'm a real n00b in puppet. I have this yaml file (hiera) --- appSettings: setting1:…
Dexter Legaspi
  • 3,192
  • 1
  • 35
  • 26
5
votes
2 answers

puppet: "applying configuration version ", what does it refer to?

When I run sudo puppet agent -t after a long phase of catalog loading, I get a message: info: Applying configuration version '1403590182' What is that number 1403590182 referring to? In fact I have noticed that if I run twice in a row sudo puppet…
Pierluigi Vernetto
  • 1,954
  • 1
  • 25
  • 27