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

Why can't my puppet agent on a vagrant vm connect to my puppetmaster service on its vm?

My goal is to have one or two nodes, and one puppetmaster. I used a bash script to provision each node with the puppetlabs repository and install the latest version of puppet and/or puppetmaster. But every time I try to run puppet agent --test on…
David R.
  • 518
  • 2
  • 9
  • 20
7
votes
1 answer

Why do Puppet and Chef use Ruby?

We all know that Puppet and Chef are the superstars of the IT automation area, and they are developed in Ruby (though Chef 11 server was rewritten in Erlang). In my working environment, a very large group of the operations team uses Python as the…
anguskwan
  • 467
  • 5
  • 6
7
votes
2 answers

How do I change the puppet version installed by vagrant

I use vagrant 1.0.1 on a precise32 base box to play with puppet. Provisioning works fine, my manifests are being executed. By default vagrant installs puppet 2.7.14 under /opt/vagrant_ruby/bin/puppet on the guest. How can I configure vagrant (or who…
wischan
  • 3,740
  • 1
  • 18
  • 14
7
votes
3 answers

Puppet manifest - 'sudo' commands?

I have a CentOS base box in Vagrant that I'm standing up with a puppet manifest. Here's what's in the manifest so far: class base { exec { "sudocmd": path => ["/usr/bin/","/usr/sbin/","/bin"], command => "sudo yum update -y", …
George K.
  • 2,867
  • 4
  • 19
  • 28
7
votes
1 answer

How to package files with a Vagrant box?

So I created a Vagrant box with the following command: vagrant package --base box_name_here --vagrantfile Vagrantfile --include manifests/ manifests/ is a directory with a puppet manifest and some subdirectories with some files used during the…
jeremiahs
  • 3,985
  • 8
  • 25
  • 30
7
votes
1 answer

Jenkins nodelabel plugin where does .jpi come from?

I am writing a puppet script that will automatically setup a jenkins instance with the nodelabel parameter plugins. It successfully downloads the .hpi but the plugin still doesn't work. When I install it using the web UI I see that a working…
nweiler
  • 1,140
  • 1
  • 13
  • 23
7
votes
4 answers

Uncomment a line in Puppet

I'm getting into Puppet, and loving it, but am hitting my head against a wall with one small thing which I'm sure must be easier than I'm making it. I wish to uncomment this line in the .bashrc of a user: #force_color_prompt=yes I've been using…
Ludo
  • 2,739
  • 2
  • 28
  • 42
7
votes
3 answers

Rapid AWS autoscaling

How do you configure AWS autoscaling to scale up quickly? I've setup an AWS autoscaling group with an ELB. All is working well, except it takes several minutes before the new instances are added and are online. I came across the following in a post…
waigani
  • 3,570
  • 5
  • 46
  • 71
6
votes
2 answers

How can I make puppet stop a service before replacing a file?

I'm trying to avoid a race condition when replacing the software behind a puppet Service. To do that, puppet needs to stop the service, replace the executable, then start the service. Is there a way to talk puppet into doing that? Its preferred…
bugi
  • 123
  • 1
  • 1
  • 6
6
votes
1 answer

Multiple installations of my app - how do I handle it

I have an app written in PHP, MySQL, etc. The app has a few dependencies such as beanstalkd, Solr and a few PHP extensions. For each customer we have a separate installation of the app, either on a server shared with other customers or on a server…
phidah
  • 5,794
  • 6
  • 37
  • 58
6
votes
2 answers

Difference between "::mysql::server" and "mysql::server"

I was going through an old puppet code. It was using mysql puppet module to install mysql-server. I came across this class { '::mysql::server': } and this class { 'mysql::server': } Now I'm confused. Do they both mean the same thing or there's…
vik-y
  • 449
  • 2
  • 5
  • 14
6
votes
1 answer

Puppet vs Ansible - why would organisation use both?

I have worked in an organisation where we used both puppet and ansible for configuration management... but I always wondered why would they use both tools ... what can puppet do that Ansible cannot do? The only thought that came to my mind was: -…
Buggy B
  • 623
  • 7
  • 18
6
votes
1 answer

Automate installation of msodbcsql with puppet

To install msodbcsql that comes with mssql-tools that are needed to use the PHP Microsoft SQL Driver for Linux the following command is needed sudo ACCEPT_EULA=Y apt-get install mssql-tools However when installing this with Puppet, this fails, the…
Qworty
  • 101
  • 1
  • 5
6
votes
2 answers

Hosting rails on ec2

I want to deploy a rails onto amazon ec2. I've had a look at poolparty and ec2onrails but neither seem to be maintained anymore. What are people using to do this? Is it all homebrewed puppet and capistrano or is there a project that will get me…
opsb
  • 29,325
  • 19
  • 89
  • 99
6
votes
1 answer

Puppet. Iterate over a nested hash in ERB

I am starting to develop in puppet (ruby) and I have the following problem. I have the current hash that I want to iterate in a template file. $database_profile_hash = { cpu => { governor => ondemand energy_perf_bias => powersave } …
Daniel Cano
  • 95
  • 1
  • 2
  • 4