Puppet Class: wls_profile::weblogic::firewall
- Inherits:
- wls_profile
- Defined in:
- manifests/weblogic/firewall.pp
Summary
This class is the default implementation for setting the firewall rules for your WebLogic sever.Overview
+--
+
wls_profile::firewall
Using hiera, you can customize some of the aspects of this process.
When these customizations aren't enough, you can replace the class with your own class. See wls_profile::weblogic for an explanation on how to do this.
–++–
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'manifests/weblogic/firewall.pp', line 11
class wls_profile::weblogic::firewall(
Array[Integer] $ports,
Boolean $manage_service,
) inherits wls_profile {
echo {"Firewall: ensuring tcp port(s) ${ports.join(',')} are open.":
withpath => false,
}
case $::operatingsystem {
'RedHat', 'CentOS', 'OracleLinux': {
case ($::os['release']['major']) {
'4','5','6': {
class {'wls_profile::weblogic::firewall::iptables':
ports => $ports,
manage_service => $manage_service,
}
}
'7': {
class {'wls_profile::weblogic::firewall::firewalld':
ports => $ports,
manage_service => $manage_service,
}
}
default: { fail 'unsupported OS version when checking firewall service'}
}
}
'Solaris':{
warning 'No firewall rules added on Solaris.'
}
default: {
fail "${::operatingsystem} is not supported."
}
}
}
|