diff --git a/doc/_index.html b/doc/_index.html index c9497da..07945c3 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -93,11 +93,6 @@ -
Configuration
install required system user
+manage directory structure
manage configuration files
diff --git a/doc/index.html b/doc/index.html index 6232a9a..e30c657 100644 --- a/doc/index.html +++ b/doc/index.html @@ -84,6 +84,8 @@Configuration
install required system user
+manage directory structure
manage configuration files
diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index 7db4413..caf7c71 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -71,28 +71,21 @@# File 'manifests/main/files.pp', line 6
@@ -113,7 +123,17 @@
class confdroid_gitea::main::files (
) inherits confdroid_gitea::params {
- require confdroid_gitea::main::user
+ 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}/gitea/${ga_dl_version}/gitea-${ga_dl_version}-linux-amd64",
+ }
+ }
}
# File 'manifests/main/service.pp', line 6
@@ -114,8 +116,10 @@
class confdroid_gitea::main::service (
) inherits confdroid_gitea::params {
- require confdroid_gitea::firewall::iptables
- require confdroid_gitea::main::dirs
+ if $ga_host_fqdn == $fqdn {
+ require confdroid_gitea::firewall::iptables
+ require confdroid_gitea::main::files
+ }
}
# File 'manifests/main/user.pp', line 6
@@ -113,7 +120,14 @@
class confdroid_gitea::main::user (
) inherits confdroid_gitea::params {
- require confdroid_gitea::main::install
+ if $ga_host_fqdn == $fqdn {
+ user { $ga_user:
+ ensure => 'present',
+ managehome => true,
+ shell => '/bin/false',
+ system => true,
+ }
+ }
}
The order prefix for firewall rules.
+The FQDN for the Gitea host.
+The working directory for Gitea.
+The download URL for Gitea.
+The version of Gitea to download.
+The system user for Gitea.
-10 -11 -12 -13 -14 15 16 17 @@ -210,13 +293,32 @@ 24 25 26 -27+27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39
# File 'manifests/params.pp', line 10
+ # File 'manifests/params.pp', line 15
class confdroid_gitea::params (
+ # main
+ String $ga_host_fqdn = 'gitea.example.net',
+ String $ga_working_dir = '/opt/gitea',
+ String $ga_dl_url = 'https://dl.gitea.com/gitea',
+ String $ga_dl_version = '1.25.4',
+ String $ga_user = 'git',
+
# firewall
Boolean $ga_use_firewall = true,
String $ga_http_port = '3000',