Hiera Lookup Options
My Hiera Data is as follows: --- lookup_options: site::purge::rules: merge: strategy: hash merge_hash_arrays: true I want to be able to merge any arrays for the given hiera value site::purge::rules...
View ArticleHow to restart Icinga after exported ressources have been removed?
I use exported resources heavily for my monitoring. The relevant parts in the manifest for my Icinga hosts look like this: resources { [ "nagios_service", "nagios_host", "nagios_hostgroup" ]: purge...
View Articlepuppet apt class - adding a APT source with GPG key
I'm using the module: https://github.com/puppetlabs/puppetlabs-apt I configured the below class to create an additional APT source and add the GPG key. class filebeats_apt { apt::source { 'Filebeats':...
View ArticleHow/where can I have puppet set the freeipa password policy
I know how to set the policy from the gui and command line, but I can't find how and where to have puppet set the password policy for my FreeIPA. Here is my global policy command. ipa pwpolicy-add...
View ArticleCriteria for declaring an agent as unresponsive and removing it from puppet...
If i have configured puppet agent’s time interval as 5y (5 years). Would puppet master treat the agent as unresponsive and remove it after two week period set in node-ttl and node-ttl-purge ?...
View ArticleStoring facts in a database
Is it a common practice to store node "facts" in a database, particularly if they are values that are set by administrators? I have a customer with existing configuration settings per node already in...
View ArticleStoring hostname + profile in a database
I currently have a customer with non-puppet configuration management system that applies a configuration based on values in a database. One of them directly aligns with a puppet "role" so I'm thinking...
View ArticleCan we install puppet agent on multiple host machine using one remote machine...
Can we install puppet agent on multiple host machine using one remote machine (considering puppet master is already installed on the remote machine)? I am using machine config.- VMware, on top of it...
View Articleupdate apt::source before package install
I'm unable to get a repo to run an "apt-get update" before it evaluates a package. Any tricks? This is what I assumed would work. apt::source {'foo-repo': location => 'http://my.repo.com' .... }...
View ArticleHow do I use the type file to create diectories like a mkdir -p without...
With file type, you can do an ensure => directory, but I want to automate the creation of all lower level directories, line mkdir -p does to create /opt/level1/level2/level3. or how do I build a...
View ArticleDuplicate declaration: Class[Apache] is already declared
Hi, I hope some can help me: class my_apache{ include apache class { '::apache': default_vhost => false, } apache::vhost { 'mysample.domain.fun': port => '80', servername =>...
View ArticleHow can I see what resources were changed in the my last agent run?
Hi all, I know I can inspect /var/log/messages but is there a way I can check which resources have been updated after the last puppet agent run? I'm using Puppet OS not PE. Kind Regards, Nath
View ArticlePuppet Config Print Fails When Environment Directory 'Does Not Exist' on...
Hi All, I have 2 environments on my puppetserver, production and test. I have updated the puppet agent to use the environment named test, running puppet agent works, however I see an error when I try...
View Articlebeaker and git modules
Complete newby with beaker-rspec. How would I get a Git repo? Something like this: hosts.each do |host| on host, puppet('module','install','puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }...
View ArticleIssues in getting hiera eyaml to work
1) Eyaml is setup with public key 2) Hiera.yaml is setup with backends consul, eyaml and yaml. 3) A string is encrypted 4) The encrypted string is mentioned in the below file: [vagrant@localhost...
View ArticlePuppet agent very slow due to MySQL module ...
We're using the puppetforge MySQL module - the agent is taking a long time to complete its run. A "--debug" trace reveals that Puppet is running a mysql query for every user in the mysql.user table....
View ArticleIs it mandatory to configure PuppetDb for nagios installation
Is it mandatory to configure PuppetDb for Nagios installation,any other options for it
View Articlewhat is hiera backend 'facter'?
I know hiera can be extended to other than yaml and json. But in one of the puppet setup I can see 'facter' as hiera backend. What does this mean? Is there any doc available for this? !ruby/sym...
View Articlebasemodulepath override not working
Hi all puppeteers ! Currently running puppet 4.8.1, I just noticed that puppet was not taking in account one of the parameter set in the puppet.conf. **puppet.conf** [master] basemodulepath =...
View Articlerazor pxe boot fail
the puppet razor enterprise has beeen sucessfully installed, but when i tried to boot with iPXE, i have the fallowing error Nothing to boot: No such file or directory... the /etc/hosts was modified on...
View Article