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

Vagrant with Librarian-Puppet Broken

I'm having problems with provisioning new Vagrant instances. I've used the exact same configuration before without problems. I cannot figure out what's causing the problems when it used to work. Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby…
Marshmellow1328
  • 1,205
  • 3
  • 18
  • 27
5
votes
1 answer

Getting the private ip of the machine in Puppet

I am just thinking is there a way of getting the private Ip of the machine and using that in our puppet script, so let suppose we have the script to show the IP as: class test{ $my_ip= file{'print_ip_to_my_file': path =>…
Ankur Verma
  • 5,793
  • 12
  • 57
  • 93
5
votes
2 answers

Cron job not running created by puppet

I want to add 1 cron job in to the machine that will run every 5 minutes, for that I am using this manifest: class cron_job{ file{"puppet_ls": path => "/puppet/pls.sh", ensure => present, content =>…
Ankur Verma
  • 5,793
  • 12
  • 57
  • 93
5
votes
1 answer

Exec onlyif registry value is not present

**EDIT** I found a solution by playing around: class add_route { exec { "route_to_internal_network": command => "C:\Windows\System32\ROUTE.EXE add 192.168.5.254 mask 255.255.255.255 10.5.5.5 -p", unless =>…
manbart
  • 107
  • 1
  • 2
  • 8
5
votes
1 answer

How can I install two packages with the same name but two different providers in puppet?

I'm trying to install two things: A PHP-PECL module called "mongo", and a package on yum called "mongo". They'll need to use the "name" variable to know what the real name of the package is, but the alias puppet creates using this name is making it…
Gritty Kitty
  • 297
  • 2
  • 12
5
votes
4 answers

Puppet: Multiple files based on templates

I have several files which I need to be created by Puppet, all based on templates. As an example: /etc/my-project/a.ini /etc/my-project/b.ini /etc/my-project/c.ini What I would like to do is to ensure all these files using one statement in Puppet.…
Pavel S.
  • 11,892
  • 18
  • 75
  • 113
5
votes
4 answers

Puppet: relationship between resources on different nodes

I know that we can specify relationship between resources, which determines the deployment order. But is it possible to create relationship between resources on different nodes in Puppet? For example, I have apache web server in node A and mysql…
Herry
  • 455
  • 3
  • 14
5
votes
1 answer

puppet-enterprise-3.1.0-el-6-i386 client/agent test fails

I installed PE Master on one VM and Agents on two VMs pointing to master . Agent1 VM 64 bit works fine , but agent2 VM 32 bit fails with below error. Only difference is architecture. One more note both the agent nodes were accepted from Dashboard,so…
user2548441
  • 97
  • 1
  • 1
  • 5
5
votes
2 answers

Trouble locating templates in Puppet

I can't get my Puppet manifest to find templates the way I'd expect so I thought someone might have a quick answer. I'm new to puppet so just trying to understand all the locations for everything and how to reference files properly. If I'm missing…
me-na-ger-ie
  • 51
  • 1
  • 2
5
votes
2 answers

Uninstall foreman

I have installed The Foreman on Ubuntu Server 12.04, following the instructions here: http://theforeman.org/manuals/1.2/quickstart_guide.html#Installation I have now decided that it is not for me - but I cannot find any instructions on how to…
cbianchi
  • 51
  • 1
  • 1
  • 3
5
votes
2 answers

How to use a Puppet File Resource to give different permissions on a directory than to it's files?

I would like to use Puppet to manage a directory. I want the directory to be owned by user root and group admin, with 0770 permissions. I would like all files in the directory to be owned by user apache and group admin with 0600 permissions. I have…
Gabe
  • 1,078
  • 1
  • 11
  • 17
5
votes
1 answer

Is Puppet the right tool for pull-deploying .NET site from TFS with site shut down

We have a new application that needs to be deployed automatically to a number of servers. I need to know if Puppet can be used for the following scenario. The Application The application is a combination of .NET and PHP with either a SQL Server or…
Dr Rob Lang
  • 6,659
  • 5
  • 40
  • 60
5
votes
1 answer

Installing vagrant-vsphere plugin

so I recently installed the vagrant-aws plugin with vagrant plugin install vagrant-aws, after quite the adventure with ruby versions and dependencies. Anyway, for our deployment pipeline I need to find a way to spin up vSphere machines with vagrant,…
addicted2unix
  • 517
  • 1
  • 7
  • 12
5
votes
1 answer

Auto-generate puppet manifests?

Is it possible to auto-generate Puppet manifests from an existing system? For example, if we need to deploy a site to a pre-configured VPS or shared server, is there a tool which could query a server then generate puppet manifests to mirror what it…
joemaller
  • 19,579
  • 7
  • 67
  • 84
5
votes
2 answers

Install Mercurial Module for Windows Silently

I am trying to install the following package mercurial-2.2.1.win-amd64-py2.6.exe silently to add it to my Puppet manifest. I tried already with /s /q with no results.
Maverick
  • 1,293
  • 1
  • 19
  • 39