## confdroid_gitea::params.pp # Module name: confdroid_gitea # Author: 12ww1160 (12ww1160@confdroid.com) # @summary holds all parameters for the confdroid_gitea Puppet module. # @param [Boolean] ga_use_firewall Whether to enable firewall rules for Gitea. # @param [String] ga_http_port The main port number for Gitea. # @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_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. # @param [Array] ga_reqpackages The required packages for Gitea. # @param [String] ga_pkg_ensure The ensure state for required packages. # @param [String] ga_domain The domain for the Gitea host. # defaults to 'localhost'. # @param [String] ga_root_url The root URL for Gitea. # defaults to 'http://localhost:3000'. # @param [Boolean] ga_disable_ssh Whether to disable SSH access in Gitea. # @param [Boolean] ga_start_lfs Whether to start Git LFS support in Gitea. # @param [Boolean] ga_start_ssh Whether to start SSH support in Gitea. ############################################################################## class confdroid_gitea::params ( # main Array $ga_reqpackages = ['git', 'wget', 'tar'], String $ga_pkg_ensure = 'present', String $ga_host_fqdn = 'gitea.example.net', 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', String $ga_domain = 'localhost', String $ga_root_url = 'http://localhost:3000', Boolean $ga_disable_ssh = false, Boolean $ga_start_lfs = true, Boolean $ga_start_ssh = false, # firewall Boolean $ga_use_firewall = true, String $ga_http_port = '3000', String $ga_ssh_port = '22', String $ga_order_prefix = '50', ) { # facts $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" $ga_conf_dir = '/etc/gitea' $ga_git_dir = "${ga_data_dir}/git" $ga_repo_dir = "${ga_git_dir}/repositories" $ga_uploads_dir = "${ga_data_dir}/uploads" # files $ga_config_file = "${ga_conf_dir}/app.ini" $ga_config_erb = 'confdroid_gitea/app.ini.erb' # includes must be last include confdroid_gitea::main::config }