Questions tagged [puppetmaster]

Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language (Puppet or Ruby DSL). Puppetmaster is the central server for this tool.

Filter by
Sorted by
Tagged with
0
votes
0answers
43 views

Puppet - Set defined types in Nodes.pp

How to overwrite defined type in nodes.pp? I want to able to set custom domain using nodes.pp. Case Default isn't an option. I'm using puppet 6.0. The following method doesn't work. It says Could ...
0
votes
0answers
21 views

Error deleting CSR request through HTTP API Puppet

I can get the CSR information through the API from client curl -X GET \ --tlsv1 \ -H "Accept: application/json" \ --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \ https://$PUPMASTER:...
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 ...
1
vote
1answer
83 views

Puppet - disable a user

I'm taking over an old puppet master, and I need to disable a user. I'm aware of "present", "absent", and "role", and they seem to be the only ones available. I've been searching and honestly can't ...
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
2answers
367 views

How to use custom facts with rspec Puppet

Is there a way I can use a custom fact while using rspec? My module works fine and the custom fact exists and works as intended when I do a puppet run on my agent, but when I try to use the same fact ...
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: ...
1
vote
0answers
35 views

Puppet server - Is it OK to delete files inside /var/lib/pgsql/data/base/?

We have a puppet server running 3.8.7 on RHEL 6.10. It experienced an OOM event this morning then the server recovered without intervention. While looking into this I noticed the server became very ...
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
2answers
70 views

Puppet - how to use different file source

I create configuration in Puppet for Nagios agent (NRPE). Now I'm trying to set different file source depending on existence of dirs.First I check if specific directory exists and then set specific ...
0
votes
0answers
274 views

Puppet installation error

I am trying to install puppet enterprise for the first time, and following this documentation: https://puppet.com/docs/pe/2019.0/installing_pe.html I have downloaded the file and executed it locally ...
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 ...
0
votes
1answer
64 views

Puppet - importing a locally written (non-installed) module's functions

Say I have two locally extant modules that don't exist on Forge or in a custom Forge-like repo. These repos will never be installed via command line as they are part of a bigger deployment that cannot ...
1
vote
1answer
49 views

puppet server puppet apply node definitions remotely from server

i have setup puppet server agent setup. I am using puppet version 4 for both server and agent. I have my node definitions. I can run puppet agent -t to retrieve the node definitions from puppet server....
0
votes
1answer
50 views

puppet syntax multiple node includes different roles

