I want to do something along the lines of:
Is this possible with Puppet? If not, what's the best way I can distinguish modules by operating system?
I want to do something along the lines of:
Is this possible with Puppet? If not, what's the best way I can distinguish modules by operating system?
I think, the answer you are looking for is $::osfamily
Will a case command work for your instance?
case $::osfamily {
'Debian', 'Suse': {
...stuff for Deb/Suse...
}
'RedHat': {
...stuff for RH ...
}
'Windows': {
...stuff for Windows...
}
Default: {
... default stuff ...
}
} # -- End Case
To see what else is available, at a command prompt run:
facter os
You can run facter
with no arguments, send it to a file and peruse all the facts that puppet knows.