Add os-specific sub-classes and have profile::base use case $::kernel

This commit is contained in:
Gabriel M Schuyler 2015-12-10 13:16:20 -08:00
parent a9d3be58aa
commit a07a349bae
3 changed files with 22 additions and 1 deletions

View File

@ -1,5 +1,14 @@
# Base profiles include all the classes that should be included on all nodes.
# For cross-platform compatibility, this is broken up into platform-appropriate
# subclasses. This class applies the appropriate base profile based on the
# $::kernel fact.
class profile::base { class profile::base {
#the base profile should include component modules that will be on all nodes # Include a platform-appropriate base profile
case $::kernel {
'Linux': { include profile::base::linux }
'windows': { include profile::base::windows }
}
} }

View File

@ -0,0 +1,6 @@
# A 'base' profile should include component modules that will be on all nodes
# of a particular operating system.
class profile::base::linux {
}

View File

@ -0,0 +1,6 @@
# A 'base' profile should include component modules that will be on all nodes
# of a particular operating system.
class profile::base::windows {
}