Puppet Class: aptly::api
- Defined in:
-
manifests/api.pp
Summary
Install and configure Aptly's API Service
Overview
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'manifests/api.pp', line 11
class aptly::api (
Enum['stopped','running'] $ensure = running,
String[1] $user = 'root',
String[1] $group = 'root',
Pattern['^([0-9.]*:[0-9]+$|unix:)'] $listen = ':8080',
Enum['none','log'] $log = 'none',
Boolean $enable_cli_and_http = false,
) {
$description = 'Aptly-api'
$exec_start = $enable_cli_and_http ? {
true => "/usr/bin/aptly api serve -listen=${listen} -no-lock",
default => "/usr/bin/aptly api serve -listen=${listen}",
}
systemd::unit_file { 'aptly-api.service':
content => template('aptly/etc/aptly.service.systemd.erb'),
active => $ensure == 'running',
enable => true,
}
}
|