Puppet Class: confdroid_gitea::main::files
- Inherits:
- confdroid_gitea::params
- Defined in:
- manifests/main/files.pp
Summary
manages the files for the confdroid_gitea Puppet module.Overview
confdroid_gitea::main::files.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'manifests/main/files.pp', line 6
class confdroid_gitea::main::files (
) inherits confdroid_gitea::params {
if $ga_host_fqdn == $fqdn {
require confdroid_gitea::main::dirs
file { "${ga_opt_dir}/gitea":
ensure => 'file',
mode => '0755',
owner => $ga_user,
group => $ga_user,
source => "${ga_dl_url}/${ga_dl_version}/gitea-${ga_dl_version}-linux-amd64",
}
file { '/usr/local/bin/gitea':
ensure => 'link',
owner => $ga_user,
group => $ga_user,
target => "${ga_opt_dir}/gitea",
}
file { $ga_config_file:
ensure => 'file',
owner => $ga_user,
group => $ga_user,
mode => '0640',
content => template($ga_config_erb),
}
file { $ga_service_file:
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0644',
content => template($ga_service_erb),
notify => Exec['systemd-daemon-reload'],
}
}
}
|