Puppet Class: sftpgo::service

Defined in:
manifests/service.pp

Summary

This is class starts services for sftpgo

Overview

Examples:

include sftpgo::service


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/service.pp', line 5

class sftpgo::service {
  $image = $sftpgo::docker_images['sftpgo']

  $_volumes = $sftpgo::config_hash ? {
    undef => $sftpgo::volumes,
    Hash  => $sftpgo::volumes + "${sftpgo::config_file}:${sftpgo::config_file}"
  }

  docker::run { 'sftpgo':
    image           => "${image['image']}:${image['image_tag']}",
    memory_limit    => $sftpgo::memory_limit,
    hostname        => $facts['fqdn'],
    restart_service => true,
    ports           => $sftpgo::ports,
    env             => $sftpgo::environment,
    volumes         => $_volumes,
  }
}