Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [puppet-agent]

Required to run puppetcode on a host from a Puppetmaster or master-less (puppet apply)

1
vote
0answers
15 views

Puppet on Azure to manage non-Azure nodes [duplicate]

I have installed a Puppet Server on Azure and is currently managing a number of Puppet Agents on Azure as well. I am using the internal azure fqdn - this means that all manifests and tasks processes ...
0
votes
0answers
23 views

Installing FreeIPA with Puppet unmanaged failing

Currently, I'm trying to use a Puppet module to install the FreeIPA client, and I'm getting an error with it. I resolved the errors I had about the class structure, and right now my class is as ...
0
votes
1answer
18 views

Workaround to no `puppet module generate`?

Is there a way to continue using puppet module generate? I'm using Puppet version 4.10 and earlier I was able to make one without issue, but today when I tried to make one I got the following error: ...
0
votes
1answer
27 views

How to get the Zabbix Puppet module to work with SELinux

I'm writing a Puppet module to install Zabbix onto a Puppet agent. Everything is working as intended, but SELinux isn't playing nicely with Zabbix. I'm getting the following error from SELinux in the ...
1
vote
1answer
29 views

How to detect NVIDIA GPU with Puppet

I have some tasks I only want to run on machines that have NVIDIA GPUs. Is there a good way with Puppet to be able to determine if a specific agent has an NVIDIA GPU or not? I'm able to do it in bash ...
1
vote
1answer
17 views

How can I store the output of a Linux command in a Puppet file?

I want to create a new file on a specific Puppet agent and store the output of a Linux command to the file. Is there an easy way to do this with the content attribute? The command I want to run is ...
1
vote
2answers
23 views

Puppet: Run in noop mode except for the first time

I am trying to figure out how to run a Puppet configuration on a newly bootstrapped node, and then, from then onwards, only run as noop in order to collect reports on infrastructure changes / drifts. ...
0
votes
1answer
35 views

Puppet 6: PuppetDB won't start because of clojure/java errors

I've searched far and wide, and I just simply can't get it to work. I've searched everything I could find which contained "puppetdb", but without success. I have followed the documentation, and I ...
0
votes
0answers
23 views

Puppet agent could not use the latest version of epp template

I am using r10k to manage my puppet code base. All worked fine, but the epp template file updating. I have modified a template file and deployed it with r10k, and doubled checked the puppet server to ...
1
vote
1answer
144 views

Puppet caching resources

I'm trying to debug a caching issue with Puppet on RedHat 7. My versions are at the bottom of this question. Below is an excerpt from my site.pp manifest. This is all fine and the Nagios check is ...
1
vote
1answer
130 views

Puppet not passing parameter to custom module

So I have a custom module that just sets up a simple nginx server, to learn how to properly make puppet modules. But it seems that my values when I declare the class aren't getting passed in. It ...
0
votes
1answer
532 views

Puppet Master Could not request certificate Permission Denied

I have been all over the internet and tried different fixes to which none have worked. Issue: When setting up a new agent to connect to the Puppet Master I run: sudo /opt/puppetlabs/bin/puppet ...
2
votes
1answer
91 views

Windows Puppet Agent - Package Manifest - Extra Slashes

I'm attempting to use Puppet to install an application that requires parameters to be passed to the underlying MSI is a specific way. Example: package { 'Vendor Application': ensure => '8.4.12....
0
votes
0answers
159 views

Puppet Master not pulling changes to agents

I have added following code in site.pp node default { file {'/etc/motd': ensure => present, content => "Motd Updated.\n", } } But when running following command in one agent it is not updating ...
0
votes
1answer
65 views

Puppet apache module removes symlink of documentroot

My documentroot is a symlink. When puppet agent runs, the symlink gets removed. Any ideas? My code: 'qsu.mydomain.de:443': ssl: true port: 443 ssl_key: '/etc/apache2/ssl/qsu.mydomain2.de.key' ...
0
votes
1answer
277 views

Puppet file resource not resolving the source attribute

