Questions tagged [puppet]

Puppet is a ruby-based Configuration Management system incorporating a model-driven DSL. Its purpose is to provide configuration file enforcement, service state monitoring, package installation and other server-side management.

Filter by
Sorted by
Tagged with
0 votes
2 answers
48 views

Hiera - break results into line items

I'm using puppet 3.6.2 and trying to use data out of hiera for a windows patching solution. I'm on a disconnect network and cannot use WSUS. I have a file patches.yml, which looks like this: windows::...
cstewart28's user avatar
0 votes
0 answers
20 views

Puppet lookup fails with expects a Stdlib::Port = Integer[0, 65535] value, got String

I have a parameter of type Stdlib::Port which I would like to set via the lookup function in my yaml-file. manifest: class module1( Integer $logging_filesize, Optional[Stdlib::Port] $server_port, )...
bluesonic's user avatar
3 votes
1 answer
47 views

Puppet: (Server 8) Using binary data in stored in hiera results in "Error 500 on SERVER"

Our site is migrating from puppet6 to puppet8, and we've encountered an issue with storing binary data in hiera. The original (binary) data file was encrypted with eyaml: $ eyaml encrypt -f binary....
greg's user avatar
  • 544
0 votes
0 answers
22 views

Puppets "concat::fragment" in Ansible / Create file with defined order

