From 8fa9a83b992f1b105d4105ea05b82d807ebbd76a Mon Sep 17 00:00:00 2001 From: Jenkins ConfDroid Date: Tue, 1 Dec 2020 19:49:52 +0100 Subject: [PATCH 1/6] recommit for updates in build 67 --- REPOSTRUCTURE.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/REPOSTRUCTURE.md b/REPOSTRUCTURE.md index f325c24..7d68709 100644 --- a/REPOSTRUCTURE.md +++ b/REPOSTRUCTURE.md @@ -59,11 +59,10 @@ | `-- haproxy_head.erb |-- tests | `-- UTF_Files -|-- CHANGELOG.md |-- Gemfile |-- Gemfile.lock |-- Jenkinsfile |-- LICENSE `-- README.md -12 directories, 54 files +12 directories, 53 files From c5fdd79084739e2974fce3649dbfbdb4ad6a2017 Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Sat, 2 Jan 2021 20:29:47 +0100 Subject: [PATCH 2/6] Delete REPOSTRUCTURE.md --- REPOSTRUCTURE.md | 68 ------------------------------------------------ 1 file changed, 68 deletions(-) delete mode 100644 REPOSTRUCTURE.md diff --git a/REPOSTRUCTURE.md b/REPOSTRUCTURE.md deleted file mode 100644 index 7d68709..0000000 --- a/REPOSTRUCTURE.md +++ /dev/null @@ -1,68 +0,0 @@ -. -|-- doc -| |-- css -| | |-- common.css -| | |-- full_list.css -| | `-- style.css -| |-- js -| | |-- app.js -| | |-- full_list.js -| | `-- jquery.js -| |-- puppet_classes -| | |-- cd_haproxy_3A_3Afirewall_3A_3Aiptables.html -| | |-- cd_haproxy_3A_3Amain_3A_3Aconfig.html -| | |-- cd_haproxy_3A_3Amain_3A_3Adirs.html -| | |-- cd_haproxy_3A_3Amain_3A_3Afiles.html -| | |-- cd_haproxy_3A_3Amain_3A_3Ainstall.html -| | |-- cd_haproxy_3A_3Amain_3A_3Auser.html -| | |-- cd_haproxy_3A_3Aparams.html -| | |-- cd_haproxy_3A_3Aserver_3A_3Aproxy_test.html -| | |-- cd_haproxy_3A_3Aserver_3A_3Aservice.html -| | `-- cd_haproxy.html -| |-- puppet_defined_types -| | `-- cd_haproxy_3A_3Aserver_3A_3Aproxy.html -| |-- file.README.html -| |-- frames.html -| |-- _index.html -| |-- index.html -| |-- puppet_class_list.html -| |-- puppet_defined_type_list.html -| `-- top-level-namespace.html -|-- manifests -| |-- firewall -| | `-- iptables.pp -| |-- main -| | |-- config.pp -| | |-- dirs.pp -| | |-- files.pp -| | |-- install.pp -| | `-- user.pp -| |-- server -| | |-- proxy.pp -| | |-- proxy_test.pp -| | `-- service.pp -| |-- init.pp -| `-- params.pp -|-- templates -| |-- errors -| | |-- 400_http.erb -| | |-- 403_http.erb -| | |-- 408_http.erb -| | |-- 500_http.erb -| | |-- 502_http.erb -| | |-- 503_http.erb -| | `-- 504_http.erb -| |-- haproxy_acl_rule.erb -| |-- haproxy_backend_rule.erb -| |-- haproxy.cfg -| |-- haproxy_frontend_rule.erb -| `-- haproxy_head.erb -|-- tests -| `-- UTF_Files -|-- Gemfile -|-- Gemfile.lock -|-- Jenkinsfile -|-- LICENSE -`-- README.md - -12 directories, 53 files From 5117acd7c3ca1785746ee2a5d25fe84577fc218e Mon Sep 17 00:00:00 2001 From: Jenkins ConfDroid Date: Sat, 2 Jan 2021 22:35:04 +0100 Subject: [PATCH 3/6] recommit for updates in build 107 --- .scannerwork/.sonar_lock | 0 .scannerwork/report-task.txt | 6 ++ doc/file.README.html | 187 ++++++++++++++--------------------- doc/index.html | 187 ++++++++++++++--------------------- 4 files changed, 154 insertions(+), 226 deletions(-) create mode 100644 .scannerwork/.sonar_lock create mode 100644 .scannerwork/report-task.txt diff --git a/.scannerwork/.sonar_lock b/.scannerwork/.sonar_lock new file mode 100644 index 0000000..e69de29 diff --git a/.scannerwork/report-task.txt b/.scannerwork/report-task.txt new file mode 100644 index 0000000..1ccfec8 --- /dev/null +++ b/.scannerwork/report-task.txt @@ -0,0 +1,6 @@ +projectKey=confdroid_kubernetes +serverUrl=http://sonarqube.confdroid.com +serverVersion=7.9.1.27448 +dashboardUrl=http://sonarqube.confdroid.com/dashboard?id=confdroid_kubernetes +ceTaskId=AXbFBnlxjqhs1DgyZKhw +ceTaskUrl=http://sonarqube.confdroid.com/api/ce/task?id=AXbFBnlxjqhs1DgyZKhw diff --git a/doc/file.README.html b/doc/file.README.html index 476a718..ff33232 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -61,98 +61,76 @@

