OP#414 add all dirs
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
# @param [String] ga_ssh_port The SSH port number for Gitea.
|
||||
# @param [String] ga_order_prefix The order prefix for firewall rules.
|
||||
# @param [String] ga_host_fqdn The FQDN for the Gitea host.
|
||||
# @param [String] ga_working_dir The working directory for Gitea.
|
||||
# @param [String] ga_opt_dir The installation directory for Gitea.
|
||||
# @param [String] ga_dl_url The download URL for Gitea.
|
||||
# @param [String] ga_dl_version The version of Gitea to download.
|
||||
# @param [String] ga_user The system user for Gitea.
|
||||
@@ -20,7 +20,7 @@ class confdroid_gitea::params (
|
||||
Array $ga_reqpackages = ['git', 'wget', 'tar'],
|
||||
String $ga_pkg_ensure = 'present',
|
||||
String $ga_host_fqdn = 'gitea.example.net',
|
||||
String $ga_working_dir = '/opt/gitea',
|
||||
String $ga_opt_dir = '/opt/gitea',
|
||||
String $ga_dl_url = 'https://dl.gitea.com/gitea',
|
||||
String $ga_dl_version = '1.25.4',
|
||||
String $ga_user = 'git',
|
||||
@@ -33,12 +33,17 @@ class confdroid_gitea::params (
|
||||
|
||||
) {
|
||||
# facts
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
$domain = $facts['networking']['domain']
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
$domain = $facts['networking']['domain']
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
|
||||
# directories
|
||||
$ga_working_dir ='/var/lib/gitea'
|
||||
$ga_custom_dir = "${ga_working_dir}/custom"
|
||||
$ga_data_dir = "${ga_working_dir}/data"
|
||||
$ga_log_dir = "${ga_working_dir}/log"
|
||||
$ga_tmp_dir = "${ga_working_dir}/tmp"
|
||||
|
||||
# files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user