Is it possible to set multiple nodes to includes different roles? Like this node_modules.pp: node 'puppet-appserver.dev' { include role::app_server } node 'puppet-dbserver.dev' { include role::...
0
votes
1answer
229 views

Error on Puppet Enterprise text mode install - pe.conf contains errors

I started puppet enterprise installation on CentOS image and it worked fine with guided install. Now, I am trying with text mode install with similar CentOS image and I get error to check pe.conf file....
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 ...
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 ...
0
votes
0answers
338 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
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 {'...
1
vote
1answer
1k views

Generating and signing certificates in puppet version 5

I am trying to install and configure puppet 5.3.2 on two identical Linux machines running Centos 7 (one being a master and the other being an agent). I have managed to install the puppet from the ...
0
votes
1answer
124 views

Puppet Invalid parameter string on Firewall

Using the Firewall module version 1.9 in puppet 3.8.7, I am getting the following error: Error 400 on SERVER: Invalid parameter string on Firewall Here is my Puppet Firewall rule. firewall { "051 ...
-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 ...
1
vote
1answer
455 views

Connect several puppet masters to one puppetdb

I have installed a puppetdb on one of my puppetmaster and it works. But I'm not able to connect a second one to the puppet master. The command "puppet agent -t" works on my 2nd master. Each master ...
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
2answers
269 views

Unable to pull Puppet Forge modules with r10k

I have what appears to be a functioning r10k setup with respect to publishing branches as environments, but when I run the command to pull modules via sudo /opt/puppetlabs/puppet/bin/r10k deploy ...
0
votes
2answers
552 views

Puppet::Environments::EnvironmentNotFound when folder exists

I have file structures for 2 environments on my puppet master server. Running ls /etc/puppetlabs/code/environments/ on my master server returns two folders beta and production. Yet when I go on my ...
2
votes
1answer
2k views

Puppet assign nodes to environments from master?

I'm learning to use Puppet and have successfully setup and connected a master server with 2 nodes. I've created files for the default production environment which is working. I also have a second set ...
4
votes
1answer
7k views

puppet: Could not evaluate: Could not retrieve information from environment production

I have seen the similar post here, but that does not solve Intent is to copy the bash script on agent node and execute. SLES11SP4-118:~ # cat /etc/puppet/manifests/site.pp node default { include ...
0
votes
1answer
78 views

Manifests apply failing: using same hostnames in two different manifests file

have written the following manifests using tidy resource to delete old war files $ cat /home/kar/cleanwars.pp node 'node-010.example.com' { tidy { '/home/kar/temp/': path=> '/...
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 =>...
0
votes
1answer
729 views

Puppet master with different hostname/fqdn

I'm trying to use a puppetmaster for servers being both on an LAN and outside of a LAN. Here's the setup : I have 3 servers behind a router and a VM on Google Cloud. The puppet agents connect to the ...
1
vote
1answer
657 views

how to apply fstab setting in puppet

I am learning puppet, and I was supposed to enact this security measure on mount point /tmp: /tmp /var/tmp none rw,noexec,nosuid,nodev,bind 0 0 I looked at fstab, and I see this: /tmp /var/tmp none ...
0
votes
2answers
678 views

Puppet/hiera : generate sereval files from one template

I'm running puppet 4 and I would like to generate several config files from the same template with different configurations for each one. for example : # cat /tmp/a.conf test1 # cat /tmp/b.conf ...
1
vote
2answers
409 views

r10k on CEntOS 6.7, has anyone achieved this feat?

Do you guys know how one might run r10k properly on a CEntOS 6.7 server with Puppet 3.6? Is that a contradiction in terms? I checked the r10k source code's list of requirements: https://github.com/...
0
votes
0answers
121 views

How do I add third party puppet modules without committing them to source control?

tl;dr: How do I manage modules for a Puppet Master, like I do using requirements.txt for Python or using Bower for JavaScript? Here's an example. Say I want to install the puppetlabs/firewall ...
0
votes
1answer
262 views

foreman puppet manage 100's of servers without logging in each device

I want to know is there a way to manage hundreds of servers in foreman. Let's say I have 100 machines. In each machine, OS is already installed and ssh is accessible. Now I want to install a ...
1
vote
0answers
185 views

Puppet Server Scaling CA

With Puppet 3.x it was possible to split out the CA into a seperate server and then have each of the other Puppet masters proxy certificate requests to the CA. Is this approach still possible with ...
1
vote
2answers
931 views

Puppet 4 - get a list of all the slaves connected

How can I get a list of all the slaves that connect to the puppet master in Puppet 4? I used to be able to get a look at the /var/lib/puppet/reports folder but with Puppet 4; I'm unable to find it ...
3
votes
2answers
5k views

How do you use a variable in a Puppet Manifest?

I am using the WSUS Module with Puppet Master on Centos 7.2. My Puppet Agent servers are running Windows Server 2012. I want to use a manifest with a variable. However, when the Puppet Agent server ...
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 = /...
1
vote
1answer
394 views

File Copy failing using Puppet File resource

I am trying to copy files using file resource . My code is as follows: node 'Node-002' { file { "/root/helloworld.txt": ensure => file, owner => "root", group => "root", mode => "...
0
votes
1answer
43 views

Migrating Puppet Code to Puppet 4: Issue with Classes

We are migrating our Puppet Code from 3.5.7 to 4.5.2 While applying manifests I am getting following error Error: Failed to apply catalog: Parameter unless failed on Exec[sh /home/agile/...
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: ...
2
votes
2answers
3k views

How to identify which Puppet master was used in an agent run?

I'm currently running multiple load-balanced masters and need to debug some differences between them. Is there a good way to include the hostname or some other ID of the puppet master in the agent ...
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 ...

1
2 3 4 5 6