Documentation by YARD 0.9.16
-Alphabetic Index
- -Puppet Class Listing A-Z
- - -
-
-
-
|
-
Defined Type Listing A-Z
- - -
-
-
-
|
-
File Listing
--
-
-
-
- README - - -
diff --git a/.gitignore b/.gitignore index ef402d2..e6b5172 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -# gitignore for cd_haproxy +# .gitignore for cd_fail2ban .yardoc Gemfile.lock FileList +.scannerwork diff --git a/.mdl_style.rb b/.mdl_style.rb new file mode 100644 index 0000000..267f8d6 --- /dev/null +++ b/.mdl_style.rb @@ -0,0 +1,4 @@ +all +# exlude line lenght +# exclude_rule 'MD013' +rule 'MD013', :line_length => 1000 diff --git a/.mdlrc b/.mdlrc new file mode 100644 index 0000000..e5c563a --- /dev/null +++ b/.mdlrc @@ -0,0 +1,2 @@ +style '.mdl_style.rb' + diff --git a/.spelling b/.spelling index 9e12ede..78ad5bb 100644 --- a/.spelling +++ b/.spelling @@ -3,55 +3,76 @@ # global dictionary is at the start, file overrides afterwards # one word per line, to define a file override use ' - filename' # where filename is relative to this configuration file -howtos -gitlab -Gitlab.com -Gitlab -gitlab.rb -[[_TOC_]] -Hetzner -backup_information.yml -artifacts -lfs -NPM -markdownlint -mdl -Gemfiles -Kubernetes -PuppetDB -Puppet -PostgreSQL -MySQL -Nagios -Elasticstack -Apache -URL -SSH -repo -IAM -keycloak -Nevergreen -Springboot -microservices -backend -playstore -ToCs -haproxy +Readme.md +httpd +sudo selinux -frontend -cd_resources -cd_concat -concat site.pp nodes.pp -params.pp +cd_apache +:: params Foreman -hostgroup -confdroid.com -haproxy.cfg -deployment +cd_resources CentOS -5.x -class +Puppet ConfDroid +nagios +vHosts +vHost +phpMyAdmin +phpPgAdmin +parameterized +erb +Confdroid.com +UTF_Files +Elasticsearch +cd_firewall +puppetlabs +cd_elasticsearch +cd_fail2ban +Fail2Ban +intrusion +fail2ban +firewalld +prevention +management +CentOS7 +auto-installed +filebeat +Elastic +installer +Foreman +postgresql +TLS +cd_foreman +install.sh +git +cd_git +Gitlab +gitlab +gitlab-ce +gitlab.rb +psql +setup +service +user +optional +postgresql +database +via +tls +encryption +certbot +cd_postgresql +cd_certbot +cd_gitlab +sourcecode +pg_hba.conf +hiera +cd_tls +ca_chain +config +10.6.0-ce.0.el7 +10.5.4-ce.0.el7 +gitlab-ctl diff --git a/Gemfile b/Gemfile index e9584ba..49f82d7 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,7 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org' puppetversion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'] : ['<= 5.5.6'] gem 'metadata-json-lint', '~> 2.4' gem 'puppet', puppetversion -gem 'puppetlabs_spec_helper', '>= 1.0.0' +gem 'puppetlabs_spec_helper', '~> 3.0' gem 'puppet-lint' gem 'facter' gem 'rspec-puppet' @@ -15,6 +15,7 @@ gem 'rgen' gem 'public_suffix', '<= 2.0.5' gem 'parallel', '<= 1.13.0' gem 'puppet-syntax', '~> 2.6', '>= 2.6.1' +gem 'pathspec', '~> 0.2.1' # rspec must be v2 for ruby 1.8.7 if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9' diff --git a/Jenkinsfile b/Jenkinsfile index d17f3dd..68c60d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -70,6 +70,15 @@ pipeline { } } + stage('markdown-lint') { + steps { + sh ''' + source /opt/rh/rh-ruby27/enable + mdl README.md + ''' + } + } + stage('spell check') { steps { sh ''' @@ -78,21 +87,6 @@ pipeline { } } - stage('markdown-lint') { - steps { - sh ''' - source /opt/rh/rh-ruby27/enable - mdl *.md - ''' - } - } - - stage('create Puppet documention') { - steps { - sh '/opt/puppetlabs/bin/puppet strings' - } - } - stage('SonarScan') { steps { sh ''' @@ -105,6 +99,12 @@ pipeline { } } + stage('create Puppet documention') { + steps { + sh '/opt/puppetlabs/bin/puppet strings' + } + } + stage('update repo') { steps { sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) { diff --git a/doc/_index.html b/doc/_index.html deleted file mode 100644 index d590fc2..0000000 --- a/doc/_index.html +++ /dev/null @@ -1,181 +0,0 @@ - - -
- - -
-
-
-
|
-
-
-
-
|
-
| 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- |
-
- # 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
-
- firewall { "${hy_fw_order_no}${hy_http_port} tcp port ${hy_http_port}":
- proto => 'tcp',
- dport => $hy_http_port,
- action => 'accept',
- }
-
- firewall { "${hy_fw_order_no}${hy_https_port} tcp port ${hy_https_port}":
- proto => 'tcp',
- dport => $hy_https_port,
- action => 'accept',
- }
- }
-}
- |
-
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 -31- |
-
- # File 'manifests/main/config.pp', line 24
-
-class cd_haproxy::main::config (
-
-) inherits cd_haproxy::params {
-
- include cd_haproxy::server::service
- include cd_haproxy::server::proxy_test
-
-}
- |
-
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 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54- |
-
- # 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::user
-
- # main dir
- file { $hy_main_dir:
- ensure => directory,
- owner => 'root',
- group => 'root',
- mode => '0755',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- }
-
- # errors dir
- file { $hy_errors_dir:
- ensure => directory,
- owner => 'root',
- group => 'root',
- mode => '0755',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- }
- }
-}
- |
-
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 -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 -61 -62 -63 -64 -65 -66 -67 -68 -69 -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 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154- |
-
- # 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
-
- # create the concat target
- concat {$hy_main_config:
- ensure => present,
- owner => 'root',
- group => 'root',
- mode => '0640',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- notify => Service[$hy_service],
- }
-
- # create the header
- concat::fragment { 'header':
- target => $hy_main_config,
- content => template($hy_config_head_erb),
- order => '001',
- }
-
- # pid file
- file { $hy_pid:
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => haproxy_var_run_t,
- seluser => system_u,
- }
-
- # error files
- file { $hy_400_file:
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- content => template($hy_400_erb),
- notify => Service[$hy_service],
- }
-
- file { $hy_403_file:
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- content => template($hy_403_erb),
- notify => Service[$hy_service],
- }
-
- file { $hy_408_file:
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- content => template($hy_408_erb),
- notify => Service[$hy_service],
- }
-
- file { $hy_500_file:
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- content => template($hy_500_erb),
- notify => Service[$hy_service],
- }
-
- file { $hy_502_file:
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- content => template($hy_502_erb),
- notify => Service[$hy_service],
- }
-
- file { $hy_503_file:
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- content => template($hy_503_erb),
- notify => Service[$hy_service],
- }
-
- file { $hy_504_file:
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- content => template($hy_504_erb),
- notify => Service[$hy_service],
- }
- }
-}
- |
-
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 -32 -33- |
-
- # File 'manifests/main/install.pp', line 24
-
-class cd_haproxy::main::install (
-
-) inherits cd_haproxy::params {
-
- if $fqdn == $hy_host_fqdn {
- package {$reqpackages:
- ensure => $pkg_ensure,
- }
- }
-}
- |
-
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_name:
- ensure => present,
- name => $hy_user_name,
- allowdupe => false,
- comment => $hy_user_comment,
- gid => $hy_user_name,
- managehome => true,
- home => $hy_user_home,
- shell => $hy_user_shell,
- }
-
- group { $hy_user_name:
- ensure => present,
- name => $hy_user_name,
- allowdupe => false,
- }
- }
-}
- |
-
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/.
- -
- - - -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 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150- |
-
- # File 'manifests/params.pp', line 74
-
-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_http_port = '80',
-$hy_https_port = '443',
-$hy_chroot = '/var/lib/haproxy',
-$hy_pid = '/var/run/haproxy.pid',
-$hy_maxconn = '4000',
-$hy_show_stats = true,
-$hy_stats_socket = '/var/lib/haproxy/stats',
-$hy_default_mode = 'http',
-$hy_use_http_server_close = true,
-$hy_use_forward_for = true,
-$hy_use_redispatch = true,
-$hy_max_retries = '3',
-$hy_timeout_http_request = '10s',
-$hy_timeout_queue = '1m',
-$hy_timeout_connect = '10s',
-$hy_timeout_client = '1m',
-$hy_timeout_server = '1m',
-$hy_timeout_http_keep_alive = '10s',
-$hy_timeout_check = '10s',
-
-# user
-$hy_user_name = 'haproxy',
-$hy_user_comment = 'haproxy user',
-$hy_user_home = '/var/lib/haproxy',
-$hy_user_shell = '/sbin/nologin',
-
-# logging
-$hy_log_target = '127.0.0.1',
-$hy_log_facility = 'local2',
-$hy_log_default = 'global',
-$hy_use_httplog = true,
-$hy_use_dontlognull = true,
-
-) {
-
-# service
-$hy_service = 'haproxy'
-
-# directories
-$hy_main_dir = '/etc/haproxy'
-$hy_errors_dir = "${hy_main_dir}/errors"
-
-# files
-$hy_main_config = "${hy_main_dir}/haproxy.cfg"
-$hy_config_head_erb = 'cd_haproxy/haproxy_head.erb'
-$hy_400_file = "${hy_errors_dir}/400.http"
-$hy_400_erb = 'cd_haproxy/errors/400_http.erb'
-$hy_403_file = "${hy_errors_dir}/403.http"
-$hy_403_erb = 'cd_haproxy/errors/403_http.erb'
-$hy_408_file = "${hy_errors_dir}/408.http"
-$hy_408_erb = 'cd_haproxy/errors/408_http.erb'
-$hy_500_file = "${hy_errors_dir}/500.http"
-$hy_500_erb = 'cd_haproxy/errors/500_http.erb'
-$hy_502_file = "${hy_errors_dir}/502.http"
-$hy_502_erb = 'cd_haproxy/errors/502_http.erb'
-$hy_503_file = "${hy_errors_dir}/503.http"
-$hy_503_erb = 'cd_haproxy/errors/503_http.erb'
-$hy_504_file = "${hy_errors_dir}/504.http"
-$hy_504_erb = 'cd_haproxy/errors/504_http.erb'
-
-# includes must be last
-
- include cd_haproxy::main::config
-
-}
- |
-
cd_haproxy::server::proxy_test.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- |
-
- # File 'manifests/server/proxy_test.pp', line 23
-
-class cd_haproxy::server::proxy_test (
-
-) inherits cd_haproxy::params {
-
- cd_haproxy::server::proxy { 'testing':
- haproxy_fqdn => 'pxe703.studydivision.local',
- frontend_name => 'test01-frontend',
- frontend_mode => 'http',
- acl_rule => ['too_fast fe_sess_rate ge 10',
- 'network_allowed src 0.0.0.0/0'],
- fe_maxconn => '10000',
- backend_name => 'test01-backend',
- be_server_name => ['web01 web01.confdroid.com:80 check',
- 'web02 web02.confdroid.com:80 check'],
-
- }
-}
- |
-
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,
- }
- }
-}
- |
-
cd_haproxy::server::proxy.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/.
- -
- - - -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 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83- |
-
- # File 'manifests/server/proxy.pp', line 40
-
-define cd_haproxy::server::proxy (
-
-$haproxy_fqdn = undef,
-$frontend_name = undef,
-$frontend_mode = undef,
-$fe_use_backend = '',
-$fe_bind_mode = '*:80',
-$frontend_order = '010',
-$acl_rule = '',
-$acl_order = '020',
-$backend_name = undef,
-$backend_order = '030',
-$fe_maxconn = undef,
-$be_server_name = undef,
-
-
-) {
-
-$hy_main_config = '/etc/haproxy/haproxy.cfg'
-$hy_frontendrule = 'cd_haproxy/haproxy_frontend_rule.erb'
-$hy_backendrule = 'cd_haproxy/haproxy_backend_rule.erb'
-$hy_acl_rule = 'cd_haproxy/haproxy_acl_rule.erb'
-
- # create frontend section
- concat::fragment { "frontend_${name}":
- target => $hy_main_config,
- content => template($hy_frontendrule),
- order => $frontend_order,
- }
-
- # create acl section
- concat::fragment { "acl_${name}":
- target => $hy_main_config,
- content => template($hy_acl_rule),
- order => $acl_order,
- }
-
- # create backend section
- concat::fragment { "backend_${name}":
- target => $hy_main_config,
- content => template($hy_backendrule),
- order => $backend_order,
- }
-}
- |
-