Questions tagged [puppet-agent]

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

98 questions
2
votes
1 answer

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, e.g. file { '/etc/systemd/timesyncd.conf': …
2
votes
0 answers

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 "sometimes" fails with "Unable to load 'nokogiri'" error…
Florin Asăvoaie
  • 7,057
  • 23
  • 35
2
votes
1 answer

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/${username}/lib/x86_64-linux-gnu/libdl.so.2": …
2
votes
1 answer

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 running on the nodes: root@node1:/var/log# ps aux…
MyFault
  • 913
  • 3
  • 15
  • 36
2
votes
1 answer

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 and agent. After setting everything up and…
red888
  • 4,183
  • 18
  • 64
  • 111
2
votes
1 answer

Differentiate puppet agent (with master) from puppet apply run?

Is it possible to differentiate a puppet agent run from a puppet apply run? Is there a convenient environment variable or fact to check within my manifests?
ITL
  • 231
  • 3
  • 10
2
votes
1 answer

Multiple agents on one host

Is it possible two run multiple puppet agents with different user rights on one host? I have a server which should be administered by two non related users through puppet. (one user account for the developer and one root account for the server team)
elhombre
  • 435
  • 1
  • 8
  • 18
2
votes
1 answer

Puppet: How does hierarchy work if a role is matched?

I'm trying to understand how does Puppet hierarchy works. My Puppet server's hiera.yaml looks like so: [root@puppet puppet]# cat hiera.yaml :backends: - yaml :yaml: :datadir: '/etc/puppet/hieradata/%{::environment}' :hierarchy: -…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
2
votes
1 answer

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 config_file_version = 2 domains =…
Phil
  • 151
  • 5
1
vote
0 answers

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 the agents once they are launched saying "Could…
1
vote
1 answer

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 to install them with Puppet/Chocolatey. When I…
1
vote
1 answer

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 placed in below and exist for the server root ca,…
morleyc
  • 1,150
  • 13
  • 47
  • 89
1
vote
0 answers

Puppet on Azure to manage non-Azure nodes

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 are sent using the internal Azure network. Now I…
James
  • 123
  • 6
1
vote
2 answers

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. So... let's say I have this simple manifest: node…
James
  • 123
  • 6
1
vote
1 answer

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 installed on the foo.example.com node. node…
wsams
  • 121
  • 6