forked from SUNET/soc-ops
Fix logic and spelling.
This commit is contained in:
parent
ddc22ad91c
commit
c527adb91e
1 changed files with 3 additions and 3 deletions
|
@ -101,9 +101,6 @@ class sunet::satosa(
|
||||||
allow_clients => 'any',
|
allow_clients => 'any',
|
||||||
port => 80,
|
port => 80,
|
||||||
}
|
}
|
||||||
} elseif ($ext_cert) and ($ext_cert_key) {
|
|
||||||
file { '/etc/satosa/https.key': ensure => link, target => $ext_cert_key }
|
|
||||||
file { '/etc/satosa/https.crt': ensure => link, target => $ext_cert }
|
|
||||||
} else {
|
} else {
|
||||||
sunet::misc::ufw_allow { 'allow-http':
|
sunet::misc::ufw_allow { 'allow-http':
|
||||||
from => 'any',
|
from => 'any',
|
||||||
|
@ -112,6 +109,9 @@ class sunet::satosa(
|
||||||
}
|
}
|
||||||
file { '/etc/satosa/https.key': ensure => link, target => "/etc/dehydrated/certs/${dehydrated_name}.key" }
|
file { '/etc/satosa/https.key': ensure => link, target => "/etc/dehydrated/certs/${dehydrated_name}.key" }
|
||||||
file { '/etc/satosa/https.crt': ensure => link, target => "/etc/dehydrated/certs/${dehydrated_name}/fullchain.pem" }
|
file { '/etc/satosa/https.crt': ensure => link, target => "/etc/dehydrated/certs/${dehydrated_name}/fullchain.pem" }
|
||||||
|
} elsif ($ext_cert) and ($ext_cert_key) {
|
||||||
|
file { '/etc/satosa/https.key': ensure => link, target => $ext_cert_key }
|
||||||
|
file { '/etc/satosa/https.crt': ensure => link, target => $ext_cert }
|
||||||
} else {
|
} else {
|
||||||
sunet::snippets::keygen {'satosa_https':
|
sunet::snippets::keygen {'satosa_https':
|
||||||
key_file => '/etc/satosa/https.key',
|
key_file => '/etc/satosa/https.key',
|
||||||
|
|
Loading…
Add table
Reference in a new issue