Questions tagged [puppet]

Puppet is a configuration management tool (Unix & Windows) with its own Domain Specific Language.

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

Puppet Module File Resource Copy From Network Mount

I'm using RHEL Satellite 6.6 with puppet 5.5.12. I have a module which, among other things, copies a file from a network mapped folder to the local drive, then executes it. When I run the module ...
0
votes
0answers
41 views

Puppet - ssh_known_hosts not being populated correctly

I have a server X that is not getting the complete ssh_known_hosts file and another server Y getting the complete list. I don't see the same errors on the server Y, both the servers should be getting ...
0
votes
0answers
37 views

Task run in Puppet Enterprise fails

I have a test environment with Puppet Enterprise installed. I am trying to run Tasks on a windows based server however I get an error as soon as I run any tasks. Error: This node is either ...
1
vote
0answers
20 views

Issue installing puppet agent on Windows Servers

I'm trying to setup a Puppet dev environment in my datacenter. I've configured the Puppet Master on Cent0S 7 along with two agents, also running RH CentOS 7. The Puppet version I am running on the ...
0
votes
1answer
17 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
0answers
16 views

Specifying a different account for specific Puppet exec resources in Windows

We use Puppet to configure our Windows Server, and are currently the puppet it using the default LOCALSYSTEM account. However, we recently encountered a situation where are required to run specific ...
0
votes
0answers
18 views

Is there a way to communicate information between puppet classes/resources

Is there a way to communicate information between classes/resources? I have a profile that I want to include on all nodes to set them up as being monitored by Icinga which uses an exported resource : ...
1
vote
1answer
31 views

Quickly install multiple puppet modules from directory

Is there a way to install multiple puppet modules from a directory in one command? I have a directory containing multiple puppet modules in tar.gz form downloaded from the forge, and I need to install ...
0
votes
1answer
19 views

Run “puppetserver ca” commands on a remote server

We are running a Puppet Open Source server. To sign and revoke Puppet client certificates we logon to this Puppet server and run puppetserver ca ... commands. We would like to be able to stand-up a ...
0
votes
1answer
26 views

Puppet copy and install program on users

Trying to write module to install nomachine on every user how created on ubuntu deskop. I need assist to solve two problem: nbadmin its my user but I woluld like to write genral user second I got ...
0
votes
0answers
16 views

Using Puppet to configure hypervisor

I am looking to use Puppet to configure a bare-metal host to spawn VMs using Vagrant/VirtualBox, whose configurations will also be managed by Puppet. I think this can be achieved by: Installing ...
0
votes
0answers
18 views

Puppet package resource with alternate name gets created each time when run locally

