Puppet Class: confdroid_gitea::params

Summary

holds all parameters for the confdroid_gitea Puppet module.

Overview

confdroid_gitea::params.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)

Parameters:

  • ga_use_firewall (Boolean) (defaults to: true)

    Whether to enable firewall rules for Gitea.

  • ga_http_port (String) (defaults to: '3000')

    The main port number for Gitea.

  • ga_ssh_port (String) (defaults to: '22')

    The SSH port number for Gitea.

  • ga_order_prefix (String) (defaults to: '50')

    The order prefix for firewall rules.

  • ga_host_fqdn (String) (defaults to: 'gitea.example.net')

    The FQDN for the Gitea host.

  • ga_opt_dir (String) (defaults to: '/opt/gitea')

    The installation directory for Gitea.

  • ga_dl_url (String) (defaults to: 'https://dl.gitea.com/gitea')

    The download URL for Gitea.

  • ga_dl_version (String) (defaults to: '1.25.4')

    The version of Gitea to download.

  • ga_user (String) (defaults to: 'git')

    The system user for Gitea.

  • ga_reqpackages (Array) (defaults to: ['git', 'wget', 'tar'])

    The required packages for Gitea.

  • ga_pkg_ensure (String) (defaults to: 'present')

    The ensure state for required packages.

  • ga_domain (String) (defaults to: 'localhost')

    The domain for the Gitea host. defaults to ‘localhost’.

  • ga_root_url (String) (defaults to: 'http://localhost:3000')

    The root URL for Gitea. defaults to ‘localhost:3000’.

  • ga_disable_ssh (Boolean) (defaults to: false)

    Whether to disable SSH access in Gitea.

  • ga_start_lfs (Boolean) (defaults to: true)

    Whether to start Git LFS support in Gitea.

  • ga_start_ssh (Boolean) (defaults to: false)

    Whether to start SSH support in Gitea.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'manifests/params.pp', line 24

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
}