Questions tagged [puppet]

1

votes
1

answer
48

Views

Read multiple hash keys and keep only unique values

If I have data in Hiera like: resource_adapter_instances: 'Adp1': adapter_plan_dir: '/opt/weblogic/middleware' adapter_plan: 'Plan_DB.xml' 'Adp2': adapter_plan_dir: '/opt/weblogic/middleware' adapter_plan: 'ODB_Plan_DB.xml' 'Adp3': adapter_plan_dir: '/opt/weblogic/middleware' adapter_plan:...
Dave Shaw
1

votes
0

answer
36

Views

How to obtain a puppet report?

Puppet version : 2016 / 4.8 Currently I use the puppet console to view the reports that are generated for the Node. Problem with this view is that it displays the log items one entry at a time. I can go to 'Events' and filter by event status (it says Failed) but it still does not provide me the con...
user1074593
1

votes
0

answer
70

Views

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 pupmastertwo to report to itself, its throwing error. pu...
nurawat
1

votes
0

answer
345

Views

Trouble configuring Nginx with puppet/nginx module using Hiera

I'm trying to configure Nginx with puppet/nginx module from forge.puppet.com (by Vox Pupuli), using this Hiera yaml file: nginx::nginx_servers: 'devops-alldomains': server_name: - '~^(?.+?)$' www_root: '/var/www/$fqdn' index_files: - 'index.php' try_files: - '$uri' - '$uri/' - '/index.php?$args' acc...
patok
1

votes
0

answer
39

Views

Puppet ensurable - Is it possible to wire exists? method to anything other than present or absent?

I have passed a block to the ensurable method and defined acceptable property values as well as the methods of the provider that are to be called. I understand that present and absent property depend on the result of the exist? method and depending on it they will be called/not called. However, I ha...
Farhan Nomani
1

votes
1

answer
293

Views

Puppet: Apache proxy + basic Auth

I'm trying to create an Apache config with puppet which in includes reverse proxying and basic authentication. My approach looks like apache::vhost { 'domain.tld':...
Henrik
1

votes
0

answer
152

Views

Execute resource in Puppet if another resource fails

Say if I have a exec resource like so: exec { 'Task1': command => '/bin/long-running-task', timeout => 3600, } If this long running task fails or times out, it'd be optimal to get a notification of this failure. If the task fails (returns non zero), catching this is basically /bin/long-running-task...
Carey
1

votes
1

answer
221

Views

Getting one puppet class applied regardless of other class failures

Given manifest/site.pp ... include foo::bar include baz::alpha include baz::beta include baz::gamma ... Where foo::bar creates /etc/puppetlabs/puppet/config_file.yaml foo::alpha through foo::gamma are custom types which use puppet_x classes that require the above file to operate, and will throw Pupp...
EdwinW
1

votes
0

answer
59

Views

rspec/mocha error when testing facter fact

I've written a very simple facter fact. It looks like this: # Kubadmin facts # require 'json' Facter.add(:has_kubectl) do confine :kernel => :linux setcode do Facter::Core::Execution.which('kubectl') end end Facter.add(:kubernetes_version) do confine :kernel => :linux kubernetes_json = Facter::Core:...
jaxxstorm
1

votes
1

answer
492

Views

Puppet - Multiple Roles in Hiera

I'm trying (and struggling) to get a (multiple) role model implemented in Hiera. I've worked in the last 2 years with exact the same model as a user and now want to rebuild the same structure on my own. For example, my node.yaml should contain only the roles I want to apply onto the host: /etc/puppe...
Yannick Dixken
1

votes
1

answer
155

Views

/etc/init.d/puppet doesn't exist in puppet agent

I've followed this instructions to install the puppet agent in a docker with ubuntu 16.04. https://puppet.com/docs/puppet/5.5/install_linux.html So I've excecuted this wget https://apt.puppetlabs.com/puppet5-release-xenial.deb dpkg -i puppet5-release-xenial.deb apt update apt-get install puppet-agen...
elamas
1

votes
0

answer
29

Views

Access to CSR extensions in trusted['extensions'] on agents

I've migrated from puppet master on Apache/passenger to pupetmaster. As a result my puppet agents aren't getting any CSR extensions which were served by puppet master behind Apache. I'm able to see those extensions on master using puppet cert print
1

votes
1

answer
430

Views

Receiving an “Unknown function” error in Puppet

Receiving an error when defining a function in Puppet. C:\Windows\system32> puppet agent --test --server davidhromyk.test.5.puppet.lrscorp.net --masterport 8937 --ssldir C:\Temp\davidhromyk.test.5.puppet.lrscorp.net Info: Using configured environment 'internal' Info: Retrieving pluginfacts Info: Re...
David Hromyk
1

votes
0

answer
41

Views

r10k puppetfile install hang / stuck

