diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Adirs.html b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Adirs.html index 3ed0885..f0f5899 100644 --- a/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Adirs.html +++ b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Adirs.html @@ -138,7 +138,13 @@ 40 41 42 -43 +43 +44 +45 +46 +47 +48 +49
# File 'manifests/main/dirs.pp', line 6
@@ -165,6 +171,12 @@ class confdroid_gitea::main::dirs (
         $ga_git_dir,
         $ga_repo_dir,
         $ga_uploads_dir,
+        $ga_sessions_dir,
+        $ga_avatars_dir,
+        $ga_indexer_dir,
+        $ga_repo_avatars_dir,
+        $ga_attachments_dir,
+        $ga_lfs_dir,
       ]:
       ensure  => 'directory',
       mode    => '0750',
diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Aparams.html b/doc/puppet_classes/confdroid_gitea_3A_3Aparams.html
index 0fc5c72..8f8ec79 100644
--- a/doc/puppet_classes/confdroid_gitea_3A_3Aparams.html
+++ b/doc/puppet_classes/confdroid_gitea_3A_3Aparams.html
@@ -394,6 +394,438 @@
         —
         

Whether to start SSH support in Gitea.

+
+ + + +
  • + + ga_db_type + + + (String) + + + (defaults to: 'postgres') + + + — +
    +

    The database type for Gitea.

    +
    + +
  • + +
  • + + ga_db_host + + + (String) + + + (defaults to: 'localhost') + + + — +
    +

    The database host for Gitea.

    +
    + +
  • + +
  • + + ga_db_port + + + (String) + + + (defaults to: '5432') + + + — +
    +

    The database port for Gitea.

    +
    + +
  • + +
  • + + ga_db_name + + + (String) + + + (defaults to: 'gitea') + + + — +
    +

    The database name for Gitea.

    +
    + +
  • + +
  • + + ga_db_user + + + (String) + + + (defaults to: 'ChangeMe') + + + — +
    +

    The database user for Gitea.

    +
    + +
  • + +
  • + + ga_db_password + + + (String) + + + (defaults to: 'ChangeMe') + + + — +
    +

    The database password for Gitea.

    +
    + +
  • + +
  • + + ga_log_sql + + + (Boolean) + + + (defaults to: false) + + + — +
    +

    Whether to enable SQL query logging in Gitea.

    +
    + +
  • + +
  • + + ga_ssl_mode + + + (String) + + + (defaults to: 'require') + + + — +
    +

    The SSL mode for the database connection in Gitea.

    +
    + +
  • + +
  • + + ga_log_mode + + + (String) + + + (defaults to: 'file') + + + — +
    +

    The log mode for Gitea.

    +
    + +
  • + +
  • + + ga_log_level + + + (String) + + + (defaults to: 'info') + + + — +
    +

    The log level for Gitea.

    +
    + +
  • + +
  • + + ga_install_lock + + + (Boolean) + + + (defaults to: false) + + + — +
    +

    Whether to enable the install lock for Gitea.

    +
    + +
  • + +
  • + + ga_secret_key + + + (String) + + + (defaults to: 'ChangeMe1234567890') + + + — +
    +

    The secret key for Gitea.

    +
    + +
  • + +
  • + + ga_reverse_proxy_limit + + + (String) + + + (defaults to: '1') + + + — +
    +

    The reverse proxy limit for Gitea.

    +
    + +
  • + +
  • + + ga_reverse_proxy_trusted_proxies + + + (String) + + + (defaults to: '*') + + + — +
    +

    The trusted proxies for reverse proxy in Gitea.

    +
    + +
  • + +
  • + + ga_disable_root_check + + + (Boolean) + + + (defaults to: true) + + + — +
    +

    Whether to disable the root check in Gitea.

    +
    + +
  • + +
  • + + ga_disable_registration + + + (Boolean) + + + (defaults to: false) + + + — +
    +

    Whether to disable user registration in Gitea.

    +
    + +
  • + +
  • + + ga_require_signin_view + + + (Boolean) + + + (defaults to: false) + + + — +
    +

    Whether to require sign-in to view in Gitea.

    +
    + +
  • + +
  • + + ga_admin_username + + + (String) + + + (defaults to: 'admin') + + + — +
    +

    The admin username for Gitea.

    +
    + +
  • + +
  • + + ga_admin_password + + + (String) + + + (defaults to: 'ChangeMeAdmin123!') + + + — +
    +

    The admin password for Gitea.

    +
    + +
  • + +
  • + + ga_admin_email + + + (String) + + + (defaults to: 'admin@example.com') + + + — +
    +

    The admin email for Gitea.

    +
    + +
  • + +
  • + + ga_enable_packages + + + (Boolean) + + + (defaults to: true) + + + — +
    +

    Whether to allow packages registry in Gitea.

    +
    + +
  • + +
  • + + ga_enable_registry + + + (Boolean) + + + (defaults to: true) + + + — +
    +

    Whether to allow container registry in Gitea.

    +
    + +
  • + +
  • + + ga_storage_type + + + (String) + + + (defaults to: 'filesystem') + + + — +
    +

    The storage type for Gitea.

    +
    + +
  • + +
  • + + ga_instance_name + + + (String) + + + (defaults to: 'Your Gitea Instance') + + + — +
    +

    The instance name for Gitea.

  • @@ -409,40 +841,6 @@
     
     
    -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
    @@ -455,50 +853,154 @@
     67
     68
     69
    -70
    +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139
    -
    # File 'manifests/params.pp', line 24
    +        
    # File 'manifests/params.pp', line 58
     
     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,
    +  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,
    +  String $ga_instance_name                  = 'Your Gitea Instance',
    +
    +  # database
    +  String $ga_db_type                        = 'postgres',
    +  String $ga_db_host                        = 'localhost',
    +  String $ga_db_port                        = '5432',
    +  String $ga_db_name                        = 'gitea',
    +  String $ga_db_user                        = 'ChangeMe',
    +  String $ga_db_password                    = 'ChangeMe',
    +  Boolean $ga_log_sql                       = false,
    +  String $ga_ssl_mode                       = 'require',
    +  # logging
    +  String $ga_log_mode                       = 'file',
    +  String $ga_log_level                      = 'info',
    +  # security
    +  Boolean $ga_install_lock                  = false,
    +  String $ga_secret_key                     = 'ChangeMe1234567890',
    +  String $ga_reverse_proxy_limit            = '1',
    +  String $ga_reverse_proxy_trusted_proxies  = '*',
    +  Boolean $ga_disable_root_check            = true,
    +  String $ga_admin_username                 = 'admin',
    +  String $ga_admin_password                 = 'ChangeMeAdmin123!',
    +  String $ga_admin_email                    = 'admin@example.com',
    +  # service
    +  Boolean $ga_disable_registration          = false,
    +  Boolean $ga_require_signin_view           = false,
    +  Boolean $ga_enable_packages               = true,
    +  Boolean $ga_enable_registry               = true,
    +  String $ga_storage_type                   = 'filesystem',
     
       # firewall
    -  Boolean $ga_use_firewall  = true,
    -  String $ga_http_port      = '3000',
    -  String $ga_ssh_port       = '22',
    -  String $ga_order_prefix   = '50',
    +  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']
    +  $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"
    +  $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"
    +  $ga_indexer_dir       = "${ga_data_dir}/indexers"
    +  $ga_sessions_dir      = "${ga_data_dir}/sessions"
    +  $ga_avatars_dir       = "${ga_data_dir}/avatars"
    +  $ga_repo_avatars_dir  = "${ga_data_dir}/repo-avatars"
    +  $ga_attachments_dir   = "${ga_data_dir}/attachments"
    +  $ga_lfs_dir           = "${ga_data_dir}/lfs"
     
     # files
       $ga_config_file   = "${ga_conf_dir}/app.ini"