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

learn more… | top users | synonyms

0
votes
1answer
11 views

Puppet iterate in template

In .pp file: replication => [ { name => 'local', url => xyz, push => ['refs/heads', 'refs/tags'], }, { name => 'github', url => abc, push => ['refs/...
0
votes
1answer
134 views

Foreman/Puppet: Add User to sudoers with a module

I would like to improve my skills in Foreman and Puppet. To do so I would like to get some easy tasks done. In my configuration all servers belonging to host group "Basic" should get a basic setup - ...
1
vote
1answer
27 views

Use defined resource to populate template file

I am working on making our puppet infrastructure more dynamic where I can add any number of nodes and these will automatically be applied in another nodes configuration. An example: I have X number ...
0
votes
1answer
151 views

Puppet/Foreman - Hostgroups and classes

I successfully set up foreman and puppet. Now I'm trying to configure host groups which should contain a specific configuration. My example: Host group "Basic" should get a special MOTD. I installed ...
0
votes
1answer
146 views

Puppet and The Foreman: Can not import classes

I followed the Digitalocean-Tutorial to set up Puppet and The Foreman. At the moment I'm on the point Add NTP Module To Foreman - I would love to import the class to the foreman Click on the ...
1
vote
2answers
128 views

How to puppetize gem install specific to puppet's ruby?

The Puppet Azure module requires specific gems to be installed. The directions https://github.com/puppetlabs/puppetlabs-azure show the following example: /opt/puppetlabs/puppet/bin/gem install azure ...
2
votes
2answers
189 views

In Puppet, what is the difference between 'include' and 'class'?

I can either write include '::ntp' or I can write class { '::ntp':} What is the difference between them, or do I need both?
2
votes
1answer
254 views

Puppet, changing multiple properties file with augeas

I'm using puppet and augeas tool quite a lot to configure property files. My latest requirement is to apply the same fixed set of changes to quite a long list of property files. So, I would like to do ...
0
votes
1answer
116 views

Use puppet to deploy bareos (bacula-fork) to my nodes

I'm not sure if this is the right place to ask, but I would really love to use puppet to deploy bareos on my servers. Bareos is a fork of Bacula and is used for backing up remote systems. To do that ...
1
vote
3answers
101 views

Deploying SSH-configuration via Puppet: Execution of '/etc/init.d/ssh start' returned 1:

I'm deploying a ssh-default-config via Puppet to my servers. This works fine in most cases. But now I tried to deploy it to an OpenVZ system which was freshly upgraded from Debian 7 to 8. Now I ...
0
votes
1answer
85 views

Puppet fails on icinga2 using puppet-icinga2 module

I am trying to bring up a box for icinga2 using vagrant and I am using puppet-icinga2 from https://github.com/Icinga/puppet-icinga2/tree/v0.6.2 so I have a role as shown below class role::...
0
votes
1answer
56 views

Puppet relationships with nested functions

I use the official Puppet apt module to add this Java launchpad and to install Oracle Java 8. apt::ppa{ 'ppa:webupd8team/java': } package { "oracle-java8-installer": ensure => '...
1
vote
1answer
101 views

Duplicate host records in Foreman when VM is created by Foreman in OpenStack

I managed to connect Foreman and OpenStack, so that I can create VMs in OpenStack using Foreman web interface. I am using cloud-init, or how Foreman calls it, user data provisioning template in order ...
1
vote
1answer
37 views

Puppet remove log if all goes fine

Is there a way to remove the log file generated Puppet while executing if it returns an exit code of 0 (all ok and no changes applied) or 2 (all ok and some changes applied)? The use case is since I ...
0
votes
1answer
63 views

Invalid resource type in puppet

I am having the following issue: Invalid resource type msql::db at /tmp/vagrant-puppet/manifests-a11d1078b1b1f2e3bdea27312f6ba513/db.pp:6 My manifest (db.pp) is: include mysql::server msql::db ...
1
vote
0answers
55 views

Use puppet to deploy bareos/bacula to server and clients

I'm not sure if this is the right place to ask, but I would really love to use puppet to deploy bareos on my servers. To do this I'm using netmanagers/bareos. I'm using this profile to install bareos ...
0
votes
0answers
46 views

How many nodes does Puppet Open source and Puppet Enterprise Support [duplicate]

How many Client nodes does Puppet Open source and Puppet Enterprise Support I mean How many can we connect to the Puppet Server
2
votes
1answer
62 views

Puppet: Node “default”-content is not pushed to all nodes

maybe I do not understand it correctly: I would like to define some tasks via puppet that are applied on all connected hosts. This is my site.pp: node default { ## Add default user ## user ...
1
vote
2answers
75 views

Puppet: Could not retrieve information from environment production

I followed the video tutorial at https://www.youtube.com/watch?v=Lm6wsc8FjC8 to get a basic example of using puppet to deploy sshd_config to different hosts. This is my "module": ssh_config/ |-- ...
0
votes
1answer
52 views

Can't run puppet with modules on vagrant

I was studing puppet and running the manifests happened without a problem but when I added modules to puppet I run into the following issue: DEBUG ssh: Exit status: 0 INFO interface: info: Running ...
2
votes
2answers
121 views

How do I downgrade puppetdbquery?

I'm getting an error on puppet runs which use puppetdb queries: Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error ...
0
votes
2answers
37 views

More that one Puppet agent stopped connecting to the Master

Puppet Master version 3.7.1 Puppet Agent version 0.25.4 Hi there Guys, I'm still in the beginning stages of using puppet running at lease 10 agents. I have written 20 odd modules and all worked fine. ...
0
votes
3answers
425 views

Puppet error : Could not create master.pid

I've configure puppet server and client, when I run puppet master --verbose --no-daemonize on puppet server, I get following message, Notice: Starting Puppet master version 3.8.4 Error: Could not ...
1
vote
1answer
36 views

Trying to run puppet yield “Error: Could not find class”

Firstly, to be honest I'm pretty new to Puppet world. I'm trying to build a puppet script for my server. here how my puppet structure look like this . |-- environments | `-- example_env | |--...
1
vote
2answers
64 views

Using exec with puppet device management?

I'm trying to use puppet's network device management feature to configure Cisco routers. I know its just running ios commands so how can I extend it by having it run my own ios commands? I want to ...
1
vote
1answer
115 views

What services do I have to restart to effect config changes in puppet.conf when using foreman?

I have puppet 3.8.4 installed via the latest foreman installer. I enabled the $facts['fact_name'] hash by putting these lines in my puppet.conf: trusted_node_data = true trusted_server_facts = true ...
1
vote
1answer
107 views

Load hiera file from specific variable/fact/hiera-value

I'm trying to load a hiera file according to a specific flag. Hiera hierarachy configuration is :hierarchy: - "%{environment}/%{::fqdn}" - "%{environment}/%{nodetype}" - "%{environment}/%{...
1
vote
1answer
46 views

Puppet revokes OpenSSL certificates

I'm experiencing some certification revokations in the puppet master and this behavior seems to be random. I just checked one of the CA certificates and I found this: # openssl crl -text -in /var/...
0
votes
1answer
25 views

Puppet adds domain to the certificates

When as a root I run the following in my puppetmaster server puppet master --verbose --no-daemonize It generates the ssl certificates, but adds a domain to them. Which is the domain of my company (...
0
votes
1answer
361 views

After initial setup cannot sign in to Foreman web console with admin account

Edited post to show how I installed foreman I'm new to ruby and I am trying to install Foreman on CentOS 7. I followed the install guide for my distro to do this: sudo yum -y install epel-release ...
3
votes
1answer
99 views

Why does Puppet (almost) always fail to write to my Gluster filesystem?

I'm using Puppet to manage some files that are shared between servers, by way of the GlusterFS file system. (The specifics shouldn't matter, but in this case things like /etc/httpd/conf.d and /var/www/...
0
votes
1answer
419 views

Why is Hiera not finding the environment, and neither is puppet

Given these files: # find /etc/puppetlabs/code -type f | grep -v modules | xargs head -n 100 ==> /etc/puppetlabs/code/environments/production/hieradata/common.yaml <== pgwatch: password: "...
1
vote
0answers
33 views

Puppet device wildcard names for nodes?

I'm using Puppet's device management to mange some Cisco devices. Right now my device.conf looks like this: [someCity] type cisco url telnet://puppet:123456@10.123.1.1/ [someOtherCity] type cisco ...
2
votes
1answer
43 views

Can r10k use a control repository on the local filesystem?

I'm starting to work with R10k for deploying Puppet environments, but I don't want to put our control repo into GitHub, and I don't have a local GitLab server at the moment. I've tried using the ...
1
vote
0answers
81 views

Puppet enterprise installation Issue in CENTOS

Puppet enterprise Installation issue on CENTOS7(Vmware) While running the monolithic installation i encountered the following issue " "Error: Could not start Service[pe-puppetserver]: Execution of '/...
0
votes
1answer
1k views

Puppet Device unable to get local issuer certificate

I installed puppet 4.3 and centos7 to use Puppet Device to manage Cisco routers. The server hostname is "puppetmaster" (by running hostnamectl puppetmaster) The centos server is running puppet master ...
1
vote
1answer
109 views

Can't run puppet device (Could not request certificate: Could not write to… privatekeydir)

I setup puppet 4.3 on a Centos 7 server. This is a puppet master that is also running puppet agent. I am attempting to setup Puppet Device to configure a router. when I attempt to run puppet device I ...
0
votes
0answers
19 views

Have both local and puppet managed users on linux

We manage users via puppet on our ubuntu servers. So any user not managed via puppet(i.e. created locally) is being removed when the host is being puppetized. Is this the expected behaviour of puppet? ...
0
votes
1answer
162 views

puppet could not evaluate: could not retrieve information from environment

puppet can do exec on node, but cannot transfer file from module. Ubuntu 14.04 server Puppet 3.8.4 Already tried: making file world readable disabling FW creating facter.d in module directory On ...
1
vote
1answer
51 views

// , In Puppet, what is the accepted way to use different Puppet modules in different Puppet environments?

Some people I work with actually give each Puppet environment its own $modulepath, but also have the common $modulepath. Please find an example of this below: [redis] modulepath = /usr/...
1
vote
1answer
53 views

Copy folder and its subfolders from puppet master to agent

I'm trying to copy folder /vagrant/scripts and its sub-folders located on puppet master into the agent. I use the following config in the init.pp: file { '/home/vagrant/scripts': ensure => '...
0
votes
0answers
41 views

How to use theforeman/foreman to bootstrap?

I've used the Foreman installer in the past to get a server up and running, but I'm now trying to do the same thing as a bootstrap I can reliably repeat. There's a PuppetForge module, theforeman/...
5
votes
1answer
40 views

Why do some r10k configuration files start their YAML lines with :?

I'm looking at setting up r10k for Puppet deployment, and I have various example r10k.yaml configuration files, but some seem to use an extra : at the start of many lines, for instance, at http://www....
1
vote
1answer
52 views

Generating basic Nagios configuration with Puppet in the wrong side

I have a little problem when I try to integrate Puppet with Nagios. This is my configuration (I know, it's so simple but it's my first try) /etc/puppet/modules/nagios/manifests/init.pp class nagios:...
0
votes
0answers
229 views

Puppet: Is it possible to remove multiple lines using file_line type?

In past times of the company I work for, someone configured many aliases and exports in /etc/profile. Since then we've implemented Puppet and there's a module which manages the application user ...
0
votes
1answer
129 views

Could not evaluate: Could not retrieve information from environment bootmaster source(s)

Feeling like a complete newbie to puppet (I admit I am very rusty :-) So my manifest/site.pp file contains. file {"/tmp/findme.txt": source => "puppet:///modules/concat/concatfragments.rb" ...
-2
votes
1answer
32 views

puppet variable parsing inside quotes

How can I make the last exec resource parse variables? Currently it is coming out blank inside rc.local file as such: [root@server1 ~]# cat /etc/rc.local #!/bin/sh /usr/sbin/balance -b 127.0.0.1 ...
2
votes
1answer
48 views

How do I deploy a specific revision of my puppet code with r10k?

Using r10k to deploy my puppet code. How do I use it to deploy a specific revision? Specifically, my :base repo. Thanks!
0
votes
1answer
40 views

add nodes to Foreman

I'm completely confused how I can add my servers to Foreman. I've setup a Foreman server, I pointed the /etc/puppet/puppet.conf "server" directive to my Foreman server, and I under "Provisioning=>...
2
votes
0answers
46 views

Can't figure out how to use schedule and tidy resource in puppet

I have puppet code, that I can't manage to get to work: schedule { 'daily_once': period => daily, repeat => 1, } node 'puppet1' { tidy { '/opt/puppetlabs/server/data/...