So i'm trying to install a lot of module (66 in total) from a single Puppetfile and after every 7-9 modules installed the process hang up or it seem that it's stops working. I found a temporal solution tot this problem, but it's a bit of a pain. I have to kill the r10k process and remove the module...
Madox
1

votes
5

answer
147

Views

Puppet Copy msi, install and delete once

I have a question about Resource Type File and Package. I copy msi file from Ubuntu to Windows machine via File-RT (I dont have samba-share) I install the msi file via Package-RT I delete the msi file with Exec-RT it works so far but my problem is when I call puppet agent --test on the client the m...
Andy
1

votes
1

answer
181

Views

Puppet apply:Could not find node statement with name 'default' or 'puppetserver.example.com

/etc/puppetlabs/puppet/puppet.conf: [master] vardir = /opt/puppetlabs/server/data/puppetserver logdir = /var/log/puppetlabs/puppetserver rundir = /var/run/puppetlabs/puppetserver pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid icodedir = /etc/puppetlabs/code dns_alt_names=puppetserver.ex...
1

votes
2

answer
425

Views

Puppet-hiera-Function lookup() did not find a value-Windows

I installed dsc module and added AD user to Domain controller using puppet. Code below works fine when hard-coding password as plain text. Is it possible somehow to encrypt those passwords. I read that hiera-eyaml is solution for this so i encrypted password [[email protected] puppet]# /opt/puppetlabs/p...
1

votes
0

answer
82

Views

puppet migration: v3.8.5 -> v5.4.0 “Could not find template”

I'm migrating a from puppetmaster on Xenial (v3.8.5) to Bionic (v5.4.0) and have run into an issue. So far I've copied the node and modules files from the old server to the new and had a client connect. I keep getting the following error on the client and master: Could not retrieve catalog from remo...
Owain
1

votes
1

answer
91

Views

Difference between Puppet, Puppet Master and Puppet Server

We are in transition from Puppet 3.8 to Puppet 5.4. I am currently playing with puppet 5.4. Though the puppet documentation is good I don't understand what is the difference between puppet, puppetserver and puppetmaster.
Yashwanth
1

votes
0

answer
106

Views

Puppet: cannot load such file — semantic_puppet

I am getting below error while enabling the puppet agent. I got this error during installation process. [[email protected] puppet-enterprise-2019.0.2-el-7-x86_64]# /opt/puppetlabs/puppet/bin/puppet agent --enable Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine...
rɑːdʒɑ
1

votes
1

answer
35

Views

puppet agent not recognizing r10k pulled modules

Please help me configuring custom puppet modules from github. The modules are pulled correctly in master but not getting recognized on the agent nodes at all. Puppetfile mod 'puppet-lamp', :git => 'https://github.com/blablabla/puppet_lamp.git', :ref => '659fe4056060426d3a1449sdfgbc290571f5714f' envi...
Irfan Junaid
1

votes
1

answer
46

Views

apt-puppetlabs do repos first

on my puppetserver i use the puppetlabs-apt module to configure the repos. And i use hiera to get the data for the repos. If i run it i get the message that dirmngr cant be installed cause it cant be found in the repos. That error comes because puppet is trying to install dirmngr before hes doing t...
user3045725
1

votes
0

answer
17

Views

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 a plan to run several tasks following official docume...
AlejandroF
1

votes
0

answer
36

Views

How to change puppetserver loglevel for ELK

I have a puppet server 5.3 which logs to logstash. Daily I get ~90k messages, 95% of which are with log level INFO. I would like to get only the WARN and ERROR level but regardless what I try, I still get the INFOs. This is how I send the data to logstash via logback.xml: logserverhostname.com 514 W...
Atanas Stoyanov
1

votes
0

answer
21

Views

Failure to install dependencies on my Puppet code

I'm following a study book about DevOps and I'm locking in a code inserted in my Vagrantfile file. I tried to solve it in several ways, but I do not succeed. I have no way out to solve the problem and this is the basis of my college work. It's interesting to remember that I'm using Puppet Below my P...
Lucas Teixeira
1

votes
3

answer
1.4k

Views

reflection of erb variables

I'm using a puppet template, which does an erb interpretation of the template file. I'd like to know all the variables available to me, however, there are variables available (e.g., fqdn) that are not listed by any of the reflection methods I'm aware of, specifically, none of these: # module consta...
Stephen P. Schaefer
1

votes
1

answer
618

Views

enabling fastcgi mod in lighttpd through puppet

Hi guys am new to puppet and I want to execute the following command on client using puppet so that the fast cgi mod is enabled on the puppet client. lighttpd-enable-mod fastcgi Both puppet server and client are ubuntu machines and my lighttpd module's init.pp file is as follows: class lighttpd::ins...
APZ
1

votes
1

answer
166

