Less stuttering in variable naming
This commit is contained in:
parent
efa269ab33
commit
3413446ce4
1 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
class cdn::mqtt(
|
class cdn::mqtt(
|
||||||
String $dc = '',
|
String $dc = '',
|
||||||
Array[String] $clients = [],
|
Array[String] $clients = [],
|
||||||
Array[String] $mqtt_client_ips = [],
|
Array[String] $client_ips = [],
|
||||||
Hash[String, Hash] $bridges = {},
|
Hash[String, Hash] $bridges = {},
|
||||||
Hash[String, String] $acme_url = {
|
Hash[String, String] $acme_url = {
|
||||||
test => 'https://internal-sto3-test-ca-1.cdn.sunet.se:9000/acme/acme/directory'
|
test => 'https://internal-sto3-test-ca-1.cdn.sunet.se:9000/acme/acme/directory'
|
||||||
|
@ -36,9 +36,9 @@ class cdn::mqtt(
|
||||||
proto => 'tcp',
|
proto => 'tcp',
|
||||||
}
|
}
|
||||||
|
|
||||||
$mqtt_client_ips.each | String $mqtt_client_ip | {
|
$client_ips.each | String $client_ip | {
|
||||||
sunet::nftables::allow { "allow-acme-client-${mqtt_client_ip}":
|
sunet::nftables::allow { "allow-acme-client-${client_ip}":
|
||||||
from => $mqtt_client_ip,
|
from => $client_ip,
|
||||||
port => 8883,
|
port => 8883,
|
||||||
proto => 'tcp',
|
proto => 'tcp',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue