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

Installing package from PPA using Puppet

I'm trying to automatically provision VMs with docker pre-installed. My default init.pp looks like: class { 'apt': always_apt_update => true, } package { [ #'build-essential', #'vim', #'curl', #'zsh', #'git-core', …
digital
  • 345
  • 6
  • 13
8
votes
2 answers

No APT Recommends with puppet

I use puppet to manage a bunch of Debian servers at work, part if that includes installing packages. One package I install on several systems is nmap which is used to verify that firewall rules are setup properly. On Debian 7.0, if you have …
Zoredache
  • 130,897
  • 41
  • 276
  • 420
8
votes
4 answers

What is the best way in Puppet to add a piece of text to the /etc/hosts file?

I would also like to keep the ability to manually edit hosts-file, at least the first 10 lines. #Public IP's - eth0 192.168.1.103 front-01 192.168.1.106 front-02 #Private IP's - eth1 192.169.40.201 priv0-0 192.169.40.202 …
ujjain
  • 3,983
  • 16
  • 53
  • 91
8
votes
2 answers

Lowercase variable values in a Puppet template

In my puppet config I need to lowercase a variable value before using it in a template. How to achieve this? Is there a way to lowercase a variable value inside the puppet manifest? Do I need to do this in the template? And more general: where are…
paweloque
  • 267
  • 1
  • 4
  • 10
8
votes
2 answers

Simple Windows+Linux server provisioning? Chef/Puppet/Ansible etc

I'm primarily a developer, part time devops; and manage servers here and there for my projects. I want to automate provisioning of web/app/database servers going forward for my projects I manage a mixture of both Windows and Linux servers (VPS,…
Andrew
  • 231
  • 2
  • 8
8
votes
4 answers

How to set up Cobbler with Puppet or Cfengine?

I've heard a lot about using Cobbler together with Puppet/Cfengine for rapid deployment & configuration. Can you point me to some tutorials or share you experience of how you do it? Would also love to hear about any other systems you use for rapid…
Continuation
  • 3,080
  • 5
  • 30
  • 38
8
votes
4 answers

How to convert a string to integer in Puppet?

I want to check whether the content of a variable is an odd number. But I need an integer for it. $ip_array = split($ipaddress, '.') $odd_ip = $ip_array[3] % 2 if $odd_ip == 1 { notice("is odd") } Is there an easy way to convert a string to…
MMore
  • 543
  • 2
  • 6
  • 12
8
votes
2 answers

When puppet exec's as a user, how can I get environment set for that user?

I've noticed that when I use the user option on exec, it doesn't take the environment of the specified user. $ sudo -i puppet apply -e "exec { '/usr/bin/env': logoutput => true, user => nobody}" notice: /Stage[main]//Exec[/usr/bin/env]/returns:…
leedm777
  • 305
  • 5
  • 9
8
votes
5 answers

Puppet's automatically generated certificates failing

I am running a default configuration of Puppet on Debian Squeeze 6.0.4. The server's FQDN is master.example.com. The client's FQDN is client.example.com. I am able to contact the puppet master and send a CSR. I sign it using puppetca -sa but the…
gparent
  • 3,601
  • 2
  • 24
  • 28
8
votes
4 answers

Can any puppet agent get any puppet file from the master?

My Puppet master contains some sensitive files. I want each puppet agent to be able to access only those files that are of interest to that specific agent. In other words: Does the puppet agent run its catalog, and then, whenever it encounters a…
Antonis Christofides
  • 2,598
  • 2
  • 23
  • 35
8
votes
2 answers

How do I run a shell script from puppet?

I need to install npm which is done by curl http://npmjs.org/install.sh | sh and being new to using puppet, I am a bit confused on how this should be done. I am well aware of creating a package {} entry that invokes an exec target, but as I install…
Industrial
  • 1,579
  • 6
  • 24
  • 37
8
votes
3 answers

Puppet exported resources for .erb file variables?

Scenario: my configuration file is defined by a .erb file which includes the snippet below. <% backupclients.each do |backup_files| -%> Job { Name = "Server" JobDefs = "DefaultJob" Client = <%= backup_files %>-fd Pool = TeraMonth Write…
Jeff Ferland
  • 20,547
  • 2
  • 62
  • 85
8
votes
3 answers

How can I pass configure options when installing php extensions with pecl?

There is a PHP extension to which I need to pass a configure option when I install it with a pecl command. I can't find a way to do this. Of course I can install it manually, but I need it to be able to install it with single command - so that it is…
Piavlo
  • 141
  • 2
  • 4
8
votes
3 answers

How do I provide dpkg configuration parameters to aptitude or apt-get?

When installing gitolite I find that: # aptitude install gitolite The following NEW packages will be installed: gitolite 0 packages upgraded, 1 newly installed, 0 to remove and 29 not upgraded. Need to get 114 kB of archives. After unpacking 348…
troutwine
  • 1,452
  • 5
  • 18
  • 33
8
votes
2 answers

Migrating puppet clients to new puppetmaster

How can I migrate our existing puppet clients to point to a new puppetmaster server? I'd rather not manually go to each client box and generate a new certificate. When trying the obvious -- rsync all the files from /etc/puppet and /var/lib/puppet to…
mrisher
  • 401
  • 1
  • 5
  • 12