Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iaas-ha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OCP-TOOLS
iaas-ha
Commits
e7922ace
Commit
e7922ace
authored
9 years ago
by
Giovanni Zizzi
Browse files
Options
Downloads
Patches
Plain Diff
added haproxy configuration about percona_cluster
parent
a4375aaf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!8
Development
,
!6
Rhmk ha
,
!4
Dev rhmk
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/hieradata/common.yaml
+6
-4
6 additions, 4 deletions
examples/hieradata/common.yaml
manifests/profile/database.pp
+7
-7
7 additions, 7 deletions
manifests/profile/database.pp
manifests/profile/haproxy.pp
+22
-5
22 additions, 5 deletions
manifests/profile/haproxy.pp
with
35 additions
and
16 deletions
examples/hieradata/common.yaml
+
6
−
4
View file @
e7922ace
...
...
@@ -12,10 +12,12 @@ iaas::profile::base::ntp_servers: [ntp.cnaf.infn.it, pool.ntp.org]
#iaas::profile::base::ntp_servers: [puppet]
# Endpoints
iaas::role::endpoint::servers
:
[
ocp-ubuntu15
,
ocp-ubuntu16
,
ocp-ubuntu17
]
# List of load-balancers
iaas::role::endpoint::main_hostname
:
'
ocp-ubuntu15'
iaas::role::endpoint::main_address
:
ocp-ubuntu15
# The main virtual address pointing to the load-balancers
#iaas::role::endpoint::servers: [ocp-ubuntu15, ocp-ubuntu16, ocp-ubuntu17] # List of load-balancers
#iaas::role::endpoint::main_hostname: 'ocp-ubuntu15'
#iaas::role::endpoint::main_address: ocp-ubuntu15 # The main virtual address pointing to the load-balancers
iaas::role::haproxy::servers
:
[
ocp-ubuntu15
,
ocp-ubuntu16
,
ocp-ubuntu17
]
iaas::role::haproxy::ipaddresses_server
:
[
131.154.100.160
,
131.154.100.164
,
131.154.100.166
]
iaas::profile::haproxy::stats_enabled
:
true
iaas::profile::haproxy::stats_ports
:
[
1936
]
iaas::profile::haproxy::stats_refresh
:
"
30s"
...
...
This diff is collapsed.
Click to expand it.
manifests/profile/database.pp
+
7
−
7
View file @
e7922ace
...
...
@@ -21,7 +21,7 @@ class iaas::profile::database (
mysql_cluster_servers
=>
$mysql_cluster_servers
,
mysql_port
=>
$mysql_port
,
master
=>
$percona_master
,
}
->
iaas::resources::database
{
'keystone'
:
}
}
# class { 'galera':
# galera_servers => $servers,
# galera_master => $galera_master,
...
...
@@ -32,11 +32,11 @@ class iaas::profile::database (
# }
# } -> Service['mysqld'] -> anchor { 'database-service': }
#
#
@@haproxy::balancermember { "
gal
er
a
_${::fqdn}":
#
listening_service => '
gal
er
a
',
#
server_names => $::hostname,
#
ipaddresses => $::ipaddress,
#
ports => '3306',
@@
haproxy::balancermember
{
"
percona_clust
er_
${::fqdn}
"
:
listening_service
=>
'
percona_clust
er'
,
server_names
=>
$::hostname
,
ipaddresses
=>
$::ipaddress
,
ports
=>
'3306'
,
# options => 'check port 9200 inter 2000 rise 2 fall 5 backup',
#
}
}
}
This diff is collapsed.
Click to expand it.
manifests/profile/haproxy.pp
+
22
−
5
View file @
e7922ace
...
...
@@ -8,6 +8,13 @@ class iaas::profile::haproxy (
)
{
class
{
'::haproxy'
:
defaults_options
=>
{
'mode'
=>
'http'
,
'log'
=>
'global'
,
'option'
=>
[
'tcplog'
,
'dontlognull'
,
'redispatch'
,
],
'retries'
=>
'3'
,
'timeout'
=>
[
'http-request 10s'
,
...
...
@@ -15,9 +22,10 @@ class iaas::profile::haproxy (
'connect 10s'
,
'client 1m'
,
'server 1m'
,
'http-keep-alive 10s'
,
'check 10s'
,
],
'maxconn'
=>
'
8
09
2
'
,
'maxconn'
=>
'
4
09
6
'
,
},
}
...
...
@@ -39,16 +47,25 @@ class iaas::profile::haproxy (
}
}
haproxy::listen
{
'
gal
er
a
'
:
haproxy::listen
{
'
percona_clust
er'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'3306'
,
options
=>
{
'option'
=>
[
'httpchk'
],
'option'
=>
[
'httpchk'
,
'tcpka'
],
'balance'
=>
'leastconn'
,
}
}
# haproxy::listen { 'rabbitmq':
haproxy::balancermember
{
'percona_cluster_bm'
:
listening_service
=>
'percona_cluster'
,
ports
=>
'3307'
,
server_names
=>
hiera
(
'iaas::role::haproxy::servers'
,
undef
),
ipaddresses
=>
hiera
(
'iaas::role::haproxy::ipaddresses_server'
,
undef
),
options
=>
'check port 9200'
,
}
# haproxy::listen { 'rabbitmq':
# ipaddress => '0.0.0.0',
# mode => 'tcp',
# ports => '5672',
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment