4,115 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-2
votes
1
answer
61
views
Puppet: "Failed to apply catalog: No such file or directory - docker" when trying to create Docker container after installation (all in one manifest) [closed]
I’ve been trying to create a Puppet manifest that installs Docker and then automatically creates a Docker network and container.
However, I keep running into the following error during the Puppet ...
1
vote
1
answer
82
views
Deferred sensitive value
I am struggling with a sensitive value. I am passing the argument password_hash to define:
define postgresql::server::role (
Boolean $update_password = true,
...
Best practices
0
votes
2
replies
50
views
Open struct abstract data type in Puppet
Theory
A Struct in puppet is closed. That is, it can only contain the key-value-pairs specified in its declaration. The opposite would be an open type that requires the key-value-pairs specified but ...
0
votes
1
answer
56
views
Puppet reports diff on XML file content upon change to only source filename
We are running Puppet v7.20 and use a file resource definition to deploy an XML file to a number of hosts (as below):
file { "${extract_dir}/solr-${version}/server/etc/jetty.xml":
...
0
votes
1
answer
47
views
Array / list in puppet plan cannot be converted to Numeric
We have old puppet master running version 2021.7
I have a list / array in a puppet plan, and I want to join this with another list.
For some reason, this is giving me the following error when running ...
0
votes
1
answer
38
views
Puppet resource collection as a workaround of the defined() function's limitation created by order of catalog compilation
Puppet version 8 manages a laptop that includes profiles such as
include profile::common
...
include profile::git
In the common class, I wish to update users' ~/.bashrc to show the git branch name ...
0
votes
3
answers
159
views
How to configure a cgroup v2 resource controller?
I need to configure a cgroup v2 controller for a pre-existing cgroup, such as cpu.max. How can I do this with puppet?
On the shell, one would do this by writing to the interface file:
echo "...
0
votes
0
answers
48
views
PuppetDB connection errors with RDS Postgres
I'm running Puppet 8 on a EC2 instance, using a RDS Postgres DB to store the reports.
Other details about my setup:
Puppetserver and PuppetDB running on the same EC2 instance (t3a.large);
Postgres 17....
0
votes
0
answers
162
views
Foreman Katello installation fails on dnf command
Topic
I'm in the process of installing a new Foreman(+Katello) server following the online documentation.
Configuration
Component
Version
OS
Alma9
Foreman
3.13
Katello
4.15
Puppet
8
Problem
...
-1
votes
1
answer
43
views
Dependency cylce caused by rescource that takes too long to perform
In Hiera, I have structured my os.yaml like this:
ordered_staged_classes_which_depend_on_each_other:
- epel
- redhat
classes_which_can_be_performed_arbitrary:
- facts
- software
However, I get ...
0
votes
0
answers
150
views
Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call Could not find template 'tomcat/web.xml.el9.erb'
Puppet agent fails with "Could not find template 'tomcat/web.xml.el9.erb'" error.
I am working on a Puppet class that dynamically sets the server for two different projects. Our Puppet setup ...
0
votes
1
answer
154
views
Receiving fqdn fact via manifest on puppet master server not possible
When I try to get the master's fqdn for example via notify {$facts['fqdn'] :}
I will get the error Could not receive catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: ...
0
votes
3
answers
195
views
Puppet remove key/value pairs from hash
In my Hieradata I define a hash of users, like so:
techusers:
user1:
user: 'user1actualname'
key: 'an_ssh_key'
key_type: 'ssh-ed25519'
partner: 'company1'
...
0
votes
1
answer
131
views
Puppet 8: RSpec can't resolve default value declared in params file for another module
Context
We have added an extra unit test job to our CI to test our puppet 6 code on puppet 8 to get a first estimate of how much code refactoring would be involved.
Testing our code on puppet 8 with ...
0
votes
0
answers
62
views
Unable to make correct Reporting Template in Foreman to get a list of modules off of each host
I have searched high and low for a solution to pull my .yaml details out via the Reporting Template function in Foreman. Under Puppet ENC is where my desired information is located.
I have tried ...