|

-

Synopsis

+

[[TOC]]

+ +

Synopsis

HA Proxy is a very powerful and popular open source load -balanacer to balance incoming requests between multiple instances of web-, +balancer to balance incoming requests between multiple instances of web-, application- or database servers etc.

cd_haproxy automates installation and configuration of HA proxy including self-healing, monitoring and firewall etc.

-

WARNING

+

WARNING

**__!!! Attention: Never use this puppet module on systems which have been previously configured manually. It is impossible to predict how and -what would have been configured, hence previuos configurations outside the +what would have been configured, hence previous configurations outside the scope of this module may be overwritten! Automated configurations require a test environment to verify that the module suits the purpose intended by the user, as well as tune the parameters, before deploying into live production!!! __**

-

Table of Contents

+

Features

+ +

INSTALLATION

-

Features

+

CONFIGURATION

+
  • +

    manage haproxy user

    +
  • +

    manage directories (file system permissions, selinux context)

    +
  • +

    manage files (file system permissions, content, selinux context)

    +
  • +

    manage proxy instances through a define

    +
  • +

    frontend options

    +
  • +

    backend options

    +
  • +

    ACL options

    +
-

INSTALLATION * install rpm binaries

+

SERVICE

+
  • +

    manage haproxy service

    +
  • +

    restart service after changes in the configuration

    +
-

CONFIGURATION * manage haproxy user * manage directories (file system -permissions, selinux context) * manage files (file system permissions, -content, selinux context) * manage proxy instances through a define * -frontend options * backend options * ACL options

+

Puppet Documentation

-

SERVICE * manage haproxy service * restart service after changes in the -configuration

- -

Repo Structure

- -

Repostructure has moved to REPOSTRUCTURE.md in repo.

- -

Repo Documentation

- -

See the full Puppet documentation in docs/index.html

- -

Dependencies

+

Dependencies

All dependencies must be included in the catalogue.

-

Deployment

+

Deployment

-
native Puppet deployment
+

native Puppet deployment

via site.pp or nodes.pp

@@ -160,41 +138,30 @@ managing file fragments

include cd_haproxy } -

through Foreman:

+

through Foreman

-

In order to apply parameters through Foreman, -cd_haproxy::params must be added to the host or hostgroup -in question.

+

Add params.pp to the host or hostgroup.

See more -details about class deployment on Confdroid.com.

+href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">details.

-

Parameters

+

Documentation

-

The following parameters are editable via params.pp or through ENC -(recommended). Values changed will take immediate effect -at next puppet run. Services will be restarted where neccessary.

+

Parameters

-

The full -list of Parameters is available here and in -the docs folder in the software repo.

+

The parameters are defined and described in params.pp. The +documentation is provided via puppet strings in HTML format, +please see doc/index.html via web browser.

-

Mandatory Parameters

