Documentation by YARD 0.9.36
+Alphabetic Index
+ +Puppet Class Listing A-Z
+ + +
+
+
+
|
+
File Listing
+-
+
+
+
- README + + +
diff --git a/doc/_index.html b/doc/_index.html new file mode 100644 index 0000000..07945c3 --- /dev/null +++ b/doc/_index.html @@ -0,0 +1,148 @@ + + +
+ + +
+
+
+
|
+
| t |
+ + + +6 +7 +8+ |
+
+ # File 'manifests/init.pp', line 6
+
+class confdroid_gitea {
+ include confdroid_gitea::params
+}
+ |
+
confdroid_gitea::firewall::iptables.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21+ |
+
+ # File 'manifests/firewall/iptables.pp', line 6
+
+class confdroid_gitea::firewall::iptables (
+
+) inherits confdroid_gitea::params {
+ if ($ga_use_firewall == true) and ($ga_host_fqdn == $fqdn) {
+ firewall { "${ga_order_prefix}${ga_http_port} allow gitea http port ${ga_http_port}":
+ proto => 'tcp',
+ dport => $ga_http_port,
+ jump => 'accept',
+ }
+ firewall { "${ga_order_prefix}${ga_ssh_port} allow gitea ssh port ${ga_ssh_port}":
+ proto => 'tcp',
+ dport => $ga_ssh_port,
+ jump => 'accept',
+ }
+ }
+}
+ |
+
confdroid_gitea::main::config.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10+ |
+
+ # File 'manifests/main/config.pp', line 6
+
+class confdroid_gitea::main::config (
+
+) inherits confdroid_gitea::params {
+ include confdroid_gitea::main::service
+}
+ |
+
confdroid_gitea::main::dirs.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10+ |
+
+ # File 'manifests/main/dirs.pp', line 6
+
+class confdroid_gitea::main::dirs (
+
+) inherits confdroid_gitea::params {
+ require confdroid_gitea::main::user
+}
+ |
+
confdroid_gitea::main::files.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20+ |
+
+ # File 'manifests/main/files.pp', line 6
+
+class confdroid_gitea::main::files (
+
+) inherits confdroid_gitea::params {
+ 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}/${ga_dl_version}/gitea-${ga_dl_version}-linux-amd64",
+ }
+ }
+}
+ |
+
confdroid_gitea::main::install.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9+ |
+
+ # File 'manifests/main/install.pp', line 6
+
+class confdroid_gitea::main::install (
+
+) inherits confdroid_gitea::params {
+}
+ |
+
confdroid_gitea::main::service.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13+ |
+
+ # File 'manifests/main/service.pp', line 6
+
+class confdroid_gitea::main::service (
+
+) inherits confdroid_gitea::params {
+ if $ga_host_fqdn == $fqdn {
+ require confdroid_gitea::firewall::iptables
+ require confdroid_gitea::main::files
+ }
+}
+ |
+
confdroid_gitea::main::user.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17+ |
+
+ # File 'manifests/main/user.pp', line 6
+
+class confdroid_gitea::main::user (
+
+) inherits confdroid_gitea::params {
+ if $ga_host_fqdn == $fqdn {
+ user { $ga_user:
+ ensure => 'present',
+ managehome => true,
+ shell => '/bin/false',
+ system => true,
+ }
+ }
+}
+ |
+
confdroid_gitea::params.pp Module name: confdroid_gitea Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39+ |
+
+ # 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',
+ 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']
+
+# includes must be last
+ include confdroid_gitea::main::config
+}
+ |
+