Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Browsing all 257 articles
Browse latest View live
↧

Ensuring RPM package version

I am trying to ensure a certain version of package which I have built to be installed. The variable my_pkg_version is from hiera package { 'my_package_name': ensure => $my_pkg_version, notify =>...

View Article


Custom Facts are not working with hiera on puppet agent nodes

We have created a custom factor "datacenter" via /lib/facter/datacenter.rb on puppet master node. when i ran facter -p datacenter, it works fine, and so added the same in hiera.yaml. --- :backends: -...

View Article


apt::source, hiera, calling_module, how to combine

I' m struggling for about two weeks to figure out how to implement following scenario: Let' s say I have a module that installs and configures rabbitmq. Since I need package version that is not present...

View Article

Puppet/Hiera/limits.conf = Awkward output!

I am using hiera limits::fragment: to add entries to limits.conf. It's adding them after "End of file", which is a bit awkward. Can anyone offer any guidance? [root@dev-puppettest-01 security]# tail...

View Article

Un-Unique Keys in Hiera Hash

I have data in hiera that is structured to purge directories of specific files based on the path, age, and name. I have a data structure like the following: rules: '/tmp': daystokeep: 5 wildcard:...

View Article


Error while passing hiera values

Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function...

View Article

Hiera : correct lookup way

Hello all, I am currently reviewing some Hiera configuration file(s) and came across some elements which I would need advices about. Here's a Hiera configuration example : vstest: service_name:...

View Article

fact before catalog

Hi, I'm looking for a way to tell the puppet server some business logic about a group of nodes before the first puppet run. This business logic affects the parameters of the profiles and the classes....

View Article


How to set some business logic before first puppet run

Hi, I'm looking for a way to tell the puppet server some business logic about a group of nodes before the first puppet run. This business logic affects the parameters of the profiles and the classes....

View Article


Hiera Couchdb Http Paths Order

When configuring the :http: section, you can specify a :paths: options where you identify a database or some other database name, then you specify a document(s). Does the order of multiple paths relate...

View Article

Hiera.conf 5 mapped_paths based on a Array fact from split string

Hi, I'm trying to setup a generic hierarchy based on Hiera 5 under the following assumptions: * a fact `roles` holds a comma-separated list of roles to use in hiera. Example: `[ 'role1', 'role2'...

View Article

Hiera Defined Types + MongoDB Module?

I might be a bit confused about how Hiera works with defined types... classes: - mongodb::service - mongodb::client So here's where I start getting confused. I haven't had issues with Apache, which is...

View Article

Issue with handling sensitive data (passwords) using Puppet and Hiera-Eyaml.

Hi guys, I am testing Hiera-Eyaml for encrypting the passwords for the users in our Cassandra databases. Encrypting the passwords in the eyaml files and passing the Hiera data to the testing nodes...

View Article


Hiera role inheritance

I've got three roles defined in my control repo: `desktop_common`, `desktop_office`, and `desktop_developer`. I'm using hiera to set a variable `systemd_default_target`, which is `multi-user` in my...

View Article

hiera 5 hash

Hi there Is there a more deatiled example available on hashes for hiera 5 class profiles::postgresql { $config_entry = hiera_hash('postgresql::server::config_entry', {})...

View Article


Does one can impersonate any node by changing hostname and keeping the...

Hi all, I don't know if it's a bug or a feature, so I just ask. I have a puppet master run by Passenger. The configuration is populated from Hiera: /etc/puppet/hiera.yaml: --- :backends: - yaml :yaml:...

View Article

problem with loouk when default should be an array

Hi, puppet --version 4.9.4 I need to configure a resource that will take a value from an array in hiera. I would like to implement a default value with a lookup in case this value is not configured:...

View Article


hiera lookup not working?

Hit there I am trying to create lookups for openstack-neutron [openstack-neutron](https://github.com/openstack/puppet-neutron/tree/stable/ocata) class profiles::neutron { $neutron_default =...

View Article

string based from two hiera lookups?

Hi there How could I write a string based from two hiera-lookups with an @ un the middle? something like hiera('rabbit_user')@hiera('control_node') should give me for example elmer_fudd@runrabbitrun as...

View Article

Restrict hiera (version 5) lookup at environment and module layers

Hi, Recently I installed PE 2017.2 and got everything setup except hiera. Though I have used Hiera 3 it's going very tough to understand the configuration for all layers. However I have created a...

View Article
Browsing all 257 articles
Browse latest View live