Documentation by YARD 0.9.12
+Alphabetic Index
+ +Puppet Class Listing A-Z
+ + +
+
+
+
|
+
File Listing
+-
+
+
+
- README + + +
From 572561b53019235f42e39d339ab8f41f01931e0e Mon Sep 17 00:00:00 2001
From: Jenkins ConfDroid
+Changelog of Git Changelog.
+
+ Git Changelog changelog
+
+ Unreleased
+ No issue
+
+
+7958288025e127b Arne Teuke 2018-04-24 13:32:11
+inital commit
+
+
+
+
+
|
+
| t |
+ + + +23 +24 +25+ |
+
+ # File 'manifests/init.pp', line 23
+
+class cd_haproxy {
+ include cd_haproxy::params
+}
+ |
+
cd_haproxy::firewall::iptables.pp +Module name: cd_haproxy +Author: Arne +Teuke (arne_teuke@confdroid.com) +License: + This file is part of cd_haproxy.
+ +cd_haproxy is used for providing automatic configuration of HA proxy. + +Copyright (C) 2017 confdroid (copyright@confdroid.com) + This program is +free software: you can redistribute it and/or modify + it under the terms of +the GNU General Public License as published by + the Free Software +Foundation, either version 3 of the License, or + (at your option) any later +version.
+ +This program is distributed in the hope that it will be useful, + but +WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License + along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +23 +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+ |
+
+ # File 'manifests/firewall/iptables.pp', line 23
+
+class cd_haproxy::firewall::iptables (
+
+) inherits cd_haproxy::params {
+
+ if ($fqdn == $hy_host_fqdn) and ($hy_manage_fw == true) {
+
+ require cd_haproxy::main::files
+
+ if $hy_proxy_mode == 'http' {
+
+ firewall { "${hy_fw_order_no}80 tcp port 80":
+ proto => 'tcp',
+ dport => '80',
+ action => 'accept',
+ }
+ }
+
+ if $hy_proxy_mode == 'tcp' {
+
+ firewall { "${hy_fw_order_no}${hy_fe_port} tcp port ${hy_fe_port}":
+ proto => 'tcp',
+ dport => $hy_fe_port,
+ action => 'accept',
+ }
+ }
+ }
+
+ if $fqdn == $hy_host_fqdn {
+
+ require cd_haproxy::main::files
+
+ }
+}
+ |
+
cd_haproxy::main::config.pp +Module name: cd_haproxy +Author: Arne Teuke +(arne_teuke@confdroid.com) +License: + This file is part of cd_haproxy.
+ +cd_haproxy is used for providing automatic configuration of HA proxy. + +Copyright (C) 2017 confdroid (copyright@confdroid.com) + This program is +free software: you can redistribute it and/or modify + it under the terms of +the GNU General Public License as published by + the Free Software +Foundation, either version 3 of the License, or + (at your option) any later +version.
+ +This program is distributed in the hope that it will be useful, + but +WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License + along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +24 +25 +26 +27 +28 +29 +30+ |
+
+ # File 'manifests/main/config.pp', line 24
+
+class cd_haproxy::main::config (
+
+) inherits cd_haproxy::params {
+
+ require cd_haproxy::server::service
+
+}
+ |
+
cd_haproxy::main::dirs.pp +Module name: cd_haproxy +Author: Arne Teuke +(arne_teuke@confdroid.com) +License: + This file is part of cd_haproxy.
+ +cd_haproxy is used for providing automatic configuration of HA proxy. + +Copyright (C) 2017 confdroid (copyright@confdroid.com) + This program is +free software: you can redistribute it and/or modify + it under the terms of +the GNU General Public License as published by + the Free Software +Foundation, either version 3 of the License, or + (at your option) any later +version.
+ +This program is distributed in the hope that it will be useful, + but +WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License + along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34+ |
+
+ # File 'manifests/main/dirs.pp', line 23
+
+class cd_haproxy::main::dirs (
+
+) inherits cd_haproxy::params {
+
+ if $fqdn == $hy_host_fqdn {
+
+ require cd_haproxy::main::install
+
+ }
+
+
+}
+ |
+
cd_haproxy::main::files.pp +Module name: cd_haproxy +Author: Arne Teuke +(arne_teuke@confdroid.com) +License: + This file is part of cd_haproxy.
+ +cd_haproxy is used for providing automatic configuration of HA proxy. + +Copyright (C) 2017 confdroid (copyright@confdroid.com) + This program is +free software: you can redistribute it and/or modify + it under the terms of +the GNU General Public License as published by + the Free Software +Foundation, either version 3 of the License, or + (at your option) any later +version.
+ +This program is distributed in the hope that it will be useful, + but +WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License + along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +23 +24 +25 +26 +27 +28 +29 +30 +31 +32+ |
+
+ # File 'manifests/main/files.pp', line 23
+
+class cd_haproxy::main::files (
+
+) inherits cd_haproxy::params {
+
+ if $fqdn == $hy_host_fqdn {
+
+ require cd_haproxy::main::dirs
+
+ }
+}
+ |
+
cd_haproxy::main::install.pp +Module name: cd_haproxy +Author: Arne Teuke +(arne_teuke@confdroid.com) +License: + This file is part of cd_haproxy.
+ +cd_haproxy is used for providing automatic configuration of HA proxy. + +Copyright (C) 2017 confdroid (copyright@confdroid.com) + This program is +free software: you can redistribute it and/or modify + it under the terms of +the GNU General Public License as published by + the Free Software +Foundation, either version 3 of the License, or + (at your option) any later +version.
+ +This program is distributed in the hope that it will be useful, + but +WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License + along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +24 +25 +26 +27 +28 +29 +30 +31+ |
+
+ # File 'manifests/main/install.pp', line 24
+
+class cd_haproxy::main::install (
+
+) inherits cd_haproxy::params {
+
+ package {$reqpackages:
+ ensure => $pkg_ensure,
+ }
+}
+ |
+
cd_haproxy::params.pp +Module name: cd_haproxy +Author: Arne Teuke +(arne_teuke@confdroid.com) +License: + This file is part of cd_haproxy.
+ +cd_haproxy is used for providing automatic configuration of HA proxy. + +Copyright (C) 2017 confdroid (copyright@confdroid.com) + This program is +free software: you can redistribute it and/or modify + it under the terms of +the GNU General Public License as published by + the Free Software +Foundation, either version 3 of the License, or + (at your option) any later +version.
+ +This program is distributed in the hope that it will be useful, + but +WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License + along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +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+ |
+
+ # File 'manifests/params.pp', line 40
+
+class cd_haproxy::params (
+
+$pkg_ensure = 'latest',
+$reqpackages = ['haproxy'],
+
+$hy_host_fqdn = "proxy.${::domain}",
+
+# firewall
+$hy_manage_fw = true,
+$hy_fw_order_no = '50',
+
+# main config
+$hy_proxy_mode = 'http',
+$hy_fe_port = '',
+$hy_be_port = '',
+
+) {
+
+# service
+$hy_service = 'haproxy'
+
+# installation section
+
+
+# includes must be last
+
+ include cd_haproxy::main::config
+
+}
+ |
+
cd_haproxy::server::service.pp +Module name: cd_haproxy +Author: Arne Teuke +(arne_teuke@confdroid.com) +License: + This file is part of cd_haproxy.
+ +cd_haproxy is used for providing automatic configuration of HA proxy. + +Copyright (C) 2017 confdroid (copyright@confdroid.com) + This program is +free software: you can redistribute it and/or modify + it under the terms of +the GNU General Public License as published by + the Free Software +Foundation, either version 3 of the License, or + (at your option) any later +version.
+ +This program is distributed in the hope that it will be useful, + but +WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License + along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38+ |
+
+ # File 'manifests/server/service.pp', line 23
+
+class cd_haproxy::server::service (
+
+) inherits cd_haproxy::params {
+
+ if $fqdn == $hy_host_fqdn {
+
+ require cd_haproxy::firewall::iptables
+
+ service { $hy_service:
+ ensure => running,
+ hasstatus => true,
+ hasrestart => true,
+ enable => true,
+ }
+ }
+}
+ |
+
-
+
|Repo Name| version | Build
Status|
|---|---|---|---|
-|cd_haproxy| 0.0.0.1 | cd_haproxy| 1.0.0.0 | {Build
Status/]|
|Repo Name| version | Build
Status|
|---|---|---|---|
-|cd_haproxy| 0.0.0.1 | cd_haproxy| 1.0.0.0 | {Build
Status/]|
-
+
+
|Repo Name| version | Build
-Status|
-|---|---|---|---|
-|cd_haproxy| 1.0.0.0 | {Build
-Status/]|
|Repo Name| version | Build Status| |—|—|—|—| |cd_haproxy|
+1.0.0.0 | |
INSTALLATION -* install binaries
+INSTALLATION * install binaries
CONFIGURATION
-SERVICE -* manage service
+SERVICE * manage service
In order to apply parameters through Foreman, cd_haproxy::params must be added to the host or hostgroup @@ -245,8 +240,7 @@ with PuppetDB (see tests/UTF_Files)
ConfDroid as entity is entirely independent from Puppet. We provide custom configuration modules, written for specific purposes and specific -environments. -The modules are tested and supported only as documented, and +environments. The modules are tested and supported only as documented, and require testing in designated environments (i.e. lab or development environments) for parameter tuning etc. before deploying into production environments.
diff --git a/doc/frames.html b/doc/frames.html index 42ca6b6..b57c778 100644 --- a/doc/frames.html +++ b/doc/frames.html @@ -2,7 +2,7 @@ -cd_haproxy::main::user.pp Module name: cd_haproxy Author: Arne Teuke +(arne_teuke@ConfDroid.com)
+ +This file is part of cd_haproxy.
+ +cd_haproxy is used for providing automatic configuration of HAproxy +Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) This program is +free software: you can redistribute it and/or modify it under the terms of +the GNU General Public License as published by the Free Software +Foundation, either version 3 of the License, or (at your option) any later +version.
+ +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +23 +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+ |
+
+ # File 'manifests/main/user.pp', line 23
+
+class cd_haproxy::main::user (
+
+) inherits cd_haproxy::params {
+
+ if $fqdn == $hy_host_fqdn {
+ require cd_haproxy::main::install
+
+ # manage user
+ user { $hy_user:
+ ensure => present,
+ name => $hy_user,
+ allowdupe => false,
+ comment => $hy_user_comment,
+ gid => $hy_user,
+ managehome => true,
+ home => $hy_user_home,
+ shell => $hy_user_shell,
+ }
+
+ group { $hy_user:
+ ensure => present,
+ name => $hy_user,
+ allowdupe => false,
+ }
+ }
+}
+ |
+