Questions tagged [puppet-agent]
Required to run puppetcode on a host from a Puppetmaster or master-less (puppet apply)
96
questions
0
votes
0
answers
9
views
How to read the central Puppet Configurations in the Dockerfile
Currently, I am working on a project we are trying to containerize our application. As our current VMs build scripts are pulling the environment and application-related parameters via puppet file ...
0
votes
0
answers
215
views
Puppet server on an puppet agent CRL error
After installing puppet server on a puppet agent, I keep getting this error on the next puppet run.
Error: The CRL issued by 'CN=Puppet CA: puppet.aws.domain.com' is missing
Error: The CRL issued by '...
1
vote
1
answer
525
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....
1
vote
1
answer
180
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 ...
2
votes
1
answer
184
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
...
0
votes
1
answer
867
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 ...
1
vote
0
answers
129
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 ...
1
vote
1
answer
2k
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/...
0
votes
1
answer
122
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 ...
0
votes
0
answers
33
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 ...
0
votes
1
answer
485
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,...
1
vote
0
answers
240
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 ...
1
vote
1
answer
293
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 ...
1
vote
1
answer
4k
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 ...
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 ...
0
votes
1
answer
466
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
1
answer
465
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 ...
2
votes
2
answers
605
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 ...
2
votes
1
answer
1k
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
2
answers
988
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
1
answer
810
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 ...
1
vote
1
answer
1k
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
1
answer
588
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
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 ...
3
votes
1
answer
281
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
0
answers
493
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
1
answer
163
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
1
answer
1k
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
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, ...
1
vote
1
answer
682
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
3
answers
938
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
1
answer
424
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
1
answer
230
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
1
answer
213
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
1
answer
206
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
1
answer
785
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
2
answers
644
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
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 ...
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 ...
0
votes
1
answer
8k
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
0
answers
231
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
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: ...
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
...
4
votes
2
answers
655
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
1
answer
492
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
0
answers
727
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
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.
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/${...
0
votes
1
answer
3k
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
1
answer
545
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 ...