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
1 answer

Why does rspec puppet fail with undefined method error when switching ruby versions?

I developed my puppet module with ruby version 1.8.7 ran bundle install on the following gem file and rspec tests worked successfully (so did the puppet run): source 'https://rubygems.org' if puppetversion = ENV['PUPPET_GEM_VERSION'] gem…
kaizenCoder
  • 2,211
  • 6
  • 33
  • 64
1
vote
1 answer

puppet apply command without root access in ubuntu

I installed puppet client in ubuntu and I am trying to execute my nexus artifact puppet and deployment files after hudson release process without root access. How to execute "puppet apply" command without root access in ubuntu ?
Kenshin
  • 1,030
  • 2
  • 12
  • 41
1
vote
1 answer

Puppet invalid ressource

I'm very new to DevOps tools and I'm starting to learn Puppet. I found this example at this link nice to start with for my purpose : configuring an Appache server with Puppet :…
Alex
  • 107
  • 9
1
vote
1 answer

How do I get my Puppet module's path?

A Puppet module of my application must execute a script that comes with that application. The directory layout is well-known, but the absolute path (of src_root) is variable. src_root/ my_script.sh <----+ .puppet/ | modules/ …
1
vote
1 answer

Puppet and hiera,how to apply changes?

I want to update cron via puppet. Until today i have used only foreman for apply and never userd hiera. Following this howto First i have create dirs for hiera cd /etc/puppet && mkdir -p hieradata/development hieradata/production/domains…
elbarna
  • 597
  • 1
  • 10
  • 26
1
vote
3 answers

Why does net.exe start report a failure when the service starts?

I have a Java application that uses the Apache Daemon service installer to register it as a Windows service. I am using Puppet to run an exec{} block to register the service, which works, and then chains a service{} block to start the service. …
Robin Coe
  • 750
  • 7
  • 28
1
vote
2 answers

Puppet. Change any config/text file in most efficient way

I am learning how to use Puppet. An now I am trying to change config file for nscd. I need to change such lines: server-user nscd paranoia yes And let's suppose that full config looks as next: $ cat /etc/nscd/nscd.conf …
ipeacocks
  • 2,187
  • 3
  • 32
  • 47
1
vote
2 answers

Different versions of a puppet module within the same environment

We've adopted the ideas outlined in http://garylarizza.com/blog/2014/02/17/puppet-workflow-part-2/, which introduces the notion of component modules, profiles and roles. Say we have a component module "moduleA", which may be used by different…
kenneho
  • 401
  • 1
  • 7
  • 24
1
vote
2 answers

puppet --version fails with ruby issue

I have CentOS6 on which I have configured puppet server. but Whenever I try to execute ant puppet command it fails with ruby issue. see the output for puppet --version -bash-4.1# puppet…
Ankit Katiyar
  • 2,631
  • 2
  • 20
  • 30
1
vote
2 answers

Puppet: Class b required by class A in site.pp

I have 2 modules with class name has A-Class and B-Class. I want to make sure B-Class runs first and with A-Class when i run Puppet apply site.pp. But getting error as 'Syntax error at 'mongos'; expected '}' at require B-Class line, below is the…
kittu deopa
  • 79
  • 2
  • 2
  • 12
1
vote
1 answer

Puppet - unable to execute ONLY ONCE ordered chain of Exec commands after notification

TLDR: I can't configure ordered chain of Puppet "Exec" commands to run ONLY ONCE. Details: I want to use Vagrant and Puppet modules to setup VM with installed Redmine and some sample data loaded into it. I'm using…
ljader
  • 620
  • 2
  • 8
  • 22
1
vote
1 answer

Command to completely uninstall puppet in the agent

I have tried sudo yum remove puppet and it uninstalled Puppet. But the certificate and repository are all still there. How do I wipe out everything?
James
  • 193
  • 2
  • 4
  • 15
1
vote
1 answer

add entries to hosts file based on facts

In Puppet I would like to create entries to all hosts files in a large group of servers. 256.344.987.776 6.fqn.mycompany.info my-hosts-hostname6 256.344.987.777 7.fqn.mycompany.info my-hosts-hostname7 256.344.987.778 8.fqn.mycompany.info…
Havnar
  • 2,558
  • 7
  • 33
  • 62
1
vote
1 answer

how to get domain name ip address by dns not hosts file in ruby

/etc/hosts 1.1.1.1 test.example.com DNS 2.2.2.2 test.example.com I use below function get hosts ip address, i want get dns ip address ,when someone modify my hosts error ip, puppet facter get correct ip to…
CheStar
  • 3
  • 2
1
vote
1 answer

Puppet hosts pull every 30 minutes?

Is it 30 minutes from the last change? I made change in master and the changes were applied in my hosts one by one, not together. There was difference of few minutes. So I assume Puppet hosts pull every 30 minutes after they pulled last time?
James
  • 193
  • 2
  • 4
  • 15