Defined Type: swift::service

Defined in:
puppet/modules/swift/manifests/service.pp

Overview

Define: swift::service

Defines a swift service.

Examples

swift::service { 'swift-account-server' }


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'puppet/modules/swift/manifests/service.pp', line 9

define swift::service {
    $split = split($title, '-')
    $ring_name = $split[0]

    systemd::service { "swift-${title}":
        ensure         => 'present',
        require        => File["/etc/swift/${ring_name}.conf"],
        service_params => {
            subscribe => File["/etc/swift/${ring_name}.conf"],
        },
        template_name  => 'swift',
    }

    rsyslog::conf { "rsyslog-swift-${title}":
        content  => template('swift/rsyslog.conf.erb'),
        priority => 40,
    }
}