I have started to play with puppet 5 and for some reason the source attribute in the puppet file resource is not working. I have a simple manifest file in my puppet server which is as follows: file {'...
2
votes
1answer
289 views

Puppet can't find file of module

I have spun up a puppet server (5.0.0) using the docker-compose example and successfully brought up six clients (using the debian-provided puppet agent). While I can provide files with raw content, ...
1
vote
1answer
304 views

Missing Puppet provider for types group and user

I installed Puppet 5 on an CentOS 7 machine from https://yum.puppet.com/puppet/. The installation was successful and I can run puppet apply for a simple manifest like this one: file {'/tmp/example-ip'...
-1
votes
3answers
407 views

Disable Puppet automatic scheduled runs

Is it possible to disable puppet runs (every 30 minutes) but it should be still listening? I'm setting up puppetkick or mcollective. So the agents should be still running and listening so I can push ...
0
votes
1answer
331 views

Ubuntu 16.04 preseed and puppet code during kickstart

I have created a preseed based automated installation system incl. a kickstart. This is working so far fine - either on vm or on usb on nuc or servers. My main issue now is that i am not able to run ...
1
vote
1answer
89 views

puppet saz/sudo module implmentation

I'm trying to deploy the saz/sudo module to manage our sudo configs (I'm pretty new to puppet (~3days), so please excuse my potential ignorance). Our current sudo config all contained in a single (...
0
votes
1answer
139 views

Is /etc/puppetlabs/puppet/puppet.conf on Puppet4 equivilent to /etc/puppet/puppet.conf

I often see tutorials and instructions referencing puppet.conf at /etc/puppet/puppet.conf. I don't have this file but I do have /etc/puppetlabs/puppet/puppet.conf on my computers with Puppet 4 ...
0
votes
1answer
87 views

Sending more than a file to a puppet client

How I must configure a "init.pp" file for sending more than a file in the same class? What I have done is this: class nagios { file { ['/usr/lib64/nagios/plugins/']: path =>...
-1
votes
1answer
88 views

Puppet client not pulling changes automatically

I have a computer that has the puppet client configured, enabled, and running, but it's not pulling changes from the master on its own. If I do a puppet agent -t it pulls the changes just fine. Which ...
1
vote
2answers
467 views

How do I configure a Windows server to be a Puppet Agent server?

How do I configure a Windows server to be a Puppet Agent server? I am running Puppet Enterprise 4.x on CentOS 7 and Puppet Agent 3.7.4 on Windows Server 2012. I am trying to set this up for the ...
1
vote
1answer
659 views

Puppet overwrites symlinked directory

I am using Puppet to manage the configurations of some servers. One of the tasks is to create a specific folder structure under /www for hosting our applications. But lately, we've had this server ...
0
votes
1answer
437 views

Problems with Puppet module only including a subclass, which seems to be doing an implicit inclusion of the parent class

I'm having trouble figuring out how Puppet does inheritence and auto-inclusion of modules. I have a Puppet class that works as expect when I test it "locally" but fails when I push it to my nodes via ...
0
votes
1answer
2k views

Puppet agent run errors with `Could not run stack level too deep`

I have configured Puppet Server to use an external CA, and generated the necessary keys. My puppet.conf looks like the following: [master] vardir = /opt/puppetlabs/server/data/puppetserver logdir = /...
2
votes
0answers
183 views

Custom gems in Puppet Provider

I am running Puppet 3.7 and I have the following issue: Installed the nokogiri gem on the agents with pe_gem. Wrote a custom provider that does require 'nokogiri' at the top. The Puppet run "...
0
votes
1answer
41 views

Puppet failed to copy exec catalog

Seeing the following error in Puppet 4 # /opt/puppetlabs/bin/puppet agent --verbose --no-daemonize --onetime Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: ...
1
vote
2answers
763 views

Migrating to Puppet 4.5.2

We are migrating to later versions of puppet. New Version: # puppet --version 4.5.2 Existing Version: #puppet-3.8.7 Our existing site.pp is as follows: #A default site.pp to do a quick test run ...
4
votes
2answers
343 views

r10k: proper merging workflow with git

I am currently running Puppet with in masterless mode. I am using r10k for module and environment deployment. Simplified version: The r10k control repository has two branches: testing and production. ...
1
vote
1answer
307 views

Different manifest location on Puppet Server/Agent

My Puppet Server Environment setting is as follows [master] vardir = /opt/puppetlabs/server/data/puppetserver logdir = /data/log/puppetlabs/puppetserver rundir = /var/run/puppetlabs/puppetserver ...
0
votes
0answers
447 views

Notify value of variable that holds a nested fact - Puppet4

I am trying to understand what the difference is between the following: $major_release = $::facts['os']['release']['major'] $selinux_is_enabled = $::facts['os']['selinux']['enabled'] If I put in my ...
-2
votes
1answer
2k views

I want to reboot the system using puppet by using reboot resource but it is throwing error like “Invalid resource type: Reboot”?."

I want to reboot the system using puppet by using reboot resource but it is throwing error like "Invalid resource type: Reboot"?. Is there any need modules that I need to install??. please help me.
2
votes
1answer
550 views

Puppet changing source file permissions

I'm setting up jail shells using puppet to maintain a copy of the required libraries within the jails. Using the following puppet code I can successfully copy the files across: file { "/home/${...
0
votes
1answer
1k views

Message from application: cannot load such file — puppet/util/command_line (LoadError)

I have configured puppet with passenger (using - https://docs.puppet.com/guides/passenger.html AND http://www.olindata.com/blog/2014/09/setup-puppet-master-passenger-and-apache-centos ). [root@a-...
2
votes
1answer
241 views

Puppet/Foreman: Nodes are out of sync

I got a little problem: I installed puppet agent on some nodes. I'm managing the nodes with foreman. Now some nodes are "out of sync" until I run puppet agent -t on the node manually. The service is ...
0
votes
1answer
471 views

Recurring Ansible Tasks

I've been familiarizing myself with Ansible and Puppet for use as a provisioning and configuration management tool. I may not be misunderstanding something about the way Anisble is used, but the only ...
1
vote
0answers
76 views

Puppet: Client is not connected to master - cert sign request does not appear

at the moment I'm having trouble with a new host that should be connected to the puppet-master. The cert-sign request does not appear: [root@puppet sudoers.d]# puppet cert list [root@puppet sudoers....
0
votes
1answer
399 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
296 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
2answers
65 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
4k 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
631 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
134 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 ...
3
votes
1answer
2k 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 ...
2
votes
1answer
7k 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 ...
3
votes
1answer
668 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 ...
2
votes
1answer
7k 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 => '...