Jonathon Anderson
06/17/2022, 3:16 PMCVQuesty
06/17/2022, 3:17 PMCVQuesty
06/17/2022, 3:17 PMCVQuesty
06/17/2022, 3:17 PMCVQuesty
06/17/2022, 3:19 PMCVQuesty
06/17/2022, 3:19 PMnode default {
lookup('classes', {merge => 'unique', default_value => []}).include
}
Jonathon Anderson
06/17/2022, 3:20 PMLumiere
06/17/2022, 3:20 PMCVQuesty
06/17/2022, 3:20 PMclasses: 'sscg_roles::server'
CVQuesty
06/17/2022, 3:21 PM# Main SSCG Server Role
class sscg_roles::server {
include sscg_profiles::base
include sscg_profiles::lampstack
include sscg_profiles::sscgatl
include sscg_profiles::mvcf
}
CVQuesty
06/17/2022, 3:23 PM# Base profile for all nodes
class sscg_profiles::base {
include sscg_profiles::hardening
include sscg_profiles::ntp
}
CVQuesty
06/17/2022, 3:24 PMLumiere
06/17/2022, 3:24 PMclasses_main: # main is a stage, which we do use
- 'profile_linux'
- 'profile_nginx'
- 'profile_monitoring'
but with a hiera lookup_options that merges the keyCVQuesty
06/17/2022, 3:24 PMLumiere
06/17/2022, 3:24 PMCVQuesty
06/17/2022, 3:24 PMJonathon Anderson
06/17/2022, 3:24 PMLumiere
06/17/2022, 3:25 PMCVQuesty
06/17/2022, 3:25 PMJonathon Anderson
06/17/2022, 3:26 PMCVQuesty
06/17/2022, 3:26 PMJonathon Anderson
06/17/2022, 3:26 PMJonathon Anderson
06/17/2022, 3:27 PMCVQuesty
06/17/2022, 3:27 PMvchepkov
06/17/2022, 3:28 PMCVQuesty
06/17/2022, 3:28 PMJonathon Anderson
06/17/2022, 3:29 PMCVQuesty
06/17/2022, 3:32 PMwwebhrea02
Windows - Platform
Web - function
HR - purpose
East - location
02 - host number
Then you can do things like:
node /^w$/ {
include foo::blah
}
Lumiere
06/17/2022, 3:32 PMLumiere
06/17/2022, 3:32 PM