Questions tagged [puppet-enterprise]

Puppet Enterprise is the commercially supported and packaged release of Puppet.

Puppet Enterprise is the commercially supported and packaged release of Puppet.

It consists of a stack of various Puppet tools:

A Basic Split Installation

Related Tags

250 questions
1
vote
1 answer

Is there a way to use a parameter or variable for the regular expression inside a case in Puppet Code

In my puppet code I use regex inside case statement to identify the nodes I need to apply a certain code Below is a sample code in my Puppet class case $os_family { 'RedHat': { case $node_certname { /(xyz|pqr\d+)\.(com|au)?/:…
jd.tech20
  • 171
  • 1
  • 10
1
vote
0 answers

How to list all files in a directory in puppet using custom facts

I need to get an array of data where the data which will be the list of file names in a directory. I need to get the file name list in puppet manifest as an input . I need clear steps for reading the file names in a directory. I checked but those…
ksa
  • 25
  • 6
1
vote
1 answer

How to change Puppet Enterprise web interface port so as not to conflict with my existing Apache web server

My current CentOS 7 server is already running Apache web server 2.4x, using default ports 80 and 443. The Puppet Enterprise version 2019.x, using nginx(pe-nginx to be exact), is configured by default to use the exact same ports. What needs to be…
Phil
  • 306
  • 2
  • 10
1
vote
0 answers

Running Plans on Puppet Enterprise

I'm using AWS Opswork for Puppet Enterprise and a git control-repo to manage the puppet code. I created some tasks on control-repo/site/mymodule/tasks And I can run them from Puppet Enterprise UI (Run / Task menu) But I can't run plans. I created…
AlejandroF
  • 21
  • 1
1
vote
1 answer

Fetch variable from yaml in puppet manifest

I'm doing one project for puppet, however currently stuck in one logic. Thus, want to know can we fetch variable from .yaml, .json or plain text file in puppet manifest file. For example, My puppet manifest want to create user but the variable exist…
MrAZ
  • 394
  • 3
  • 13
1
vote
2 answers

Check if service is running prior to install using Puppet

I need to check if a service is already running before it installed using puppet. My code is as following, but it is keep failing. exec { 'bud_sh': cwd => '/working_dir/', command => "Some Command", path =>…
buddhima87
  • 31
  • 6
1
vote
1 answer

How to tell if a Puppet role has been applied to a node?

I'm trying to verify whether a particular Puppet role has been applied to a set of nodes. I'm using Puppet Enterprise. What I would like to see is lines akin to "INFO: applying role " in the node log or in the Puppet master log. I haven't…
Marcello Romani
  • 2,967
  • 31
  • 40
1
vote
1 answer

puppet update a configuration file only if it is updated

I have configured puppet master and agent for a small cluster. I know that for file transfer, I have to user file resource of puppet and it will overwrite existing file and if given it will also restart the service. Is there a way to update file on…
Hafiz Muhammad Shafiq
  • 8,168
  • 12
  • 63
  • 121
1
vote
1 answer

how to change the masterport in a puppet-enterprise monolithic installation

till now i have been using puppet-enterprise 3.8.6 and i am finally allowed to upgrade to the latest version (2018.1.3). in puppet 3.8.6 i was able to change the masterport by setting the puppet_enterprise::puppet_master_port parameter, execute…
mmoossen
  • 1,237
  • 3
  • 21
  • 32
1
vote
1 answer

Puppet is not able to create files in C:\windows\system32 folder

I am trying to create a .ssh folder and then add id_rsa and known_hosts file into the .ssh folder in a windows 2016 server. This folder needs to get into any user who runs puppet manually(or as a service). To make this work I have written a custom…
Aditya Pednekar
  • 442
  • 2
  • 6
  • 19
1
vote
1 answer

Calling a function in the same module and different manifest

I have created additional files to divide the load on the main puppet file. I want these additional files to return a string in a certain format and have therefore created a function. In multiple files with multiple functions, I want to invoke these…
myselfmiqdad
  • 2,518
  • 2
  • 18
  • 33
1
vote
0 answers

Sending reports to different puppet master than $server

There are two puppet masters. pupmasterone.localdomain and pupmastertwo.localdomain. pupmastertwo is fetching configuration from pupmasterone and sending its reports to pupmasterone. (This is normal behaviour) If we change the report_server in…
nurawat
  • 27
  • 3
1
vote
2 answers

What is the complete list of valid states for a Job in the puppet orchestrator API

I have been trying to find out the complete list of values for 'state' in the responses from https://puppet.com/docs/pe/2017.3/orchestrator/orchestrator_api_jobs_endpoint.html#puppet-orchestrator-api-jobs-endpoint There are a number of states. The…
smcp
  • 129
  • 2
  • 8
1
vote
2 answers

Puppet cron job -- ensure files exist

I'm trying to set up a Puppet cron job with the following structure: file { '/usr/local/sbin/file.py': mode => '0755', source => 'puppet:///modules/file.py', require => File['/usr/local/sbin'] } cron { "cronjob": require =>…
Kevin Lin
  • 681
  • 5
  • 11
1
vote
1 answer

Puppet notify, before, require not working as intended

I'm trying to create a relationship between a service resource and two exec resources. The service should trigger the Exec['before'] when something changes and start the Exec['after'] when the service has been modified. class foobar ( $debug =…
Nenzo
  • 135
  • 3
  • 13