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

How to execute scripts sequentially in a loop with Puppet?

I'm a very new to Puppet, but I cannot wrap my head around this simple problem: I want to define a resource that simply execute a sequence of scripts, one after the other, waiting for one's execution to finish before launching the next. Here is what…
Lucas Cimon
  • 1,859
  • 2
  • 24
  • 33
1
vote
1 answer

Puppet file URL leads to 'Name or service not known'

In /etc/puppetlabs/code/modules/send/manifests/init.pp class send { file { '/tmp/hello.txt': owner => 'root', group => 'root', mode => '0644', source => 'puppet://modules/send/hello.txt', } } In…
david
  • 39
  • 1
  • 7
1
vote
0 answers

Custom module compilation order

Im trying to install our puppet modules into my local vagrant instance. We have a module oracle_java that basically installs java. I use the following command to to this: sudo puppet apply -e 'include oracle_java'…
Beginner
  • 2,643
  • 9
  • 33
  • 51
1
vote
1 answer

vagrant 1.7.2 + puppet 4.2 provisioning not working

Trying to spin-up a VM using vagrant and puppet 4.2. The puppent configuration in the Vagrantfile is: config.vm.provision "puppet" do |puppet| puppet.options = ['--verbose --debug'] puppet.environment_path = "../puppet/environments" …
Radu
  • 1,159
  • 3
  • 22
  • 40
1
vote
2 answers

Vagrant Error: Could not parse application options: invalid option: --manifestdir

I am getting following error when i run Vagrant up, after google i found people saying puppet latest version doesn't support that option, but don't know how to fix that issue? ==> centos7base: Running provisioner: puppet... ==> centos7base: Running…
Satish
  • 16,544
  • 29
  • 93
  • 149
1
vote
1 answer

When are puppet class parameters populated during catalogue compilation

I am having an issue with apparently non-deterministic behaviour of class parameters. On some runs a used in a class is defined and contains the expected value, on others the variable isn't present in the scope at all. $ puppet config print ordering…
TaninDirect
  • 458
  • 1
  • 7
  • 15
1
vote
0 answers

Puppet read file content and generate a hash

I have a file called fstab.txt which contains: UUID=86861354-d783-4b9e-a871-e9fbbfc35c22 /mnt/d1 ext4 defaults 1 2 UUID=ffa788ba-0802-4305-ab59-2a34dda3a706 /mnt/d2 ext4 defaults 1 2 UUID=993eec37-9c6d-4ba6-9ed3-77f2d7652256 …
James Sapam
  • 16,036
  • 12
  • 50
  • 73
1
vote
1 answer

My very simple custom Puppet type and provider does not work

I am reading about how to create custom types and providers in Puppet. But I am getting the error: Error: Could not autoload puppet/provider/createfile/ruby: undefined method `[]' for nil:NilClass when running the below…
Rox
  • 2,647
  • 15
  • 50
  • 85
1
vote
1 answer

sharing nginx status location with all vhosts in hiera and puppet

I'm using Jfryman puppet nginx module and I'm trying to enable status location with available vhosts , so my hiera go like this : --- nginx::nginx_vhosts: 'default': www_root: '/www/default' listen_port: 8081 'default2': www_root:…
A.Elnaggar
  • 240
  • 1
  • 2
  • 12
1
vote
0 answers

How to reuse a Hiera array in Puppet?

Aim The aim is to reuse hiera arrays to avoid code duplication. Attempts The following array has been defined in a hiera.yaml file: hiera_array: - host1 - host2 - host3 In an attempt to reuse it, the hiera_array is set to be used by another…
030
  • 10,842
  • 12
  • 78
  • 123
1
vote
2 answers

Is puppet efficient in synchronizing large files?

How efficient is puppet with handling large files? To give you a concrete example: Let's assume we're dealing with configuration data (stored in files) in the order of gigabytes. Puppet needs to ensure that the files are up-to-date with every agent…
Liviu Chircu
  • 1,000
  • 3
  • 11
  • 24
1
vote
0 answers

Why puppet is not able to download latest from snapshot repo

We are using Puppet and mCollective for our server deployments. For both of our dev and test environments, we release the artifacts (from two different branches) to the same nexus snapshot repo (we use maven classifier to distinguish between dev and…
Niranjan
  • 2,601
  • 8
  • 43
  • 54
1
vote
1 answer

Puppet 4.2 is printing strange error messages and fails on execution

I am running Puppet 4.2 (both master and client) and since yesterday I started to get strange errors when running puppet agent -t. # puppet agent -t Warning: Unable to fetch my node definition, but the agent run will continue: Warning: execution…
Rox
  • 2,647
  • 15
  • 50
  • 85
1
vote
1 answer

I do not understand hiera.yaml and hiera

I cannot seem to figure out how access my hiera data that I put into my yaml file. Here is my hiera.yaml: [root@vxx-osc4-ppt-001 puppetmaster]# cat /etc/puppetlabs/puppet/hiera.yaml --- :backends: - yaml :hierarchy: - "%{pod_prefix}" -…
Red Cricket
  • 9,762
  • 21
  • 81
  • 166
1
vote
2 answers

fail when a file exist in puppet

I am trying to write a puppet script which will install a module by un-tar. I want puppet to fail if it is already un tar. I tried to do below code but it always fails even if directory is absent. I am checking if /opt/sk is present then fail…
anonymous
  • 1,920
  • 2
  • 20
  • 30
1 2 3
99
100