I'm currently tasked with translating our pre-existing Puppet scripts to Ansible. So far work has been going slow but steady. Now I've come across Puppets "concat::fragment", which (if I don'...
dyXur's user avatar
  • 5
0 votes
1 answer
42 views

letsencrypt certonly does not seem to run in yaml

I am looking for some advice / help with an issue I am facing in yaml. But it is also puppet related. I am using a control-repo for my puppet configuration. I am hosting a site of one of my puppet ...
Callum McCrorie's user avatar
0 votes
1 answer
64 views

puppet-agent install not available from repo's on Debian Bullseye

When I follow the instructions on Puppet docs and the readme at https://apt.puppet.com/, I download the correct deb package for my platform, install it with dkpg as per the instructions and it ...
phd68lnx's user avatar
0 votes
0 answers
29 views

Puppet idempotency with rclone sync

I am trying to modify some existing Puppet code that uses rclone sync to fetch files from an S3 bucket. The issue I'm running into is this is not exactly idempotent. From my understanding of how the ...
ARTE's user avatar
  • 1
1 vote
1 answer
52 views

Relationships and ordering in Puppet with roles and profiles

I've searched around and even asked some LLMs but I can't make sense of it. We have an environment that implements the roles and profiles architecture. data/ global.yaml environments/ production/...
SK4ndal's user avatar
  • 49
0 votes
1 answer
26 views

Puppet module generate - the action of generate does not exist in puppet module command

Puppet version 7.26 (Open sourece) CentOS Linux release 7.9.2009 (Core) I cannot create my own module by command: puppet module generate <module_name> Get error as below: [![enter image ...
tzhao5's user avatar
  • 23
1 vote
0 answers
35 views

puppetlabs_spec_helper/rake_tasks - validate task - skip validation of specific file

I have a Puppet module which I'm setting up overall tests. I'm using puppetlabs_spec_helper/rake_tasks to get a sane task list, and defined a default task in my Rakefile: require '...
Emerson Prado's user avatar
0 votes
1 answer
31 views

Rspec-Puppet - how to test metaparameter 'require' of a resource in a Puppet class or defined type?

When I have a Puppet class which declares a resource with metaparameter 'require', how do I test this resource and the metaparameter in the spec test? Excerpt of class showing resource declaration $...
Emerson Prado's user avatar
-1 votes
1 answer
40 views

Puppet user manifest does any effect on puppetclient

On VirtualBox I have 2 servers: 1)hostname: puppetmaster 192.168.100.8 2)hostname: pupetclient 192.168.100.9 on both servers puppet is running I used docu from ubuntu to install it: https://ubuntu.com/...
user1666649's user avatar
0 votes
0 answers
30 views

Could not set 'file' on ensure: No such file or directory @ rb_sysopen - /etc/letsencrypt/live/test.domain.com/cert.pem

I am hoping that someone will be able to provide some help on this issue that I am facing. I am working with a server that has two VM's on it. I have Puppet Master on one with my control repository. ...
Callum McCrorie's user avatar
0 votes
1 answer
37 views

Puppet lookup() with period inside Hiera variable name

I'm looping a list of users from Hiera like: users - bob.joe - jill.dill and using the lookup() function to find their pub key I have stored in Hiera like: sshkey::bob.joe: 'ssh-rsa ...' sshkey::...
John Sanchirico's user avatar
0 votes
0 answers
45 views

Input too large for RSA cipher

I am using two Virtual Machines sat on a single server. One VM is my Puppet Master(puppet server) and the other is my Puppet Agent. I am using PCKS7 RSA encryption to pass a secret token to my Puppet ...
Callum McCrorie's user avatar
0 votes
0 answers
64 views

Puppet Error 500 on Server. Could not find terminus puppetdb for indirection facts

I am working with Puppet version 7.25.0, I have a puppet master running ubuntu 20.04 and a puppet agent running ubuntu 22.04. I am using a control repository with r10k. I am receiving the following ...
Callum McCrorie's user avatar
0 votes
1 answer
96 views

Can't set a bash variable using exec command in Puppet

I'm trying to set the result of a bash command in a variable using the exec command in Puppet : exec { 'test': command => "test=$(pwd)", path => [ '/bin/', '/sbin/' , '/usr/...
Christian Michael Tan's user avatar
0 votes
1 answer
30 views

Puppet grouping values of all keys from nested structs

I am struggeling with puppet not being able to overwrite variables. I have a class a struct as input parameter, which looks like this: Hash[ String, Struct[ { owner_password ...
SK4ndal's user avatar
  • 49
0 votes
0 answers
173 views

Puppet removes cache/libs on the agent. Next run it through: "Error: Failed to apply catalog: Resource type 'Concat_file' was not found"

Spec: Server: Puppet Server: 7.9.2 (pupperware docker compose) a lot of custom modules Agent: OS: CentOS7 Puppet Agent: 7.25.0 Problem: When I run puppet agent --test on the target host first ...
Maxim Maximov's user avatar
0 votes
2 answers
27 views

Rename local user group on Debian/Ubuntu with Puppet

Via Samba with idmap_rid, users and groups from LDAP are available on the Ubuntu systems. However, a collision occurs for the user group name staff with Debian/Ubuntu's own local user group staff (GID:...
phanaz's user avatar
  • 1,243
0 votes
1 answer
55 views

Get value of encrypted data from hiera-eyaml into puppet template

Puppet 7 I have a template: [nondefault] aws_secret_access_key = <%= scope().call_function('lookup', ['profile::aws::app_environment::secret_key']) %> aws_access_key_id = <%= scope()....
Simply  Seth's user avatar
  • 3,306
0 votes
1 answer
55 views

Encrypting a value in Hiera/Puppet

I have a question about encrypting a value in Hiera/Puppet that I am hoping that someone would be able to help me with it. The command that I am trying to run is: /opt/puppetlabs/puppet/bin/eyaml ...
Callum McCrorie's user avatar
0 votes
0 answers
10 views

Foreman run puppet button

I want to ask how I can get Run Puppet button. I know its probably stupid question but I cant find any information about it and looks like averyone have that button imedietli out of the box. (puppet ...
gertz's user avatar
  • 65
0 votes
1 answer
78 views

puppet applly and deferred functions: Error: Unknown function 'mymodule::myupcase'

I'm following this puppet doc to test Deferred functions, below I replicate the steps. start creating the required directory strucutre and running some Puppet Develpment Kit (pdk) commands: cd ~/dev/...
Giuliani Sanches's user avatar
0 votes
0 answers
49 views

Error in Puppet agent execution while ierating in a template

Here an extract of the parameter section of my manifest: Array $secretsproperties_diffusion_siteweb_ftp_keys = ['eliasseAN','eliasseAN.server2'], Hash $eloi_eliasse = {'eliasseAN' => ['...
Alexis Dufrenoy's user avatar
0 votes
1 answer
21 views

puppet apply. error: cannot generate tempfile `/tmp/puppet...'

One one of the servers with Centos I am getting error with puppet apply: puppet apply \ --verbose \ --modulepath=modules \ --node_terminus=exec \ --external_nodes=$PWD/modules/puppet/files/hostinfo/...
Maxim Maximov's user avatar
0 votes
0 answers
62 views

How to connect to SQLite3 database in JRuby?

I am trying to connect to an SQLite3 database in Puppet 7. I used the same functionality in Puppet 5, but now I need to use JRuby jdbc-sqlite3-3.28.0. require 'jdbc/sqlite3' Jdbc::SQLite3.load_driver ...
Maxim Maximov's user avatar
0 votes
0 answers
66 views

Trying to resolve this and unable to

rror 503 on SERVER: Attempt to borrow a JRuby instance from the pool timed out; Puppet Server is temporarily overloaded. If you get this error repeatedly, your server might be misconfigured or trying ...
Ranjith RK's user avatar
0 votes
1 answer
15 views

Create new array from hiera_hash, but avoid nested data

I have a hiera_hash that looks like this: signalfx_custom_receivers: smartagent/http1: type: http host: "es.mydomain.tv" useHTTPS: true smartagent/http2: type: http ...
neilH's user avatar
  • 3,350
0 votes
1 answer
45 views

Puppet manifests class structure

When I was learning Puppet, I read somewhere that if you have subfolders or subdirectories within your Puppet module manifest folder, there should be an accompanying class file with the same name as ...
waitillogical's user avatar
0 votes
1 answer
177 views

puppetserver gem install adds gem but it's not available for custom functions in the puppet code

I have simple setup: CentOS7 and Puppet7 running on it. Server is up and running. I installed activerecord-jdbcsqlite3-adapter adapter for my custom function. This is what I can see on the server with ...
Maxim Maximov's user avatar
0 votes
1 answer
133 views

puppetserver 7.11 is crashing after installing activerecord-jdbc-adapter gem

I have a test puppetserver 7.11 in the running status. I want to write custom function with active_record and sqlite3 interface to pull data from the database for catalog generation. When i install ...
Maxim Maximov's user avatar
0 votes
1 answer
85 views

How to make port 8140 TLS 1.2 compliant in puppet 4?

I have a puppet server and i am trying to make port 8140 compliant for puppet 4. When i run nmap -sV --script ssl-enum-ciphers -p 8140 <puppet-server> I get the following : PORT STATE ...
Somethingwhatever's user avatar
0 votes
0 answers
27 views

Is it possible to use the same PuppetDB from different Puppet Master versions?

I am in the middle of migrating a complex Puppet 5 managed infrastructure to Puppet 7. As this is not possible in one rush, we prepared a new Puppet 7 master and tested code. The caveat is that due to ...
leitmedium's user avatar
0 votes
2 answers
98 views

iterate or loop through class parameters

Is there a way with puppet code to use looping constructs to iterate or loop through class parameters. Assuming i have a class named "test" I can utilize specific variables using what "...
Jason Lang's user avatar
0 votes
1 answer
46 views

Is it possible to install the stdlib module then use a resource provided by the same module within the same puppet manifest file

This puppet manifest file searches and replaces the ULIMIT to a value of 3000 The file_line resource is available in the stdlib class and depends on the exec exec { 'install_puppetlabs_stdlib': ...
Titus Cheserem's user avatar
0 votes
1 answer
90 views

Puppet Hiera Variables - Accessing Hash within Hash

I have a Puppet class which uses this format to create a variable for a deep merge later. $config = { 'foo' => { 'fvar1' => 'fvar1-string', 'fvar2' => 'fvar2-string',...
JG7's user avatar
  • 371
0 votes
0 answers
105 views

Error: Could not retrieve catalog from remote server: Error 400 on SERVER

I think recently while doing SH1 SH2 Certificate migration we received the below error for a few VMs from one of our Environments, Attaching the error below can Anyone help me with this catalog from ...
Mr FAZIL's user avatar
0 votes
1 answer
53 views

Error when using Concat and Nginx Modules

I'm currently getting the following error when trying to use the Concat and Nginx modules provided by Puppet with my project: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: ...
Joseph Quinn's user avatar
1 vote
2 answers
140 views

Puppet templates in templates and variable scopes

I've got a puppet 6.28 ERB template in a class that takes an array of hashes and iterates over it. Within each iteration it uses values from the hash and sets its own variables. Variables that come ...
Mike Williams's user avatar
1 vote
1 answer
70 views

puppet does not conform to the naming rule

This is the piece of the puppet script i am not able to understand why this error is happening. can any one please help with this. if $facts['hostname'] =~ /^acmetest[0-9][0-9][0-9]+/ { exec ...
Hare Krshn's user avatar
0 votes
0 answers
570 views

Why is my puppet agent failing to get a certificate from the puppet server?

When I run the following command from the puppet agent: puppetssl bootstrap I get the following output: Info: csr_attributes file loading from /home/mkhan244/.puppetlabs/etc/puppet/csr_attributes.yaml ...
Pastor Munashe Zimondi's user avatar
0 votes
0 answers
560 views

The command puppet cert list is giving an error

When I type the command puppert cert list it gives me the following error: Error: Unknown Puppet subcommand 'cert' See 'puppet help' for help on available puppet subcommands I'm using puppet version 7....
Pastor Munashe Zimondi's user avatar
0 votes
0 answers
137 views

Splunk UF restart getting timedout using puppet code

I am getting a timedout error while executing /opt/splunkforwarder/bin/splunk restart command using puppet exec class splunkforwarder::config( $deployment_server = 'xxxxxx', ) inherits ...
learner's user avatar
0 votes
2 answers
142 views

How to iterate through a hash made of two arrays in Puppet and use both key and value in a module .pp file

I'm new to Puppet ruby coding and I'm struggling trying to iterate through a hash so I can use both key and value in a .pp file in the module to create directories. So far, I have two text files that ...
Questioneer's user avatar
0 votes
0 answers
38 views

Can someone please tell me what this Puppet statement means and different syntaxes for achieving the same result?

I ran into this Puppet statement but I'm not really sure what it means (I don't write much Puppet at all): [byte[]](0x00,0xFF,0xFF,0x00) Does anyone recognise the syntax of this statement and what it'...
Nambarc's user avatar
0 votes
0 answers
26 views

Puppet Multi-Packages Installation error: vim-enchanced

Any idea please how to solve this error: Error: Execution of '/bin/yum -d 0 -e 0 -y install vim-enchanced' returned 1: Error: Nothing to do Error: /Stage[main]/Multi_package_node/Package[vim-enchanced]...
Amir Choubani's user avatar
0 votes
0 answers
72 views

Running into certificate errors when running puppet agent config using vault lookup

I'm running into certificate errors when I run "puppet agent -t" using a vault lookup module in my branch for the agent config. Here's the errors I get: "Failed to apply catalog: ...
splatGPT's user avatar
0 votes
1 answer
124 views

Puppet Bolt multilevel inventory yamls

From the documentation of puppet bolt and their inventory.yaml, here, it seems you can define multiple levels of the yaml file by specifying another group in the definition of agroup. Thus creating a ...
SK4ndal's user avatar
  • 49
0 votes
0 answers
88 views

Stackstorm: Action "packs.install" cannot be found

I am currently having issues installing any pack at all in stackstorm using the st2 client. Error: ERROR: 400 Client Error: Bad Request MESSAGE: Action "packs.install" cannot be found. for ...
sam hassan's user avatar

1
2 3 4 5
82