diff --git a/doc/_index.html b/doc/_index.html index ca95cd8..c9497da 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -73,6 +73,41 @@ +
  • + confdroid_gitea::firewall::iptables + +
  • + +
  • + confdroid_gitea::main::config + +
  • + +
  • + confdroid_gitea::main::dirs + +
  • + +
  • + confdroid_gitea::main::files + +
  • + +
  • + confdroid_gitea::main::install + +
  • + +
  • + confdroid_gitea::main::service + +
  • + +
  • + confdroid_gitea::main::user + +
  • +
  • confdroid_gitea::params diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index 7cb53e5..7db4413 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -43,7 +43,56 @@
  • -
  • +
  • +
    + confdroid_gitea::firewall::iptables +
    +
  • + + +
  • +
    + confdroid_gitea::main::config +
    +
  • + + +
  • +
    + confdroid_gitea::main::dirs +
    +
  • + + +
  • +
    + confdroid_gitea::main::files +
    +
  • + + +
  • +
    + confdroid_gitea::main::install +
    +
  • + + +
  • +
    + confdroid_gitea::main::service +
    +
  • + + +
  • +
    + confdroid_gitea::main::user +
    +
  • + + +
  • confdroid_gitea::params
    diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Afirewall_3A_3Aiptables.html b/doc/puppet_classes/confdroid_gitea_3A_3Afirewall_3A_3Aiptables.html new file mode 100644 index 0000000..149327c --- /dev/null +++ b/doc/puppet_classes/confdroid_gitea_3A_3Afirewall_3A_3Aiptables.html @@ -0,0 +1,152 @@ + + + + + + + Puppet Class: confdroid_gitea::firewall::iptables + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_gitea::firewall::iptables

    +
    + +
    +
    Inherits:
    +
    confdroid_gitea::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/firewall/iptables.pp +
    +
    +
    + +

    Summary

    + manages the firewall rules for the confdroid_gitea Puppet module. + +

    Overview

    +
    +
    + +

    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 {
    +    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',
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Aconfig.html b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Aconfig.html new file mode 100644 index 0000000..66eada9 --- /dev/null +++ b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Aconfig.html @@ -0,0 +1,130 @@ + + + + + + + Puppet Class: confdroid_gitea::main::config + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_gitea::main::config

    +
    + +
    +
    Inherits:
    +
    confdroid_gitea::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/config.pp +
    +
    +
    + +

    Summary

    + manages the logic for the confdroid_gitea Puppet module. + +

    Overview

    +
    +
    + +

    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
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Adirs.html b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Adirs.html new file mode 100644 index 0000000..0e58c7a --- /dev/null +++ b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Adirs.html @@ -0,0 +1,130 @@ + + + + + + + Puppet Class: confdroid_gitea::main::dirs + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_gitea::main::dirs

    +
    + +
    +
    Inherits:
    +
    confdroid_gitea::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/dirs.pp +
    +
    +
    + +

    Summary

    + manages the directories for the confdroid_gitea Puppet module. + +

    Overview

    +
    +
    + +

    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::files
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Afiles.html new file mode 100644 index 0000000..4ae76f2 --- /dev/null +++ b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Afiles.html @@ -0,0 +1,130 @@ + + + + + + + Puppet Class: confdroid_gitea::main::files + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_gitea::main::files

    +
    + +
    +
    Inherits:
    +
    confdroid_gitea::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/files.pp +
    +
    +
    + +

    Summary

    + manages the files for the confdroid_gitea Puppet module. + +

    Overview

    +
    +
    + +

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

    + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +
    +
    # File 'manifests/main/files.pp', line 6
    +
    +class confdroid_gitea::main::files (
    +
    +) inherits confdroid_gitea::params {
    +  require confdroid_gitea::main::user
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Ainstall.html b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Ainstall.html new file mode 100644 index 0000000..eee37a5 --- /dev/null +++ b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Ainstall.html @@ -0,0 +1,128 @@ + + + + + + + Puppet Class: confdroid_gitea::main::install + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_gitea::main::install

    +
    + +
    +
    Inherits:
    +
    confdroid_gitea::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/install.pp +
    +
    +
    + +

    Summary

    + manages the installation for the confdroid_gitea Puppet module. + +

    Overview

    +
    +
    + +

    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 {
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Aservice.html b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Aservice.html new file mode 100644 index 0000000..051af29 --- /dev/null +++ b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Aservice.html @@ -0,0 +1,132 @@ + + + + + + + Puppet Class: confdroid_gitea::main::service + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_gitea::main::service

    +
    + +
    +
    Inherits:
    +
    confdroid_gitea::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/service.pp +
    +
    +
    + +

    Summary

    + manages the services for the confdroid_gitea Puppet module. + +

    Overview

    +
    +
    + +

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

    + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +11
    +
    +
    # File 'manifests/main/service.pp', line 6
    +
    +class confdroid_gitea::main::service (
    +
    +) inherits confdroid_gitea::params {
    +  require confdroid_gitea::firewall::iptables
    +  require confdroid_gitea::main::dirs
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Auser.html b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Auser.html new file mode 100644 index 0000000..a023f5e --- /dev/null +++ b/doc/puppet_classes/confdroid_gitea_3A_3Amain_3A_3Auser.html @@ -0,0 +1,130 @@ + + + + + + + Puppet Class: confdroid_gitea::main::user + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_gitea::main::user

    +
    + +
    +
    Inherits:
    +
    confdroid_gitea::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/user.pp +
    +
    +
    + +

    Summary

    + manages the user for the confdroid_gitea Puppet module. + +

    Overview

    +
    +
    + +

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

    + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +
    +
    # File 'manifests/main/user.pp', line 6
    +
    +class confdroid_gitea::main::user (
    +
    +) inherits confdroid_gitea::params {
    +  require confdroid_gitea::main::install
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_gitea_3A_3Aparams.html b/doc/puppet_classes/confdroid_gitea_3A_3Aparams.html index 13b641b..e6aa6c2 100644 --- a/doc/puppet_classes/confdroid_gitea_3A_3Aparams.html +++ b/doc/puppet_classes/confdroid_gitea_3A_3Aparams.html @@ -63,6 +63,27 @@
    +
    +
    Inherited by:
    +
    + + confdroid_gitea::main::dirs
    + + confdroid_gitea::main::user
    + + confdroid_gitea::main::files
    + + confdroid_gitea::main::config
    + + confdroid_gitea::main::install
    + + confdroid_gitea::main::service
    + + confdroid_gitea::firewall::iptables
    + +
    +
    +
    Defined in:
    @@ -72,7 +93,7 @@

    Summary

    - initializes the confdroid_gitea Puppet module. + holds all parameters for the confdroid_gitea Puppet module.

    Overview

    @@ -86,7 +107,83 @@
    +

    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.

      +
      + +
    • + +
    +
    @@ -96,22 +193,36 @@
     
     
    -6
    -7
    -8
    -9
     10
     11
     12
     13
     14
    -15
    +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 -
    # File 'manifests/params.pp', line 6
    +        
    # File 'manifests/params.pp', line 10
     
     class confdroid_gitea::params (
     
    +  # 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']
    @@ -119,6 +230,8 @@ class confdroid_gitea::params (
       $os_name                          = $facts['os']['name']
       $os_release                       = $facts['os']['release']['major']
     
    +# includes must be last
    +  include confdroid_gitea::main::config
     }