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

unable to install puppetserver on ec2 ubuntu instance error: Some packages could not be installed

I am trying to install Puppet server on an EC2 Ubuntu instance: ubuntu@ip-172-31-43-240:~$ sudo apt-get install puppetserver Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be…
Mamun
  • 2,322
  • 4
  • 27
  • 41
1
vote
1 answer

How to install and run a script in Puppet

I am new to Puppet..I am trying to install a shell script and exceute it using Puppet. The shell script after running creates another conf file and places in a specific location /usr/local/conf/app.conf. How can I write a puppet code to execute this…
Mark
  • 31
  • 1
  • 1
  • 7
1
vote
1 answer

Get Temp Directory on Windows using Puppet

I am trying to download a file using download_file module and want to save it to the temp directory. Is there a built in way to do this using Puppet without hard-coding it to C:\Windows\Temp. download_file { "Download Flyway" : url …
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
1
vote
1 answer

puppet fileserver distribute binaries

Well, question is not new but I still unable to find any nice solution. I distributing binaries 100-300mb files via puppet fileserver, but it works really bad in case of performance I'm sure because of md5 checks. Now I have more than 100 servers…
Roman Iuvshin
  • 1,872
  • 10
  • 24
  • 40
1
vote
1 answer

How to write a wrapper class / Override configuration in pre existing Puppet Class

I would like to override the values of another class in another Puppet Modules. Please help me by suggesting ways. Existing Class : ( Module Name : MySQL ) class mysql::server ( $config_file = $mysql::params::config_file, $includedir…
ArunRaj
  • 1,780
  • 2
  • 26
  • 48
1
vote
1 answer

Hiera: can't convert String into Hash, what could be the reason?

I've written a module which uses rpm -e $package_name --nodeps to remove a single RPM without it's dependencies. I'm using Hiera and I've got hiera_include("classes", []) set in the Puppet server's site.pp file. The module includes two configuration…
Itai Ganot
  • 5,873
  • 18
  • 56
  • 99
1
vote
2 answers

Error Duplicate declaration already exists Puppet

I declared this in mon.pp file $pem_file_path = "/etc/ssl/private/${::environment}.pem" $defaults = hiera_hash('defaults') $subscription_id = $defaults['subscription_id'] $pem_file_content =…
Dheeraj
  • 297
  • 1
  • 5
  • 17
1
vote
1 answer

Puppet exception handling?

I was wondering how one would do try/catch/throw type exception handling in a puppet manifest. Here's how I wish puppet would work ... class simple { unless ( package { 'simple': ensure => present } ) { file { '/tmp/simple.txt': …
Red Cricket
  • 9,762
  • 21
  • 81
  • 166
1
vote
1 answer

Syntax error at '::nfs::server::export' in puppet

I am getting following syntax error: But I don't find any error in my code. Can anyone explain the cause and help me to fix it ? Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '::nfs::server::export' at…
ArunRaj
  • 1,780
  • 2
  • 26
  • 48
1
vote
1 answer

How to filter hash in puppet manifest?

could you please help me. I'm getting dict from hiera in puppet manifest and then trying to filter them and pass in a python script as args. But don't know how to do it. My hiera: myclass::server_conf: 'first_serv': 'serv_name': 'testname' …
aRTURIUS
  • 1,230
  • 2
  • 13
  • 31
1
vote
3 answers

puppet - unexpected result from 'each' in a custom function

I have a simple function which takes a JSON and 'does something' with it. The main part works good BUT the function returns not only what I want but additionally the result of .each loop! The code: module Puppet::Parser::Functions …
kamh
  • 65
  • 8
1
vote
1 answer

Puppet custom function get ipaddress of client

Is there a way to get the ipaddress from a >>puppet custom function<< ? I'm trying use Puppet::FileServing::Content.indirection.find on a custom endpoint like this: [secret] path /var/lib/puppet/secret/%H allow * when using…
Nico
  • 6,395
  • 4
  • 25
  • 34
1
vote
2 answers

Encrypted Hiera eyaml variable decrypts on master but not on node

I just set up hiera-eyaml on my Puppet 3.8, opensource environment. defaults.yaml db_password: ENC[PKCS7,MXCGFDS......] site.pp $password=hiera(db_password) If I'm running: puppet master --debug --compile funky_hostname.mydomain.com…
Adam Ocsvari
  • 8,056
  • 2
  • 17
  • 30
1
vote
1 answer

need to access value in hiera.yaml

I need help on accessing hiera variable value in hiera.yaml file. Suppose I have a hiera.yaml file with the contents: variable1: 'abc'
variable2: "%{variable1}/xyz" I mean I want to access/substitute variable1 value in hiera itself. How we can…
sanjiv
  • 269
  • 4
  • 12
1
vote
1 answer

Puppet modules for installing ASP (not ASP.Net)?

We have an old website that uses classic ASP for part of its functionality. We're moving it to Windows 2012 and wanted to try puppetizing the process. Are there puppet modules that will install classic ASP that we can use from the forge or…
jkj2000
  • 1,563
  • 4
  • 19
  • 26