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
0answers
44 views

PuppetLabs postgresql module error: parameter 'path' expects a Resource value, got String

I'm running a Vagrant box elastic/centos-7-x86_64 with provisioning set up to install puppetlabs-firewall and puppetlabs-postgresql modules, then process manifest which is setting up postgresql 10 ...
0
votes
0answers
25 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
1answer
38 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
0answers
105 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 ...
0
votes
1answer
138 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 ...
0
votes
1answer
844 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
0answers
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
1answer
167 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
148 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
200 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
211 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
118 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
267 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
1answer
169 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
327 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
1k 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
145 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
337 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
91 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
518 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
600 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
483 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
606 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
404 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
166 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
176 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
135 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
195 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
560 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
1k 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
683 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
4k 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
206 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
51 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
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
2answers
475 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
395 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
583 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
713 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
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-...
2
votes
1answer
370 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
671 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
87 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
440 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
323 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
93 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
5k 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
833 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
153 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 ...