Skip to content
Snippets Groups Projects
Commit 41756152 authored by Riccardo Bucchi's avatar Riccardo Bucchi
Browse files

update site.pp with regione marche data.

parent c5c3940a
No related branches found
No related tags found
No related merge requests found
......@@ -12,37 +12,84 @@ $vip = '192.168.0.127'
## HAPROXY
$ha_servers = {
priority_hostname => 'ocp-tb-1',
priority_ip => '192.168.0.18',
priority_ip => '10.101.32.x',
hostnames => ['ocp-tb-2', 'ocp-tb-3'],
ips => ['192.168.0.19', '192.168.0.20'],
ips => ['10.101.32.x', '10.101.32.x'],
}
# controller hostnames and ips
$haproxy_controller_hosts = ['ocp-tb-7', 'ocp-tb-8']
$haproxy_controller_ips = ['192.168.0.31', '192.168.0.32']
$haproxy_controller_ips = ['10.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_hostname1}" => {
password_hash => mysql_password('glance'),
},
"nova@${mysql_grant_hostname}" => {
"nova@${mysql_grant_hostname1}" => {
password_hash => mysql_password('nova'),
},
"cinder@${mysql_grant_hostname}" => {
"cinder@${mysql_grant_hostname1}" => {
password_hash => mysql_password('cinder'),
},
"neutron@${mysql_grant_hostname}" => {
"neutron@${mysql_grant_hostname1}" => {
password_hash => mysql_password('neutron'),
},
"ceilometer@${mysql_grant_hostname}" => {
"ceilometer@${mysql_grant_hostname1}" => {
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_hostname2}/glance.*" => {
user => "glance@${mysql_grant_hostname2}",
table => 'glance.*',
},
"cinder@${mysql_grant_hostname}/cinder.*" => {
user => "cinder@${mysql_grant_hostname}",
table => 'cinder.*',
"nova@${mysql_grant_hostname2}/nova.*" => {
user => "nova@${mysql_grant_hostname2}",
table => 'nova.*',
},
"neutron@${mysql_grant_hostname}/neutron.*" => {
user => "neutron@${mysql_grant_hostname}",
table => 'neutron.*',
"cinder@${mysql_grant_hostname2}/cinder.*" => {
user => "cinder@${mysql_grant_hostname2}",
table => 'cinder.*',
},
"ceilometer@${mysql_grant_hostname}/ceilometer.*" => {
user => "ceilometer@${mysql_grant_hostname}",
table => 'ceilometer.*',
"neutron@${mysql_grant_hostname2}/neutron.*" => {
user => "neutron@${mysql_grant_hostname2}",
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment