cdn-ops/global/overlay/etc/puppet/modules/cdn/manifests/mqtt.pp

32 lines
669 B
ObjectPascal
Raw Normal View History

2024-10-04 15:33:49 +00:00
# Configure a SUNET CDN mqtt server
2024-10-04 15:43:31 +00:00
class cdn::mqtt(
String $dc = '',
2024-10-06 12:30:51 +00:00
Array[String] $clients = [],
Hash[String, Hash] $bridges = {},
2024-10-04 15:33:49 +00:00
)
{
package {'mosquitto': ensure => installed }
file { '/etc/mosquitto/aclfile':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
2024-10-06 12:32:17 +00:00
content => template('cdn/mqtt/aclfile.erb'),
}
2024-10-06 12:51:55 +00:00
file { '/etc/mosquitto/conf.d/cdn.conf':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
content => template('cdn/mqtt/cdn.conf.erb'),
}
sunet::nftables::allow { "allow-step-ca-acme":
from => 'any',
port => 80,
proto => 'tcp',
}
2024-10-04 15:33:49 +00:00
}