Tag Info

Hot answers tagged


This should do the trick: <% minNumOfNodes = (@akka_application_cluster_seed_nodes.split(',').length / 2)+1 %> min-nr-of-members = <%=minNumOfNodes%> Inside the <% %> it is just straight Ruby, so we take the raw string, split it on the comma, take the count, then do the required calculation on that.


Verify that this line is in your site.pp: hiera_include('classes') Then try running this command: puppet master --compile host.domain.tld --debug 2>&1 | grep hiera This should give you output like this: Debug: hiera(): Hiera YAML backend starting [...] Debug: hiera(): Looking up $KEY in YAML backend Debug: hiera(): Looking for data source common ...


Foreman is only an ENC, which means that it will send a YAML formatted set of classes and variables to the Puppet master when asked to do so. If a variable is in Hiera, and you do not override it with Foreman, the variable in Hiera should automatically be used, as it will not be present in the YAML output. In newer version of Foreman, you can actually do ...


You can add the repo with puppet like this : yumrepo { "pp-centos-7-local": baseurl => "http://localrepo.example.com/localrepo", descr => "centos-7-local", enabled => 1, } And then you can use a much simpler package resource: package { yourpackagename: ensure => present, # require => Yumrepo["pp-centos-7-local"], ...


There were empty ca request files on the puppet master server that needed to be removed. here: /var/lib/puppet/ssl/ca/requests Additional hint: Check with df, that your /var partition is not full.


The modules should be cloned to the modules directory of an environment, e.g., /etc/puppet/environments/production/modules/firewalld: The Base Modulepath The base modulepath is a list of global module directories for use with all environments. It can be configured with the basemodulepath setting, but its default value is probably suitable for you unless ...

Only top voted, non community-wiki answers of a minimum length are eligible