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
1
vote
0 answers

Could not set 'present' on ensure: No such file or directory

Getting the error below on the agent side when I try to sign the certificate and test it. Error: Could not set 'present' on ensure: No such file or directory - /usr/local/sbin/logbackup.sh20151015-45265-ouqjrt.lock at…
James
  • 193
  • 2
  • 4
  • 15
1
vote
0 answers

Iterating over two hiera hashes in puppet

Bit of a tricky situation, I have two hiera hashes, one for the user module that I call as follow: $users = hiera_hash('users') create_resources('user',$users) And another for the authorized_keys module, similarly called via: $keys =…
Werner
  • 791
  • 1
  • 6
  • 23
1
vote
2 answers

Configuring Jenkins plugins with Puppet

I'm using the rtyler/jenkins Puppet module to deploy my Jenkins instance. One thing I can't seem to find documentation on is how to use Puppet to configure the Jenkins plugins once I've installed them. Can someone point me to some documentation…
chizou
  • 1,262
  • 13
  • 23
1
vote
1 answer

Puppet - dependency checking not working after 1st iteration

I am trying to use Puppet to modify file content, but if file doesn't exist, I will skip and do nothing. However, i found the dependency checking just work in the first iteration, but after that, it seems not function. Here is my puppet…
lung
  • 11
  • 1
1
vote
2 answers

Puppet Postgresql Error

I apply an incremental change to my postgresql install using puppet. sudo puppet apply --modulepath=/vagrant/puppet/modules -e "include iwd-postgresql" This result in the following error: Error: Puppet::Parser::AST::Resource failed with error…
timmy
  • 1,752
  • 6
  • 23
  • 35
1
vote
1 answer

Is it possible to write a test in rspec-puppet to check if registry exists?

I am trying to install .net framework 4.5.2 using puppet module using exec resource instead of using Package resource due to some reason. I want to write a test case to check if it is installed or not. The only way I could find to check if it is…
Ankita13
  • 469
  • 2
  • 7
  • 21
1
vote
2 answers

Porting shell scripts to ruby erb templates, suggestions and advice?

I am using Puppet for automating configuration management across hosts. It can use erb templates to set up configuration files of various services like apache, postfix etc. across different hosts Till now we were using shell scripts full of sed,…
Mohit Chawla
  • 219
  • 2
  • 11
1
vote
1 answer

Foreman with Puppet node Net::HTTPNotFound Error

I have installed foreman (v1.9.0) on a RHEL 7.1 VM as per the official documentation. My current environment consists of: 1 x Puppet master/foreman 2 x agents (RHEL 6.5 & 7) Foreman is configured as the ENC which will service 9 environments (inc…
Barry
  • 60
  • 7
1
vote
3 answers

Puppet iterating over a given number range with the each funciton

I get two integer's passed into a puppet class and I want to loop over resources based on the range of integers between the two. I can't quite figure out the syntax to do so. The best I have is similar to the…
Usman Ismail
  • 17,999
  • 14
  • 83
  • 165
1
vote
0 answers

pass array to the puppet resource defined

I would like to test if multiple packages exist in my environment or not, based on this test I would like to generate the final catalog. if !defined( Package[ 'apache2' ] ) { package { 'apache2': ensure => installed, } } if…
Anup Singh
  • 313
  • 1
  • 5
  • 18
1
vote
2 answers

How do I handle dependencies in Puppet?

In my puppet manifect I want to use dirtree function like #don't know which syntax is right, but seems like both of them have no effect include AlexCline/dirtree include AlexCline_dirtree class sw_mage_deploy { $deploy_folder =…
Anton Boritskiy
  • 1,539
  • 3
  • 21
  • 37
1
vote
1 answer

Puppet module developer workflow with vagrant

I'm currently working on developing a custom module for Puppet. That is my first Puppet module, I'm following tutorials and documentation here…
Anton Boritskiy
  • 1,539
  • 3
  • 21
  • 37
1
vote
1 answer

Python runserver error loading MySQLDB module: undefined symbol: mysql_kill

I'm receiving the following when trying to runserver after provisioning a VM using Puppet: File "/usr/local/lib/python2.7/dist packages/django/db/backends/mysql/base.py", line 17, in raise ImproperlyConfigured("Error loading MySQLdb module:…
TheCatParty
  • 1,449
  • 12
  • 19
1
vote
1 answer

resolving cyclic dependency in puppet when notifying resource in another class

I have written one apache class which install apache2 and configure ssl and then start apache service. I am writing one subclass which will configure one virtual host and then restart apache service. I am getting cyclic dependency error as I am…
noname
  • 179
  • 1
  • 4
1
vote
1 answer

Resolve duplicate declaration on puppet

I'm trying to call several times a defined instance of a puppet module to deploy multiple files from a given repository but I'm getting this error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration:…