Views

Tailor MCollective agent actions based on the machine's facts

Lets say I have a MCollective agent named 'foo' with action 'bar', in the logic of the action I want to do X when the fact 'chicken' is 'true', and do Y when the fact 'beef' is true. Basically, how do you access facts from a MCollective agent?
joemoe
1

votes
2

answer
471

Views

How can I DRY this puppet class?

I've got this code, does a slightly different action depending on whether or not the node is a Debian machine: class nginx::package { case $operatingsystem { 'debian': { apt::preference { 'nginx': package => 'nginx nginx-common', priority => '600', release => 'a=squeeze-backports', } package { 'ngi...
troutwine
1

votes
2

answer
1.7k

Views

Puppet facter slow for some network facts

I'm learning about vagrant and puppet. When I use the vagrant lucid32 (Ubuntu 10.04), puppet seems very slow. I've fixed the fqdn problem (question 7780322) but it's still very slow. I've traced (part of) the problem to facter. Asking for ipaddress is very quick, but ipaddress_eth0 takes 20 seconds:...
John
1

votes
1

answer
559

Views

Recommended approach & tools to provision a VM instance(s) from node.js?

I am trying to implement a 'lab in the cloud' to allow people to have a sandbox to experiment and learn in; i.e. for devops (chef/puppet), installing or configuring software etc. I have a node.js server implementation to manage this and looking for sane and reasonable ways to attack this problem. Th...
velniukas
1

votes
2

answer
1.1k

Views

Apache mod_rewrite mod_proxy redirect

I am trying to redirect /foreman to https://someurl:4343 I am using: SSLProxyEngine on ProxyPass /foreman https://MyIP:4343/ ProxyPassReverse /foreman https://MyIP:4343/ Results so far are that: I get the index page with no style and no images none of the links work i.e. /foreman/hosts?somevaria...
Simply Seth
1

votes
1

answer
1.3k

Views

Puppet Accidently deleted etckeeper-commit-pre and etckeeper-commit-post is there a way to regenerate these files?

Basically I deleted these files while doing some clean up in my puppet directory. Now when I run @app: puppet apply /some/file I got an error stating these file where missing. (of course) So I created two new files and I got this: err: Could not run command from prerun_command: Execution of '/etc/pu...
Anthony
1

votes
1

answer
1.2k

Views

Puppet: Putting a single template inside a recursive static directory

I'm trying to configure a Puppet module to install and configure tftp. Here is the dependency chain in my module (an items to the right require the item on the left). pxe::install --> pxe::config --> pxe::config2 --> pxe::service pxe::config copies static files and directories only. In particular, c...
fandingo
1

votes
2

answer
490

Views

Installing Zend Server CE via Puppet

I need to install Zend Server CE with PHP 5.2 on my debian stack via puppet. Can anyone help how should manifest look like. Install instruction are available here http://files.zend.com/help/Zend-Server/zend-server.htm#deb_installation.htm Thanks. Jaro.
Jaro
1

votes
1

answer
842

Views

How can I disable only specific errors in Eclipse/Geppetto?

I am using Geppetto 2.1.2 build R201202021616, which is based off the Eclipse engine. I'm using the standalone install, rather than the Eclipse plugin version. I have a few common warnings that show up in my puppet files, due to the module I am coding being part of a larger project that Geppetto is...
Lee Lowder
1

votes
2

answer
5.4k

Views

How to run puppetmaster using Apache/Passenger

Running Puppet v2.7.14 on CEntOs 6 and also using Apache/Passenger instead of WEBrick. I was told that puppetmaster service is not required to be running (hence: chkconfig off puppetmaster) running when using httpd and passenger but in my case, if I don't start puppetmasterd manually, none of the ag...
MacUsers
1

votes
1

answer
923

Views

How can I specify the directory for puppet:///private/ when running 'puppet apply'?

So, I have a puppet repository. It's versioned with git and things like that. It would be convenient for me to be able to make tentative changes to a copy this repository on my machine, then try out the changes on a test computer, before committing these changes to the puppet server (avoiding the ha...
fennec
1

votes
1

answer
403

Views

Use puppet or chef to config two db servers (HA) on AWS

How to use puppet or chef to config multi-servers? For example, We need two servers to construct HA sql. Server A need Server B's IP and username and password. Server B also need Server A's IP and username and password. But IPs are automatic generated by AWS. And password are also randomly generate...
ken.chen
1

votes
1

answer
1.1k

Views

Pattern for appending data to variable in local scope

I am attempting to modify a puppet module for Centrify Express, which integrates against Active Directory. I want to append users to an allowlist on a per node basis, E.G: $centrifydc_groups_allow = ['admins', 'users'] Then in my template, do something along the lines of: I'm looking for a clean con...
Jon Skarpeteig

View additional questions