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.
279 questions
0
votes
1
answer
303
views
Puppet Error: Could not retrieve catalog from remote server ... Unknown variable: 'operatingsystem'
I am new to puppet and I am trying to understand the following.
In all manifests i see using top scope variables used like $::operatingsystem, $::operatingsystemrelease, $::hostname etc. but when i ...
0
votes
0
answers
138
views
Puppetserver unable to retrieve facts from nodes
When I perform puppet lookup fqdn --node <AGENT-CERT-NAME> --explain, I get the following error: Error: Could not run: No facts available for target node: agent.foo.lan
My puppet agent already ...
0
votes
0
answers
175
views
Unable to autosign certificates for Puppet
I have a new Puppet server set up and am unable to currently get autosigning of certificates to work.
I've followed the setup instructions on https://www.puppet.com/docs/puppet/7/config_file_autosign ...
0
votes
1
answer
250
views
Puppet install: timeout when retrieving certificate
Trying to install the latest puppet enterprise (2023.0.0) per their guide on an Unbuntu 20.04 VM in Azure. I started with the out-of-the-box pe.conf. Install proceeds for awhile until I get some ...
0
votes
2
answers
1k
views
puppet server failing to install on centos 9 stream
I tried installing puppetserver on my centos 9 stream but it gives me the following error:
Last metadata expiration check: 0:15:42 ago on Thu 23 Feb 2023
01:06:09 AM EST. No match for argument: ...
1
vote
1
answer
387
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 ...
0
votes
0
answers
218
views
Command to completely uninstall puppet in the master server
I want to remove puppetmaster from master server including certificate. I am using puppet open source.
0
votes
1
answer
2k
views
How to generate certificates for (secondary) compile puppetserver?
I'm trying to scale puppetserver, in order to have redundancy, using round robin DNS. The secondary puppetserver (version 7.4.0) is configured to use the CA authority from primary puppetserver:
/etc/...
0
votes
1
answer
366
views
Plan lookup: Could not find class
When running a Puppet plan that uses lookup{} function against Hiera I get the error:
The target node: 'computer1.domain.com' errored with a message: Internal Server Error: org.jruby.exceptions....
0
votes
1
answer
605
views
How to configure Zabbix to monitor Puppet Server via JMX?
Zabbix allows monitoring of metrics via JMX.
The Puppet Server provides JMX metrics via jolokia on https://puppetserver:8140/metrics/v2, using its own CA for the certificate.
I have my Puppetserver ...
2
votes
2
answers
4k
views
Puppetserver ca list fails with OpenSSL::X509::StoreError; agent unable to connect
On Puppet 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/...
0
votes
1
answer
140
views
How to manage puppet master and agent connectivity
As it is lab, we can add Ip address of agent to master hosts file.But if I have 1000 agents(partly windows and Linux machines), we can't add each and every agent to hosts file of master.How to manage ...
0
votes
0
answers
38
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
606
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
275
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
321
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
462
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 ...
1
vote
1
answer
6k
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
2
answers
2k
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
1
answer
569
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
0
answers
335
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
2
answers
2k
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
2
answers
326
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
1
answer
749
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
1
answer
1k
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
1
answer
179
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
1
answer
164
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
1
answer
122
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
1
answer
450
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
1
answer
2k
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
1
answer
4k
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
0
answers
523
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
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 {'...
1
vote
1
answer
3k
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
1
answer
149
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
3
answers
1k
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
1
answer
864
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
1
answer
280
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 (...
1
vote
2
answers
598
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 ...
1
vote
2
answers
2k
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
1
answer
6k
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 ...
3
votes
1
answer
15k
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
1
answer
82
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
1
answer
242
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
vote
1
answer
2k
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
1
answer
899
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
2
answers
996
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
2
answers
614
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
0
answers
159
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 ...