-
  • -

    hy_host_fqdn: Specify the FQDN of the host(s) where HA proxy -should be running. The module will install it only on the host in question.

    -
+

Proxy Configuration

-

Optional Parameters

+

Via Define

-

Proxy Configuration

- -

The proxy instances are configured in /etc/haproxy/haproxy.cfg, which is -concatenated from various templates through a define in this puppet module. -In order to create proxy instances, you will need an external class, which -addresses the define, like so:

+

The proxy instances are configured in +/etc/haproxy/haproxy.cfg, which is concatenated from various +templates through a define in this puppet module. In order to create proxy +instances, you will need an external class, which addresses the define, +like so:

cd_haproxy::server::proxy { 'testing':
     haproxy_fqdn    =>  'node.example.net',
@@ -205,65 +172,59 @@ addresses the define, like so:

backend_name => 'test01-backend', }
-

This allows the puppet module to create the sections in the configuration -file as required. The haproxy service will be restarted after the changes -in the configuration file are made. haproxy_fqdn -must contain the fqdn of the haproxy -server where this should be configured, otherwise the -templates are not being populated. Multiple ACLs need to be added as array, -and will create one line each.

+

This class should be placed in an internal configuration repo specific to +your environment.

-

SELINUX

+

SELINUX

All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.

-

Known Problems

+

Known Problems

-

Support

+

Support

  • OS: CentOS 7

  • Puppet 5.x

-

Tests

+

Tests

  • Puppet Lint

  • excluded tests:

    • -

      --no-class_inherits_from_params_class-check:relavant only to +

      --no-class_inherits_from_params_class-check:relevant only to non-supported outdated puppet versions

    • --no-variable_scope-check: not applicable as we are inheriting -parameters from params class. the lint check does not distinguish between -facts and inherited parameters.

      +parameters from the params class. the lint check does not distinguish +between facts and inherited parameters.

    • -

      --no-80chars-check: it is not always possible to stay within -80 characters, although typically only occurring on the parameter vault +

      --no-80chars-check: it is not always possible to stay within +80 characters, although typically only occurring on the parameter vault params.pp.

    • --no-arrow_alignment-check: this check leads to actually not -having am easily readable arrow alignment, as this checks per -block, not per class.

      +having easily readable arrow alignments, as this checks per +block, not per class.

  • Puppet Parser

  • ERB Template Parser

  • -

    Test for unwanted UTF8 files in the Puppet code as this causes problems -with PuppetDB (see tests/UTF_Files)

    - -

    Contact Us

    - -

    contact Us

    +

    Test for unwanted UTF8 files

-

Disclaimer

+

Contact Us

-

ConfDroid as entity is entirely independent from Puppet. We provide custom +

contact Us

+ +

Disclaimer

+ +

ConfDroid as entity is 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 require testing in designated environments (i.e. lab or development diff --git a/doc/index.html b/doc/index.html index dc57f2c..7c8cf3e 100644 --- a/doc/index.html +++ b/doc/index.html @@ -61,98 +61,76 @@

|

-

Synopsis

+

[[TOC]]

+ +

Synopsis

HA Proxy is a very powerful and popular open source load -balanacer to balance incoming requests between multiple instances of web-, +balancer to balance incoming requests between multiple instances of web-, application- or database servers etc.

cd_haproxy automates installation and configuration of HA proxy including self-healing, monitoring and firewall etc.

-

WARNING

+

WARNING

**__!!! Attention: Never use this puppet module on systems which have been previously configured manually. It is impossible to predict how and -what would have been configured, hence previuos configurations outside the +what would have been configured, hence previous configurations outside the scope of this module may be overwritten! Automated configurations require a test environment to verify that the module suits the purpose intended by the user, as well as tune the parameters, before deploying into live production!!! __**

-

Table of Contents

+

Features

+ +

INSTALLATION

-

Features

+

CONFIGURATION

+
  • +

    manage haproxy user

    +
  • +

    manage directories (file system permissions, selinux context)

    +
  • +

    manage files (file system permissions, content, selinux context)

    +
  • +

    manage proxy instances through a define

    +
  • +

    frontend options

    +
  • +

    backend options

    +
  • +

    ACL options

    +
-

INSTALLATION * install rpm binaries

+

SERVICE

+
  • +

    manage haproxy service

    +
  • +

    restart service after changes in the configuration

    +
-

CONFIGURATION * manage haproxy user * manage directories (file system -permissions, selinux context) * manage files (file system permissions, -content, selinux context) * manage proxy instances through a define * -frontend options * backend options * ACL options

+

Puppet Documentation

-

SERVICE * manage haproxy service * restart service after changes in the -configuration

- -

Repo Structure

- -

Repostructure has moved to REPOSTRUCTURE.md in repo.

- -

Repo Documentation

- -

See the full Puppet documentation in docs/index.html

- -

Dependencies

+

Dependencies

All dependencies must be included in the catalogue.

-

Deployment

+

Deployment

-
native Puppet deployment
+

native Puppet deployment

via site.pp or nodes.pp

@@ -160,41 +138,30 @@ managing file fragments

include cd_haproxy } -

