aboutsummaryrefslogtreecommitdiff
path: root/functions/conf/nginx/location.pp
blob: 84d0e82a944ca7559ddba56d080e86c4d4a0ed84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function letsencrypt::conf::nginx::location (
  String $cert_name,
) >> Letsencrypt::Ssl_conf::Nginx::Location {
  $cert_path = $facts['letsencrypt_directory'][$cert_name]

  if $cert_path == undef {
    {
      ssl => false,
    }
  } else {
    {
      ssl      => true,
      ssl_only => true,
    }
  }
}