Guest User

Untitled

a guest
Dec 11th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. case $::osfamily {
  2. 'RedHat': {
  3. $firewall = 'firewalld'
  4. }
  5. 'Debian': {
  6. $firewall = 'ufw'
  7. }
  8. default: {
  9. fail("Module firewall does not support ${::osfamily}")
  10. }
  11. }
  12.  
  13. # We rely on security groups
  14. service { $firewall:
  15. ensure => stopped,
  16. enable => false,
  17. }
Add Comment
Please, Sign In to add comment