through Foreman:

+

through Foreman

-

In order to apply parameters through Foreman, -cd_haproxy::params must be added to the host or hostgroup -in question.

+

Add params.pp to the host or hostgroup.

See more -details about class deployment on Confdroid.com.

+href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">details.

-

Parameters

+

Documentation

-

The following parameters are editable via params.pp or through ENC -(recommended). Values changed will take immediate effect -at next puppet run. Services will be restarted where neccessary.

+

Parameters

-

The full -list of Parameters is available here and in -the docs folder in the software repo.

+

The parameters are defined and described in params.pp. The +documentation is provided via puppet strings in HTML format, +please see doc/index.html via web browser.

-

Mandatory Parameters

-
  • -

    hy_host_fqdn: Specify the FQDN of the host(s) where HA proxy -should be running. The module will install it only on the host in question.

    -
+

Proxy Configuration

-

Optional Parameters

+

Via Define

-

Proxy Configuration

- -

The proxy instances are configured in /etc/haproxy/haproxy.cfg, which is -concatenated from various templates through a define in this puppet module. -In order to create proxy instances, you will need an external class, which -addresses the define, like so:

+

The proxy instances are configured in +/etc/haproxy/haproxy.cfg, which is concatenated from various +templates through a define in this puppet module. In order to create proxy +instances, you will need an external class, which addresses the define, +like so:

cd_haproxy::server::proxy { 'testing':
     haproxy_fqdn    =>  'node.example.net',
@@ -205,65 +172,59 @@ addresses the define, like so:

backend_name => 'test01-backend', }
-

This allows the puppet module to create the sections in the configuration -file as required. The haproxy service will be restarted after the changes -in the configuration file are made. haproxy_fqdn -must contain the fqdn of the haproxy -server where this should be configured, otherwise the -templates are not being populated. Multiple ACLs need to be added as array, -and will create one line each.

+

This class should be placed in an internal configuration repo specific to +your environment.

-

SELINUX

+

SELINUX

All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.

-

Known Problems

+

Known Problems

-

Support

+

Support

  • OS: CentOS 7

  • Puppet 5.x

-

Tests

+

Tests

  • Puppet Lint

  • excluded tests:

    • -

      --no-class_inherits_from_params_class-check:relavant only to +

      --no-class_inherits_from_params_class-check:relevant only to non-supported outdated puppet versions

    • --no-variable_scope-check: not applicable as we are inheriting -parameters from params class. the lint check does not distinguish between -facts and inherited parameters.

      +parameters from the params class. the lint check does not distinguish +between facts and inherited parameters.

    • -

      --no-80chars-check: it is not always possible to stay within -80 characters, although typically only occurring on the parameter vault +

      --no-80chars-check: it is not always possible to stay within +80 characters, although typically only occurring on the parameter vault params.pp.

    • --no-arrow_alignment-check: this check leads to actually not -having am easily readable arrow alignment, as this checks per -block, not per class.

      +having easily readable arrow alignments, as this checks per +block, not per class.

  • Puppet Parser

  • ERB Template Parser

  • -

    Test for unwanted UTF8 files in the Puppet code as this causes problems -with PuppetDB (see tests/UTF_Files)

    - -

    Contact Us

    - -

    contact Us

    +

    Test for unwanted UTF8 files

