Commit 118164d7 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

handle Ubuntu better

parent f07d6117
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -51,9 +51,15 @@ class su_apache::debian (

  $debian_major_version = $facts['os']['distro']['release']['major']

  if ($facts['os']['name'] == 'Debian') {
    if (Integer($debian_major_version) < 9) {
      fail("This class only works with Debian stretch and later")
    }
  } elsif ($facts['os']['name'] == 'Ubuntu') {
    if (Float($debian_major_version) < 16.0) {
      fail("This class only works with Ubuntu xenial and later")
    }
  }

  # Set the SSL/TLS protocols and ciphers.
  su_apache::conf { 'ssl-strength.conf':