vchepkov
04/03/2023, 8:03 PMvchepkov
04/03/2023, 8:04 PMvchepkov
04/03/2023, 8:05 PMvchepkov
04/03/2023, 8:07 PMKenny Kant
04/03/2023, 8:14 PMprofile::linux::base
made sense to me.. and maybe down the road:
profile::windows::base
all profiles for linux go into:
profile::linux
^^ these are subclasses yes? they would go into the
$env/site-modules/profile/manifests
?vchepkov
04/03/2023, 8:15 PM::
there would represent additional directory levelvchepkov
04/03/2023, 8:16 PMprofile::linux
class is in profile/manifests/linux.pp
profile::linux::base
class in profile/manifests/linux/base.ppvchepkov
04/03/2023, 8:16 PMvchepkov
04/03/2023, 8:18 PMprofile::base
for example (profile/manifests/base.pp)
case $facts['kernel'] {
'Linux' : { contain profile::linux::base }
'Windows' : { contain profile::windows::base }
default : { fail("${facts['kernel']} is not supported") }
}
vchepkov
04/03/2023, 8:21 PMKenny Kant
04/03/2023, 8:21 PMKenny Kant
04/03/2023, 8:21 PMKenny Kant
04/03/2023, 8:22 PMKenny Kant
04/03/2023, 8:22 PMvchepkov
04/03/2023, 8:23 PMvchepkov
04/03/2023, 8:24 PMcase $facts['kernel'] {
'Linux' : { contain linux::profile::base }
'Windows' : { contain windows::profile::base }
default : { fail("${facts['kernel']} is not supported") }
}
Kenny Kant
04/03/2023, 8:24 PMprofile::linux::base
the "linux" is just as much a module as "profile" and would have its own relative file dir ?vchepkov
04/03/2023, 8:25 PMKenny Kant
04/03/2023, 8:25 PMKenny Kant
04/03/2023, 8:26 PMvchepkov
04/03/2023, 8:26 PMvchepkov
04/03/2023, 8:27 PMvchepkov
04/03/2023, 8:28 PMKenny Kant
04/03/2023, 8:30 PMKenny Kant
04/03/2023, 8:31 PMKenny Kant
04/03/2023, 8:31 PMKenny Kant
04/03/2023, 8:31 PMvchepkov
04/03/2023, 8:32 PMhbui
04/04/2023, 3:24 AMStevan Svilokos
04/04/2023, 8:52 AM