-

Disclaimer

+

Contact Us

-

ConfDroid as entity is entirely independent from Puppet. We provide custom +

contact Us

+ +

Disclaimer

+ +

ConfDroid as entity is 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 require testing in designated environments (i.e. lab or development From 33865b82bd47b6fab07ef4ea665253dea6612d3b Mon Sep 17 00:00:00 2001 From: Jenkins ConfDroid Date: Mon, 4 Jan 2021 16:24:41 +0100 Subject: [PATCH 4/6] recommit for updates in build 108 --- .scannerwork/report-task.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.scannerwork/report-task.txt b/.scannerwork/report-task.txt index 1ccfec8..3e2f9ba 100644 --- a/.scannerwork/report-task.txt +++ b/.scannerwork/report-task.txt @@ -1,6 +1,6 @@ -projectKey=confdroid_kubernetes +projectKey=cd_haproxy serverUrl=http://sonarqube.confdroid.com serverVersion=7.9.1.27448 -dashboardUrl=http://sonarqube.confdroid.com/dashboard?id=confdroid_kubernetes -ceTaskId=AXbFBnlxjqhs1DgyZKhw -ceTaskUrl=http://sonarqube.confdroid.com/api/ce/task?id=AXbFBnlxjqhs1DgyZKhw +dashboardUrl=http://sonarqube.confdroid.com/dashboard?id=cd_haproxy +ceTaskId=AXbOABWGjqhs1DgyZKh3 +ceTaskUrl=http://sonarqube.confdroid.com/api/ce/task?id=AXbOABWGjqhs1DgyZKh3 From 5c589be5c6f421514dde13df68c3ccf9b25aea11 Mon Sep 17 00:00:00 2001 From: Jenkins ConfDroid Date: Mon, 4 Jan 2021 16:29:18 +0100 Subject: [PATCH 5/6] recommit for updates in build 109 --- .scannerwork/report-task.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scannerwork/report-task.txt b/.scannerwork/report-task.txt index 3e2f9ba..1b8d6ec 100644 --- a/.scannerwork/report-task.txt +++ b/.scannerwork/report-task.txt @@ -2,5 +2,5 @@ projectKey=cd_haproxy serverUrl=http://sonarqube.confdroid.com serverVersion=7.9.1.27448 dashboardUrl=http://sonarqube.confdroid.com/dashboard?id=cd_haproxy -ceTaskId=AXbOABWGjqhs1DgyZKh3 -ceTaskUrl=http://sonarqube.confdroid.com/api/ce/task?id=AXbOABWGjqhs1DgyZKh3 +ceTaskId=AXbOBFF6jqhs1DgyZKh5 +ceTaskUrl=http://sonarqube.confdroid.com/api/ce/task?id=AXbOBFF6jqhs1DgyZKh5 From a2c81360135edc437d2e94ad5e174d2621201c86 Mon Sep 17 00:00:00 2001 From: Jenkins ConfDroid Date: Mon, 4 Jan 2021 16:32:39 +0100 Subject: [PATCH 6/6] recommit for updates in build 110 --- .scannerwork/report-task.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scannerwork/report-task.txt b/.scannerwork/report-task.txt index 1b8d6ec..da998f0 100644 --- a/.scannerwork/report-task.txt +++ b/.scannerwork/report-task.txt @@ -2,5 +2,5 @@ projectKey=cd_haproxy serverUrl=http://sonarqube.confdroid.com serverVersion=7.9.1.27448 dashboardUrl=http://sonarqube.confdroid.com/dashboard?id=cd_haproxy -ceTaskId=AXbOBFF6jqhs1DgyZKh5 -ceTaskUrl=http://sonarqube.confdroid.com/api/ce/task?id=AXbOBFF6jqhs1DgyZKh5 +ceTaskId=AXbOB2K8jqhs1DgyZKh6 +ceTaskUrl=http://sonarqube.confdroid.com/api/ce/task?id=AXbOB2K8jqhs1DgyZKh6