Puppet Class: dragonfly::supernode
- Defined in:
- modules/dragonfly/manifests/supernode.pp
Summary
Install and configures Dragonfly supernode (with cdn pattern "source").Overview
SPDX-License-Identifier: Apache-2.0
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'modules/dragonfly/manifests/supernode.pp', line 17
class dragonfly::supernode (
Stdlib::Port::Unprivileged $listen_port = 8002,
Stdlib::Port::Unprivileged $download_port = 8002,
Enum['local', 'source'] $cdn_pattern = 'source',
){
ensure_packages('dragonfly-supernode')
file { '/etc/dragonfly/supernode.yml':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
content => template('dragonfly/supernode.yml.erb'),
notify => Service['dragonfly-supernode'],
}
service { 'dragonfly-supernode':
ensure => running,
}
profile::auto_restarts::service { 'dragonfly-supernode': }
}
|