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
41756152
Commit
41756152
authored
9 years ago
by
Riccardo Bucchi
Browse files
Options
Downloads
Patches
Plain Diff
update site.pp with regione marche data.
parent
c5c3940a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/manifests/site.pp
+143
-35
143 additions, 35 deletions
examples/manifests/site.pp
with
143 additions
and
35 deletions
examples/manifests/site.pp
+
143
−
35
View file @
41756152
...
...
@@ -12,37 +12,84 @@ $vip = '192.168.0.127'
## HAPROXY
$ha_servers
=
{
priority_hostname
=>
'ocp-tb-1'
,
priority_ip
=>
'1
92.168.0.18
'
,
priority_ip
=>
'1
0.101.32.x
'
,
hostnames
=>
[
'ocp-tb-2'
,
'ocp-tb-3'
],
ips
=>
[
'1
92.168.0.19'
,
'192.168.0.20
'
],
ips
=>
[
'1
0.101.32.x'
,
'10.101.32.x
'
],
}
# controller hostnames and ips
$haproxy_controller_hosts
=
[
'ocp-tb-7'
,
'ocp-tb-8'
]
$haproxy_controller_ips
=
[
'1
92.168.0.31'
,
'192.168.0
.32'
]
$haproxy_controller_ips
=
[
'1
0.101.32.x'
,
'10.101
.32
.x
'
]
## PERCONA
# every openstack user must be created on rhmk servers. '%' is mysql wildcard.
$mysql_grant_hostname
=
'192.168.0.%'
$mysql_grant_hostname1
=
'10.101.32.x'
$mysql_grant_hostname2
=
'10.101.32.x'
$mysql_grant_hostname3
=
'10.101.32.x'
$mysql_users
=
{
"keystone@
${mysql_grant_hostname}
"
=>
{
# HOSTNAME1 ===========================================
"keystone@
${mysql_grant_hostname1}
"
=>
{
password_hash
=>
mysql_password
(
'keystone'
),
},
"glance@
${mysql_grant_hostname}
"
=>
{
"glance@
${mysql_grant_hostname
1
}
"
=>
{
password_hash
=>
mysql_password
(
'glance'
),
},
"nova@
${mysql_grant_hostname}
"
=>
{
"nova@
${mysql_grant_hostname
1
}
"
=>
{
password_hash
=>
mysql_password
(
'nova'
),
},
"cinder@
${mysql_grant_hostname}
"
=>
{
"cinder@
${mysql_grant_hostname
1
}
"
=>
{
password_hash
=>
mysql_password
(
'cinder'
),
},
"neutron@
${mysql_grant_hostname}
"
=>
{
"neutron@
${mysql_grant_hostname
1
}
"
=>
{
password_hash
=>
mysql_password
(
'neutron'
),
},
"ceilometer@
${mysql_grant_hostname}
"
=>
{
"ceilometer@
${mysql_grant_hostname
1
}
"
=>
{
password_hash
=>
mysql_password
(
'ceilometer'
),
},
"heat@
${mysql_grant_hostname}
"
=>
{
"heat@
${mysql_grant_hostname1}
"
=>
{
password_hash
=>
mysql_password
(
'heat'
),
},
# HOSTNAME2 ===========================================
"keystone@
${mysql_grant_hostname2}
"
=>
{
password_hash
=>
mysql_password
(
'keystone'
),
},
"glance@
${mysql_grant_hostname2}
"
=>
{
password_hash
=>
mysql_password
(
'glance'
),
},
"nova@
${mysql_grant_hostname2}
"
=>
{
password_hash
=>
mysql_password
(
'nova'
),
},
"cinder@
${mysql_grant_hostname2}
"
=>
{
password_hash
=>
mysql_password
(
'cinder'
),
},
"neutron@
${mysql_grant_hostname2}
"
=>
{
password_hash
=>
mysql_password
(
'neutron'
),
},
"ceilometer@
${mysql_grant_hostname2}
"
=>
{
password_hash
=>
mysql_password
(
'ceilometer'
),
},
"heat@
${mysql_grant_hostname2}
"
=>
{
password_hash
=>
mysql_password
(
'heat'
),
},
# HOSTNAME3 ===========================================
"keystone@
${mysql_grant_hostname3}
"
=>
{
password_hash
=>
mysql_password
(
'keystone'
),
},
"glance@
${mysql_grant_hostname3}
"
=>
{
password_hash
=>
mysql_password
(
'glance'
),
},
"nova@
${mysql_grant_hostname3}
"
=>
{
password_hash
=>
mysql_password
(
'nova'
),
},
"cinder@
${mysql_grant_hostname3}
"
=>
{
password_hash
=>
mysql_password
(
'cinder'
),
},
"neutron@
${mysql_grant_hostname3}
"
=>
{
password_hash
=>
mysql_password
(
'neutron'
),
},
"ceilometer@
${mysql_grant_hostname3}
"
=>
{
password_hash
=>
mysql_password
(
'ceilometer'
),
},
"heat@
${mysql_grant_hostname3}
"
=>
{
password_hash
=>
mysql_password
(
'heat'
),
},
}
...
...
@@ -60,33 +107,92 @@ $mysql_databases = {
# assign grants for every string user@host/database.table
$mysql_grants
=
{
"keystone@
${mysql_grant_hostname}
/keystone.*"
=>
{
user
=>
"keystone@
${mysql_grant_hostname}
"
,
table
=>
'keystone.*'
,
# HOSTNAME1 ===========================================
"keystone@
${mysql_grant_hostname1}
/keystone.*"
=>
{
user
=>
"keystone@
${mysql_grant_hostname1}
"
,
table
=>
'keystone.*'
,
},
"glance@
${mysql_grant_hostname1}
/glance.*"
=>
{
user
=>
"glance@
${mysql_grant_hostname1}
"
,
table
=>
'glance.*'
,
},
"nova@
${mysql_grant_hostname1}
/nova.*"
=>
{
user
=>
"nova@
${mysql_grant_hostname1}
"
,
table
=>
'nova.*'
,
},
"cinder@
${mysql_grant_hostname1}
/cinder.*"
=>
{
user
=>
"cinder@
${mysql_grant_hostname1}
"
,
table
=>
'cinder.*'
,
},
"neutron@
${mysql_grant_hostname1}
/neutron.*"
=>
{
user
=>
"neutron@
${mysql_grant_hostname1}
"
,
table
=>
'neutron.*'
,
},
"ceilometer@
${mysql_grant_hostname1}
/ceilometer.*"
=>
{
user
=>
"ceilometer@
${mysql_grant_hostname1}
"
,
table
=>
'ceilometer.*'
,
},
"heat@
${mysql_grant_hostname1}
/heat.*"
=>
{
user
=>
"heat@
${mysql_grant_hostname1}
"
,
table
=>
'heat.*'
,
},
"glance@
${mysql_grant_hostname}
/glance.*"
=>
{
user
=>
"glance@
${mysql_grant_hostname}
"
,
table
=>
'glance.*'
,
# HOSTNAME2 ===========================================
"keystone@
${mysql_grant_hostname2}
/keystone.*"
=>
{
user
=>
"keystone@
${mysql_grant_hostname2}
"
,
table
=>
'keystone.*'
,
},
"
nova
@
${mysql_grant_hostname}
/
nova
.*"
=>
{
user
=>
"
nova
@
${mysql_grant_hostname}
"
,
table
=>
'
nova
.*'
,
"
glance
@
${mysql_grant_hostname
2
}
/
glance
.*"
=>
{
user
=>
"
glance
@
${mysql_grant_hostname
2
}
"
,
table
=>
'
glance
.*'
,
},
"
cinder
@
${mysql_grant_hostname}
/
cinder
.*"
=>
{
user
=>
"
cinder
@
${mysql_grant_hostname}
"
,
table
=>
'
cinder
.*'
,
"
nova
@
${mysql_grant_hostname
2
}
/
nova
.*"
=>
{
user
=>
"
nova
@
${mysql_grant_hostname
2
}
"
,
table
=>
'
nova
.*'
,
},
"
neutron
@
${mysql_grant_hostname}
/
neutron
.*"
=>
{
user
=>
"
neutron
@
${mysql_grant_hostname}
"
,
table
=>
'
neutron
.*'
,
"
cinder
@
${mysql_grant_hostname
2
}
/
cinder
.*"
=>
{
user
=>
"
cinder
@
${mysql_grant_hostname
2
}
"
,
table
=>
'
cinder
.*'
,
},
"ceilometer
@
${mysql_grant_hostname}
/
ceilometer
.*"
=>
{
user
=>
"
ceilometer
@
${mysql_grant_hostname}
"
,
table
=>
'ceilometer
.*'
,
"neutron
@
${mysql_grant_hostname
2
}
/
neutron
.*"
=>
{
user
=>
"
neutron
@
${mysql_grant_hostname
2
}
"
,
table
=>
'neutron
.*'
,
},
"heat@
${mysql_grant_hostname}
/heat.*"
=>
{
user
=>
"heat@
${mysql_grant_hostname}
"
,
table
=>
'heat.*'
,
"ceilometer@
${mysql_grant_hostname2}
/ceilometer.*"
=>
{
user
=>
"ceilometer@
${mysql_grant_hostname2}
"
,
table
=>
'ceilometer.*'
,
},
"heat@
${mysql_grant_hostname2}
/heat.*"
=>
{
user
=>
"heat@
${mysql_grant_hostname2}
"
,
table
=>
'heat.*'
,
},
# HOSTNAME3 ===========================================
"keystone@
${mysql_grant_hostname3}
/keystone.*"
=>
{
user
=>
"keystone@
${mysql_grant_hostname3}
"
,
table
=>
'keystone.*'
,
},
"glance@
${mysql_grant_hostname3}
/glance.*"
=>
{
user
=>
"glance@
${mysql_grant_hostname3}
"
,
table
=>
'glance.*'
,
},
"nova@
${mysql_grant_hostname3}
/nova.*"
=>
{
user
=>
"nova@
${mysql_grant_hostname3}
"
,
table
=>
'nova.*'
,
},
"cinder@
${mysql_grant_hostname3}
/cinder.*"
=>
{
user
=>
"cinder@
${mysql_grant_hostname3}
"
,
table
=>
'cinder.*'
,
},
"neutron@
${mysql_grant_hostname3}
/neutron.*"
=>
{
user
=>
"neutron@
${mysql_grant_hostname3}
"
,
table
=>
'neutron.*'
,
},
"ceilometer@
${mysql_grant_hostname3}
/ceilometer.*"
=>
{
user
=>
"ceilometer@
${mysql_grant_hostname3}
"
,
table
=>
'ceilometer.*'
,
},
"heat@
${mysql_grant_hostname3}
/heat.*"
=>
{
user
=>
"heat@
${mysql_grant_hostname3}
"
,
table
=>
'heat.*'
,
},
}
...
...
@@ -150,7 +256,10 @@ $mysql_grants = {
# journal => '/osd1';
#
# '/dev/vdc':
# journal => '/osd2',
# journal => '/osd2';
#
# '/dev/vdd':
# journal => '/osd3',
# }
#
# ceph::key {
...
...
@@ -274,5 +383,4 @@ $mysql_grants = {
# mode => '0550';
# }
#
#}
#
}
\ No newline at end of file
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