Questions tagged [puppet]

Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language.

Puppet is a configuration management tool for Unix and Windows. It works either standalone mode (puppet apply) or in client-server mode (puppet agent) with puppet agents running on client systems checking in with the master daemon on the server on a regular basis. Puppet's written in ruby, and puppet source code, i.e. puppet manifests, uses its own domain-specific language that focuses on declaring the system resources and it's intended state.

Combined with system provisioning tools (PXE, kickstart, FAI, etc), puppet can fully automate any software installation and configuration process that doesn't require a GUI interface.

More info:

Related:

1792 questions
1
vote
3 answers

Appending a line to a file if it doesn't exist using Puppet

I've got a defined resource type to append a line to a file if it doesn't exist, as per below: define appendLineToFile($file, $line, $user) { exec { "echo \"\\n$line\" >> \"$file\"": path => '/bin', unless => "grep -Fx \"$line\"…
Chris
  • 113
  • 1
  • 1
  • 4
1
vote
1 answer

Installed ruby from source on debian, apt-get no longer works due to failed dependencies, how do I fix it?

I installed ruby from source, and everything ruby related seems to work just fine. I can't install anything that depends on ruby using apt because I don't want 2 versions of ruby installed. After I install mcollective from dpkg using…
matt
  • 1,152
  • 1
  • 8
  • 18
1
vote
0 answers

puppet dashboard upgrade is failing

following this page: Not able to get the latest puppet dashboard installed.... http://docs.puppetlabs.com/dashboard/manual/1.2/upgrading.html#upgrading-code Commands typing: git init rm .gitignore wget…
CMag
  • 707
  • 2
  • 11
  • 32
1
vote
1 answer

How to create a user with Puppet

I am trying to create a user with Puppet but everything I have been trying has failed. I am trying to create a user named "capistrano" that will be placed in the "www-data" group. I have done the following configuration. class capistranoDeps::user…
Antoine Benkemoun
  • 7,314
  • 3
  • 42
  • 60
1
vote
1 answer

using puppet host resource with hiera data source

I'm trying to implement puppet /etc/hosts handling using hiera as data source, but my current implementation requires data duplication because I could pass only array of strings as $name to host resource. Is there any way to avoid such data…
AlexD
  • 8,747
  • 2
  • 29
  • 38
1
vote
3 answers

What determines Puppet pluginsync directory structure on clients?

I'm using puppet 2.6.8. I've got pluginsync=true on both master and client. I've created a module and a type which lives on the puppetmaster at: /etc/puppet/modules/mymodule/lib/puppet/type/mytype.rb The sync works on the client, but the type ends…
Mark
  • 23
  • 4
1
vote
1 answer

Puppet can't access MySQL meta-information even when root

When running: $ sudo puppetd --verbose --no-daemonize -o I get errors such as: err: //webserver/Mysql::Rights[Setup SW Database]/Mysql_user[scraperwiki@localhost]: Failed to retrieve current state of resource: Execution of '/usr/bin/mysql mysql…
frabcus
  • 204
  • 2
  • 6
1
vote
2 answers

Upgrade the Ubuntu puppet package within kickstart process

My Ubuntu based kickstart-host is almost working like it should, serving Ubuntu 10.04 (both i386 & amd64) and CentOS 5.6 to new (VMware-)hosts. One of the things that bothers me is that Ubuntu 10.04 LTS comes with Puppet 0.25.4, but I want to use…
Henk
  • 1,331
  • 11
  • 24
1
vote
2 answers

Adding a yum repo with puppet - Error 400 on SERVER: Invalid parameter enable at curly bracket?

I'm trying to automate some tasks when receiving a new server. The first thing is adding some yum repos. My /etc/puppet/modules/repo/manifests/init.pp: 1 class repo { 2 file { "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL": 3 …
quanta
  • 51,413
  • 19
  • 159
  • 217
1
vote
3 answers

Puppet: variable overriding best practices

I'm wondering what are best practices for overriding variables in puppet. I'd like to have all my nodes (which located in different places, some of them are qa, some live) with same classes. Now I have something like this: class base_linux { …
rvs
  • 4,125
  • 1
  • 27
  • 31
1
vote
2 answers

Puppet nodes cant' find master, ec2 public versus internal ip addresses and hosts files

If I setup my hosts files such that they reference all other ec2 nodes using the internal ip addresses, will this work or do I have to use the external ip addresses? Do I need to specify anything in my security group to get internal ip addresses to…
Blankman
  • 2,891
  • 10
  • 39
  • 68
1
vote
1 answer

Puppet: Install one of two packages only if neither are installed - otherwise nothing

Using Puppet... I had a situation with NTP whereby I wanted to install ntpd if NTP was not installed, but only if neither openntp nor ntpd were installed. (I solved this by using the Alexandrian Solution: I got rid of openntp...) This goes beyond…
Mei
  • 4,590
  • 8
  • 45
  • 53
1
vote
2 answers

Puppet offloading using NGINX, 403 forbidden error

I'm currently trying to offload some of the file serving puppet does using NGINX (As displayed here http://www.masterzen.fr/2010/03/21/more-puppet-offloading/), however I keep having 403 errors on both file and catalog retrieval. One thing that did…
Not Available
  • 226
  • 1
  • 16
1
vote
3 answers

Puppet defined resource - selective parameterization?

I'm currently banging my head trying to find the "best way" to achieve this type of granularity for puppet: I have a server running memcached in testing environment and another one running for the production environment. These servers run with…
victorcampos
  • 185
  • 1
  • 6
1
vote
2 answers

puppet or chef for stand alone server with limited resources

I have a small virtual linux server (500 megs ram). I may eventually get one or two more servers, not more. I'm a dev, not a sys admin so I don't know the best practices involving linux administration. I do know that I don't want to setup a machine,…
user23398
  • 1,191
  • 3
  • 9
  • 14