Puppet Class: aptly::serve
- Defined in:
-
manifests/serve.pp
Summary
Install and configure Aptly's static file server (aptly serve)
Overview
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'manifests/serve.pp', line 10
class aptly::serve (
Enum['stopped','running'] $ensure = running,
String[1] $user = 'root',
String[1] $group = 'root',
Pattern['^([0-9.]*:[0-9]+$|unix:)'] $listen = ':8080',
Stdlib::Absolutepath $config_file = '/etc/aptly.conf',
) {
$description = 'Aptly-serve'
$exec_start = "/usr/bin/aptly serve -listen=${listen} -config=${config_file}"
systemd::unit_file { 'aptly-serve.service':
content => template('aptly/etc/aptly.service.systemd.erb'),
active => $ensure == 'running',
enable => $ensure == 'running',
}
}
|