I'm not an expert by any means.

The *easiest *way would be to use regex for this - there's an example in
https://puppet.com/docs/puppet/6.17/lang_node_definitions.html.



On Thu, Sep 17, 2020 at 6:19 PM [email protected] <[email protected]> wrote:

> 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 { 'gssproxy':        }
>   class { 'smartd':          }
>   class { 'firewalld':       }
>   class { 'grubipv6disable': }
>   class { 'grubrootpasswd':  }
>   class { 'grubcrash':       }
>   class { 'logrotate':       }
>   class { 'htop':            }
>   class { 'vim':             }
>   class { 'yum':             }
>   class { 'yumlocalrepo':    }
>   class { 'sysctl':          }
>   class { 'sysconfig':       }
>   class { 'bashrc':          }
>   class { 'vault':           }
>   class { 'useradd':         }
>   class { 'crontab':         }
>   class { 'modprobe':        }
>   class { 'rsyslogd':        }
>   class { 'sudoers':         }
>   class { 'motd':            }
>   class { 'pam':             }
>   class { 'issue':           }
>   class { 'issuenet':        }
>   class { 'limits':          }
>   class { 'timezone':        }
>   class { 'profiled':        }
>   class { 'pulpconsumer':    }
>   class { 'resolver':        }
>   class { 'aide':            }
>   class { 'autofs':          }
>   class { 'vmtoolsd':        }
>   class { 'ntpd':            }
>   class { 'postfix':         }
>   class { 'auditd':          }
>   class { 'sshd':            }
>   class { 'idmclient':       }
> }
>
> However, it's now become apparent that I need to exclude the
> grubipv6disable from some nodes (all have idm0 in their hostname).
>
> What is the best way (or the less complicated) to achive this?
>
> Thanks in advance.
> Dan.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/e0226cb0-a8d9-4767-afa7-093c89358063n%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/e0226cb0-a8d9-4767-afa7-093c89358063n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Niall Litchfield
Oracle DBA
http://www.orawin.info

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CABe10sZGiP1B1MmjM%2BMSS0gaUrJ8G1X1R-U3Do5imDC9AAZzPA%40mail.gmail.com.

Reply via email to