Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case $::osfamily {
- 'RedHat': {
- $firewall = 'firewalld'
- }
- 'Debian': {
- $firewall = 'ufw'
- }
- default: {
- fail("Module firewall does not support ${::osfamily}")
- }
- }
- # We rely on security groups
- service { $firewall:
- ensure => stopped,
- enable => false,
- }
Add Comment
Please, Sign In to add comment