21 lines
637 B
Puppet
21 lines
637 B
Puppet
## confdroid_gitea::main::files.pp
|
|
# Module name: confdroid_gitea
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
# @summary manages the files for the confdroid_gitea Puppet module.
|
|
##############################################################################
|
|
class confdroid_gitea::main::files (
|
|
|
|
) inherits confdroid_gitea::params {
|
|
if $ga_host_fqdn == $fqdn {
|
|
require confdroid_gitea::main::dirs
|
|
|
|
file { "${ga_working_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",
|
|
}
|
|
}
|
|
}
|