I have a Debian server that is a Puppet client of our Puppet master. Part of the Puppet code that is run when the Puppet client runs its agent is package { 'my-nagios-package': ensure => ...
1
vote
1answer
28 views

Are Puppet virtual resources auto-realized if they're auto-required?

It's documented that Puppet will auto-require certain resources, e.g. a (puppet-managed) directory that is a parent of a File resource, or a group resource referenced in a user resource. If an auto-...
0
votes
1answer
41 views

dependency loop : to deploy gitlab using awx ansible i need a repository

I want to deploy gitlab using awx and ansible ( or with puppet and rundeck ) and to do it i need a repository ( SCM : gitlab ) , the thing is i want to deploy gitlab but i need a gitlab , i can't find ...
0
votes
2answers
52 views

Using Configuration management tools to synchronize large files

We are looking into using a configuration mangement tool (like Salt or Puppet) to automate what is currently a lot of manual work. One requirement is that we have to distribute rather large files / ...
1
vote
1answer
316 views

puppet agent not able to connect to master

on 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/vendor_gems/...
0
votes
1answer
30 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
0answers
20 views

Puppet resource presence conditional on a tag?

In Puppet (5.5) how can I make a resource's presence (or absence) dependent on whether a particular tag is set or not? I can create a virtual resource whose ensure value defaults to absent and then ...
2
votes
0answers
145 views

Set YUM versionlock, but allow updating to specific versions

I am trying to control the version of puppet agent installed on our RedHat systems. Our Puppet manifest has $puppet_version = hiera('profile::puppet_agent::version', '6.12.0') class {'::puppet_agent':...
2
votes
1answer
171 views

Puppetserver unable to locate gems

I'm trying to use a module which adds an AWS Secrets Manager hiera backend: https://forge.puppet.com/accenture/hiera_aws_sm This module requires the aws-sdk-secretsmanager gem, which I installed via ...
2
votes
2answers
57 views

How to control which version of Powershell Puppet shells out to on Windows?

Microsoft recently changed their download repository for Windows Powershell to require TLS 1.2+ which Windows Powershell 5.1 doesn't support without the runtime setting change to Net....
0
votes
0answers
59 views

azure keyvault integration with puppet

i am facing issue. trying to integrate azure keyvault with puppet, i have setup manage identity between azure key vault and puppet master vm, after that using puppet mainfest code am trying to acces ...
0
votes
1answer
61 views

Install openldap server wth puppet - Error: Could not prefetch openldap_database provider 'olc': Command original_slapcat is missing

i am trying to install openldap server with Puppet Version 5.5.20. For the openldap installation i use camptocamp/openldap module v 2.0.0. I try it first with minimal configuration. My puppet ...
0
votes
0answers
51 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 ...
1
vote
0answers
28 views

Puppet - Get interface name from netplan yalm config

How to get interface name which has nameservers defined? I want to get the interface name so I can pass it to another netplan puppet module so the nameservers can be replaced. But I only want to get ...
0
votes
1answer
32 views

DRBD Single Primary Ignore File Types

Is it possible to have an exclusion list for file types (maybe even specific files) so that they wont try to sync with the secondary nodes? I have looked at the DRBD configuration file and cannot find ...
0
votes
1answer
181 views

Puppet server not starting

need help on small issue - Puppet server : # puppet --version 6.15.0 puppetserver --version puppetserver version: 6.11.0 openjdk version "1.8.0_252" OpenJDK Runtime Environment (build 1.8.0_252-...
0
votes
0answers
216 views

puppet error Error: Could not request certificate: SSL_connect

I was able to sign cert created by client 1st time opt/puppetlabs/puppet/bin/puppet agent -t .. Exiting; no certificate found and waitforcert is disabled Then i go to server puppetserver ca ...
0
votes
1answer
39 views

Which server configuration management tool to use for my personal nextcloud deployment [closed]

I want to deploy a personal nextcloud application. I already have setup nextcloud using docker-compose, which tool should I use for server configuration management? I have the following things to ...
0
votes
1answer
103 views

Puppetserver 1.1.3 cannot contact LDAP

I have a horribly out-of-date puppet installation that's using the Rack puppetmaster service. I'm attempting to bring it slightly more up-to-date, and my first step is moving to puppetserver instead. ...
1
vote
1answer
71 views

Puppet Class Lookup from Hiera with Automated Chaining

I am using hiera with puppet and have a puppet role/profile setup, where 1 role includes multiple profiles (as shown below). My build role includes hardcoded profiles with a number of chains at the ...
1
vote
0answers
34 views

Puppet keeps pushing .swp files

Our current setup has a manifest/site.pp that include the following for all of our modules File { ignore => ['.swp'], } However when running puppet on the client side, it still tries to push ...
0
votes
0answers
27 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
171 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,...
0
votes
1answer
29 views

Ensure Puppet performs procedural steps as part of deployment

I know using procedural steps in Puppet is generally frowned upon, but since we are using it to deploy Veritas-managed clustered applications, there is a specific set of steps that must happen before ...
1
vote
0answers
53 views

Puppet 4.10 Regex

I'm trying to add a 'type' layer to our hiera backend so webservers can get common configuration, databases get some common configuration, etc. Our hostname scheme is [env][number].domain.tld where [...
2
votes
0answers
54 views

how changing the default editor via puppet

I'm trying to find the best way with Puppet to change the default editor on all machines(Ubuntu & RedHat) so that any user is constrained to use a type of editor. And to keep it possible to change ...
1
vote
1answer
91 views

Puppet parse hiera in inline_template

I have got some .yaml hiera file with: iptables::test: ip: 1.1.1.1 : 'adm-1' 2.2.2.2 : 'adm-2' 3.3.3.3 : 'adm-3' And i want to parse this file in inline_template. I write: $...
1
vote
2answers
190 views

Puppet: Change file on readonly filesystem

I'd like to use puppet to manage files on read-only filesystems. So I need to remount the filesystem read-write before modification, and read only afterwards. I made two exec resources : exec { '...
2
votes
2answers
155 views

Puppet Package class can't detect installed package when multiple versions are present

I am trying to install the kernel-devel package matching the running kernel version. My guess was: package { 'kernel-devel': ensure => "${facts['kernelrelease']}", } but it doesn't work ...
2
votes
1answer
108 views

How do I conditionally enable a managed repo using puppet-yum?

The puppet-yum documentation is very straightforward, and explains how to add your own managed repo via hiera data. However, in addition to our 'release' repo, I want to conditionally add our 'build' ...
1
vote
2answers
60 views

How to create a common directory in a puppet defined resource

I am implementing a defined resource in puppet to create a number of websites. One of the steps is creating the documentroot directory for the website. My problem is that some websites can share a ...
1
vote
1answer
93 views

Trying to use sshfs to mount directory from a puppet exec

Ununtu 16.04 and 18.04 (same problem on both) I am trying to use sshfs to mount a directory on another system, it works fine from the command line but when I execute the same command from a puppet "...
2
votes
0answers
49 views

Check if class has been included

We have Puppet set specific firewall rules on our system administrator's workstations. We discovered recently that some systems were connected to the wrong network ports and were able to get admin ...
0
votes
1answer
433 views

Puppet : call define type in class from hiera

I would like to create install_package module which can be called multi times, where packages are defined in hiera. I know class is skelton (can be called one time), and define type is designed for my ...
0
votes
2answers
179 views

Puppet, server migration, restore existing persistent data

Thing that confuses me about configuration management tools such as Puppet is that they're great and straightforward for setting up server from scratch, but what every documentation neglects is the ...
2
votes
0answers
25 views

Deploying a c-compiled ruby gem with puppet module

I have a type/provider module that depends on a c-compiled gem. What is the best way to package this up and deploy to the users? Is the SOP to install the gem as a package (using gem provider) first, ...
3
votes
2answers
2k views

Puppet cert clean not working

So, I am standing up a new server to replace an existing one. Should be easy, right? Revoke the old cert, create a new one and off you go. Here's the loop I am stuck in: I've redacted the server ...
1
vote
0answers
172 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
766 views

Add multiple IPs for one host into /etc/hosts with puppet

I manage my hosts with puppet. Hosts run dual stack IPv4 and IPv6. I want to add both addresses to /etc/hosts. When I would add it by hand my /etc/hosts file would look like this: 192.0.2.1 hostname....

1
2 3 4 5
36