Hello experts,
I apply all my current classes like so:
# cat site.pp
node default {
class { 'selinux':
mode => 'permissive',
type => 'targeted', }
class { 'commonpackages': }
class { 'polkit': }
class { 'libstoragemgmt': }
class { 'rngd':}
class {
if $enable {
> # add here the code from the class.
> }
> }
>
> Now you add hiera.yaml to your control-repo and add node specific data.
> https://puppet.com/docs/puppet/6.17/hiera_intro.html
>
> e.g.
> data/nodes/.yaml
> ---
> grubipv6disable::enable: false
&
6'
> }
> } else {
> notice ('Assuming RHEL 6.x thus taking no action')
> }
> }
>
> Parameters, like variables, are always local to a class.
>
> Best,
> Martin
>
>
> On 28. Sep 2020, at 12:03, djc...@gmail.com wrote:
>
> Thanks
> file are empty
> - that node is the top level environment in your environment hiera.yaml
> file (/etc/puppetlabs/code/environment//hiera.yaml
> - that your Puppet code changes are done in production environment and not
> within a feature branch or: if you use a feature branch: t
Hello Martin,
Do you have any further thoughts on the above?
Thanks,
Dan.
On Monday, September 28, 2020 at 2:37:42 PM UTC+1 djc...@gmail.com wrote:
> There is indeed a global hiera.yaml file:
> # cat /etc/puppetlabs/puppet/hiera.yaml
> ---
> # Hiera 5 Global configuration file
&g
}.yaml"
> Found key: "grubipv6disable::enable" value: false
>
> So I assume that you want to disable ipv6 only on node
> lhcsrvprdidm02.fixnetix.com
>
>
>
> On 1. Oct 2020, at 12:05, djc...@gmail.com wrote:
>
> Hello Martin,
>
> Do you h
> just want to be sure)
>
> On 1. Oct 2020, at 12:30, djc...@gmail.com wrote:
>
> Thanks Martin, yes (on fours servers to be specific all with idm0 in the
> hostname). Problem I have, is although the lookup is returning what I
> need, when I run the agent, it returns:
>
27;: }
> include grubipv6disable
> # …
> }
>
>
> On 1. Oct 2020, at 12:44, djc...@gmail.com wrote:
>
> Puppet 6:
>
> # puppet --version
> 6.15.0
>
> Yes, I ran the lookup as root.
>
> On Thursday, October 1, 2020 at 11:40:49 AM UTC+1 Martin Al