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
fbf22eb6
Commit
fbf22eb6
authored
10 years ago
by
Quentin MACHU
Browse files
Options
Downloads
Patches
Plain Diff
Moved HAProxy from the role::endpoint to its own profile::haproxy
parent
40cafef9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/profile/haproxy.pp
+118
-0
118 additions, 0 deletions
manifests/profile/haproxy.pp
manifests/role/endpoint.pp
+3
-119
3 additions, 119 deletions
manifests/role/endpoint.pp
with
121 additions
and
119 deletions
manifests/profile/haproxy.pp
0 → 100644
+
118
−
0
View file @
fbf22eb6
class
iaas::role::endpoint
(
$haproxy_ip
,
$haproxy_port
)
{
class
{
'haproxy'
:
}
haproxy::listen
{
'galera'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'3306'
,
options
=>
{
'option'
=>
[
'httpchk'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'rabbitmq'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'5672'
,
options
=>
{
'option'
=>
[
'clitcpka'
],
'balance'
=>
'source'
,
'timeout client'
=>
'1h'
,
'timeout server'
=>
'1h'
,
}
}
haproxy::listen
{
'keystone_admin_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'35357'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'keystone_public_internal_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'5000'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'glance_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'9292'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'glance_registry_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'9191'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'cinder_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'8776'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'nova_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'8774'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'neutron_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'9696'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'heat_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'8004'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'horizon_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'http'
,
ports
=>
'80'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
}
This diff is collapsed.
Click to expand it.
manifests/role/endpoint.pp
+
3
−
119
View file @
fbf22eb6
class
iaas::role::endpoint
(
$haproxy_ip
,
$haproxy_port
)
{
# Base
class
{
'iaas::profile::base'
:
}
->
# HAProxy
class
{
'haproxy'
:
}
haproxy::listen
{
'galera'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'3306'
,
options
=>
{
'option'
=>
[
'httpchk'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'rabbitmq'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'5672'
,
options
=>
{
'option'
=>
[
'clitcpka'
],
'balance'
=>
'source'
,
'timeout client'
=>
'1h'
,
'timeout server'
=>
'1h'
,
}
}
haproxy::listen
{
'keystone_admin_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'35357'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'keystone_public_internal_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'5000'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'glance_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'9292'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'glance_registry_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'9191'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'cinder_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'8776'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'nova_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'8774'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'neutron_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'9696'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'heat_api_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'tcp'
,
ports
=>
'8004'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
haproxy::listen
{
'horizon_cluster'
:
ipaddress
=>
'0.0.0.0'
,
mode
=>
'http'
,
ports
=>
'80'
,
options
=>
{
'option'
=>
[
'tcpka'
,
'httpchk'
,
'tcplog'
],
'balance'
=>
'source'
,
}
}
)
{
class
{
'iaas::profile::base'
:
}
class
{
'iaas::profile::haproxy'
:
}
}
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