Questions tagged [puppet-agent]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

How to sign an agent certificate in puppet?

I am using puppet 7.15.0 and when I try to puppet agent -vt, I get the below meesage: Couldn't fetch certificate from CA server; you might still need to sign this agent's certificate (my-vm....
user avatar
1 vote
1 answer
45 views

Puppet manifest configuration for docker image verification

I’m quite new to devops/ci/cd, so bear with me. Currently, I’m getting a puppet manifest configuration set up for docker image verification. Let me try to layout it out: I have a puppet master server ...
user avatar
2 votes
1 answer
103 views

How to set value of ipa_hostname directive in sssd.conf using Augeas

Using Puppet versions Master: puppetserver 6.7 Client: puppet-agent 6.10 I have other Augeas code in other modules that works just fine. Example sssd.conf [sssd] services = nss, sudo, pam, ssh ...
user avatar
  • 51
0 votes
1 answer
191 views

Puppet - can I selectively notify a Service?

I have a Puppet script that handles things differently in different environments based on an if/else block. But I have a bunch of common file resource blocks at the bottom that apply to all ...
user avatar
1 vote
0 answers
97 views

Issue installing puppet agent on Windows Servers

I'm trying to setup a Puppet dev environment in my datacenter. I've configured the Puppet Master on Cent0S 7 along with two agents, also running RH CentOS 7. The Puppet version I am running on the ...
user avatar
  • 11
1 vote
1 answer
985 views

puppet agent not able to connect to master

on master: puppetserver ca list Traceback (most recent call last): 9: from /opt/puppetlabs/server/apps/puppetserver/cli/apps/ca:5:in '<main>' 8: from /opt/puppetlabs/puppet/lib/ruby/vendor_gems/...
user avatar
0 votes
1 answer
82 views

Install openldap server wth puppet - Error: Could not prefetch openldap_database provider 'olc': Command original_slapcat is missing

i am trying to install openldap server with Puppet Version 5.5.20. For the openldap installation i use camptocamp/openldap module v 2.0.0. I try it first with minimal configuration. My puppet ...
user avatar
0 votes
0 answers
31 views

How to implement puppet proxys for nodes on different network location

we are using puppet but we have some problems with different nodes on different networks, I would like to know if we can use some kind of proxys/satellites in order to connect the nodes from different ...
user avatar
0 votes
1 answer
343 views

Issues connecting puppet agent to master

Trying to build an infrastructure based on the most recent puppet/agents available for testing purposes. So I've been trying to run puppet agent on a node, and I'm currently getting the errors bellow,...
user avatar
1 vote
0 answers
224 views

Puppet master wont allow sign puppet agent certificate request, saying "Could not resolve x.x.x.x: no name for x.x.x.x

I have a puppet-master puppet agent setup in AWS VPC. The system has been running for the last 2 years without too many issues, but today the master will not accept a certificate request from any of ...
user avatar
1 vote
1 answer
264 views

How to Install Visual Studio 2017-2019 with puppet/chocolatey

I have use Puppet/Chocolatey to configure visual studio 2010-2015. The last release of VS 2017-2019 has change a bit because of the new online installer method and I am still searching for a solution ...
user avatar
1 vote
1 answer
3k views

Puppet Windows Agent unable to connect - certificate verify failed: unable to get issuer certificate for /CN=Puppet

I have installed puppet server and the agent, accept the intial agent request with sudo /opt/puppetlabs/bin/puppetserver ca sign --certname mywindowshost on the server. I can see the certificates are ...
user avatar
  • 1,120
1 vote
0 answers
20 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 ...
user avatar
  • 123
0 votes
1 answer
348 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: ...
user avatar
0 votes
1 answer
369 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 ...
user avatar
2 votes
2 answers
501 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 ...
user avatar
2 votes
1 answer
809 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 ...
user avatar
1 vote
2 answers
640 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. ...
user avatar
  • 123
0 votes
1 answer
687 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 ...
user avatar
1 vote
1 answer
708 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 ...
user avatar
  • 121
1 vote
1 answer
533 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 ...
user avatar
  • 613
0 votes
1 answer
3k 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 ...
user avatar
2 votes
1 answer
233 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....
user avatar
0 votes
0 answers
420 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 ...
user avatar
  • 141
0 votes
1 answer
143 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' ...
user avatar
0 votes
1 answer
872 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 {'...
user avatar
2 votes
1 answer
1k 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, ...
user avatar
1 vote
1 answer
619 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'...
user avatar
  • 145
-1 votes
3 answers
831 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 ...
user avatar
  • 9
0 votes
1 answer
421 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 ...
user avatar
  • 1
1 vote
1 answer
220 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 (...
user avatar
  • 111
0 votes
1 answer
209 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 ...
user avatar
0 votes
1 answer
193 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 =>...
user avatar
-1 votes
1 answer
551 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 ...
user avatar
1 vote
2 answers
620 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 ...
user avatar
  • 67
1 vote
1 answer
2k 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 2,488
0 votes
1 answer
6k 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 = /...
user avatar
2 votes
0 answers
225 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 "...
user avatar
0 votes
1 answer
61 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: ...
user avatar
  • 433
1 vote
2 answers
1k 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 ...
user avatar
  • 433
4 votes
2 answers
629 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. ...
user avatar
  • 1,860
1 vote
1 answer
438 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 ...
user avatar
  • 433
0 votes
0 answers
676 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 ...
user avatar
  • 1
-2 votes
1 answer
3k 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.
user avatar
2 votes
1 answer
1k 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/${...
user avatar
0 votes
1 answer
2k 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-...
user avatar
2 votes
1 answer
497 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 ...
user avatar
  • 893
0 votes
1 answer
1k 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 ...
user avatar
  • 125
1 vote
0 answers
94 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....
user avatar
  • 893