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

32 lines
669 B
Puppet

# Configure a SUNET CDN mqtt server
class cdn::mqtt(
String $dc = '',
Array[String] $clients = [],
Hash[String, Hash] $bridges = {},
)
{
package {'mosquitto': ensure => installed }
file { '/etc/mosquitto/aclfile':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
content => template('cdn/mqtt/aclfile.erb'),
}
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',
}
}