Fix several deprecation warnings
database_user -> mysql_user mysql_module removal sql_connection -> database_connection Needs: https://github.com/redhat-openstack/openstack-puppet-modules/pull/132 Change-Id: Ia7e22b0d809e40e64dc664f281f7274a4102751c Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
committed by
Gael Chamoulaud
parent
219cf98b4f
commit
c4c790a6ae
@@ -2,14 +2,13 @@ $cinder_qpid_cfg_cinder_db_pw = hiera('CONFIG_CINDER_DB_PW')
|
|||||||
$cinder_qpid_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
$cinder_qpid_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
||||||
|
|
||||||
class {'cinder':
|
class {'cinder':
|
||||||
rpc_backend => 'cinder.openstack.common.rpc.impl_qpid',
|
rpc_backend => 'cinder.openstack.common.rpc.impl_qpid',
|
||||||
qpid_hostname => hiera('CONFIG_AMQP_HOST'),
|
qpid_hostname => hiera('CONFIG_AMQP_HOST'),
|
||||||
qpid_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
|
qpid_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
|
||||||
qpid_protocol => hiera('CONFIG_AMQP_PROTOCOL'),
|
qpid_protocol => hiera('CONFIG_AMQP_PROTOCOL'),
|
||||||
qpid_username => hiera('CONFIG_AMQP_AUTH_USER'),
|
qpid_username => hiera('CONFIG_AMQP_AUTH_USER'),
|
||||||
qpid_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
qpid_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
||||||
sql_connection => "mysql://cinder:${cinder_qpid_cfg_cinder_db_pw}@${cinder_qpid_cfg_mariadb_host}/cinder",
|
database_connection => "mysql://cinder:${cinder_qpid_cfg_cinder_db_pw}@${cinder_qpid_cfg_mariadb_host}/cinder",
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,12 +2,11 @@ $cinder_rab_cfg_cinder_db_pw = hiera('CONFIG_CINDER_DB_PW')
|
|||||||
$cinder_rab_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
$cinder_rab_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
||||||
|
|
||||||
class {'cinder':
|
class {'cinder':
|
||||||
rabbit_host => hiera('CONFIG_AMQP_HOST'),
|
rabbit_host => hiera('CONFIG_AMQP_HOST'),
|
||||||
rabbit_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
|
rabbit_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
|
||||||
rabbit_userid => hiera('CONFIG_AMQP_AUTH_USER'),
|
rabbit_userid => hiera('CONFIG_AMQP_AUTH_USER'),
|
||||||
rabbit_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
rabbit_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
||||||
sql_connection => "mysql://cinder:${cinder_rab_cfg_cinder_db_pw}@${cinder_rab_cfg_mariadb_host}/cinder",
|
database_connection => "mysql://cinder:${cinder_rab_cfg_cinder_db_pw}@${cinder_rab_cfg_mariadb_host}/cinder",
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,25 +2,23 @@ $glance_ks_pw = hiera('CONFIG_GLANCE_DB_PW')
|
|||||||
$glance_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
$glance_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
||||||
|
|
||||||
class { 'glance::api':
|
class { 'glance::api':
|
||||||
auth_host => hiera('CONFIG_CONTROLLER_HOST'),
|
auth_host => hiera('CONFIG_CONTROLLER_HOST'),
|
||||||
keystone_tenant => 'services',
|
keystone_tenant => 'services',
|
||||||
keystone_user => 'glance',
|
keystone_user => 'glance',
|
||||||
keystone_password => hiera('CONFIG_GLANCE_KS_PW'),
|
keystone_password => hiera('CONFIG_GLANCE_KS_PW'),
|
||||||
pipeline => 'keystone',
|
pipeline => 'keystone',
|
||||||
sql_connection => "mysql://glance:${glance_ks_pw}@${glance_mariadb_host}/glance",
|
database_connection => "mysql://glance:${glance_ks_pw}@${glance_mariadb_host}/glance",
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'glance::registry':
|
class { 'glance::registry':
|
||||||
auth_host => hiera('CONFIG_CONTROLLER_HOST'),
|
auth_host => hiera('CONFIG_CONTROLLER_HOST'),
|
||||||
keystone_tenant => 'services',
|
keystone_tenant => 'services',
|
||||||
keystone_user => 'glance',
|
keystone_user => 'glance',
|
||||||
keystone_password => hiera('CONFIG_GLANCE_KS_PW'),
|
keystone_password => hiera('CONFIG_GLANCE_KS_PW'),
|
||||||
sql_connection => "mysql://glance:${glance_ks_pw}@${glance_mariadb_host}/glance",
|
database_connection => "mysql://glance:${glance_ks_pw}@${glance_mariadb_host}/glance",
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,17 +3,17 @@ $heat_qpid_cfg_heat_db_pw = hiera('CONFIG_HEAT_DB_PW')
|
|||||||
$heat_qpid_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
$heat_qpid_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
||||||
|
|
||||||
class { 'heat':
|
class { 'heat':
|
||||||
keystone_host => $heat_cfn_cfg_ctrl_host,
|
keystone_host => $heat_cfn_cfg_ctrl_host,
|
||||||
keystone_password => hiera('CONFIG_HEAT_KS_PW'),
|
keystone_password => hiera('CONFIG_HEAT_KS_PW'),
|
||||||
auth_uri => "http://${heat_qpid_cfg_ctrl_host}:35357/v2.0",
|
auth_uri => "http://${heat_qpid_cfg_ctrl_host}:35357/v2.0",
|
||||||
keystone_ec2_uri => "http://${heat_qpid_cfg_ctrl_host}:35357/v2.0",
|
keystone_ec2_uri => "http://${heat_qpid_cfg_ctrl_host}:35357/v2.0",
|
||||||
rpc_backend => 'heat.openstack.common.rpc.impl_qpid',
|
rpc_backend => 'heat.openstack.common.rpc.impl_qpid',
|
||||||
qpid_hostname => hiera('CONFIG_AMQP_HOST'),
|
qpid_hostname => hiera('CONFIG_AMQP_HOST'),
|
||||||
qpid_username => hiera('CONFIG_AMQP_AUTH_USER'),
|
qpid_username => hiera('CONFIG_AMQP_AUTH_USER'),
|
||||||
qpid_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
qpid_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
||||||
qpid_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
|
qpid_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
|
||||||
qpid_protocol => hiera('CONFIG_AMQP_PROTOCOL'),
|
qpid_protocol => hiera('CONFIG_AMQP_PROTOCOL'),
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||||
sql_connection => "mysql://heat:${heat_qpid_cfg_heat_db_pw}@${heat_qpid_cfg_mariadb_host}/heat",
|
database_connection => "mysql://heat:${heat_qpid_cfg_heat_db_pw}@${heat_qpid_cfg_mariadb_host}/heat",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ $heat_rabbitmq_cfg_heat_db_pw = hiera('CONFIG_HEAT_DB_PW')
|
|||||||
$heat_rabbitmq_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
$heat_rabbitmq_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
||||||
|
|
||||||
class { 'heat':
|
class { 'heat':
|
||||||
keystone_host => $heat_rabbitmq_cfg_ctrl_host,
|
keystone_host => $heat_rabbitmq_cfg_ctrl_host,
|
||||||
keystone_password => hiera('CONFIG_HEAT_KS_PW'),
|
keystone_password => hiera('CONFIG_HEAT_KS_PW'),
|
||||||
auth_uri => "http://${heat_rabbitmq_cfg_ctrl_host}:35357/v2.0",
|
auth_uri => "http://${heat_rabbitmq_cfg_ctrl_host}:35357/v2.0",
|
||||||
keystone_ec2_uri => "http://${heat_rabbitmq_cfg_ctrl_host}:35357/v2.0",
|
keystone_ec2_uri => "http://${heat_rabbitmq_cfg_ctrl_host}:35357/v2.0",
|
||||||
rpc_backend => 'heat.openstack.common.rpc.impl_kombu',
|
rpc_backend => 'heat.openstack.common.rpc.impl_kombu',
|
||||||
rabbit_host => hiera('CONFIG_AMQP_HOST'),
|
rabbit_host => hiera('CONFIG_AMQP_HOST'),
|
||||||
rabbit_userid => hiera('CONFIG_AMQP_AUTH_USER'),
|
rabbit_userid => hiera('CONFIG_AMQP_AUTH_USER'),
|
||||||
rabbit_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
rabbit_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||||
sql_connection => "mysql://heat:${heat_rabbitmq_cfg_heat_db_pw}@${heat_rabbitmq_cfg_mariadb_host}/heat",
|
database_connection => "mysql://heat:${heat_rabbitmq_cfg_heat_db_pw}@${heat_rabbitmq_cfg_mariadb_host}/heat",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,14 +4,13 @@ $keystone_cfg_ks_db_pw = hiera('CONFIG_KEYSTONE_DB_PW')
|
|||||||
$keystone_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
$keystone_cfg_mariadb_host = hiera('CONFIG_MARIADB_HOST')
|
||||||
|
|
||||||
class { 'keystone':
|
class { 'keystone':
|
||||||
admin_token => hiera('CONFIG_KEYSTONE_ADMIN_TOKEN'),
|
admin_token => hiera('CONFIG_KEYSTONE_ADMIN_TOKEN'),
|
||||||
sql_connection => "mysql://keystone_admin:${keystone_cfg_ks_db_pw}@${keystone_cfg_mariadb_host}/keystone",
|
database_connection => "mysql://keystone_admin:${keystone_cfg_ks_db_pw}@${keystone_cfg_mariadb_host}/keystone",
|
||||||
token_format => hiera('CONFIG_KEYSTONE_TOKEN_FORMAT'),
|
token_format => hiera('CONFIG_KEYSTONE_TOKEN_FORMAT'),
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||||
mysql_module => '2.2',
|
service_name => $keystone_service_name,
|
||||||
service_name => $keystone_service_name,
|
enable_ssl => $keystone_use_ssl,
|
||||||
enable_ssl => $keystone_use_ssl,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if $keystone_service_name == 'httpd' {
|
if $keystone_service_name == 'httpd' {
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ class { 'cinder::db::mysql':
|
|||||||
host => '%%',
|
host => '%%',
|
||||||
allowed_hosts => '%%',
|
allowed_hosts => '%%',
|
||||||
charset => 'utf8',
|
charset => 'utf8',
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ class { 'glance::db::mysql':
|
|||||||
host => '%%',
|
host => '%%',
|
||||||
allowed_hosts => '%%',
|
allowed_hosts => '%%',
|
||||||
charset => 'utf8',
|
charset => 'utf8',
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ class { 'heat::db::mysql':
|
|||||||
host => '%%',
|
host => '%%',
|
||||||
allowed_hosts => '%%',
|
allowed_hosts => '%%',
|
||||||
charset => 'utf8',
|
charset => 'utf8',
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,19 +21,19 @@ class { 'mysql::server':
|
|||||||
# deleting database users for security
|
# deleting database users for security
|
||||||
# this is done in mysql::server::account_security but has problems
|
# this is done in mysql::server::account_security but has problems
|
||||||
# when there is no fqdn, so we're defining a slightly different one here
|
# when there is no fqdn, so we're defining a slightly different one here
|
||||||
database_user { [ 'root@127.0.0.1', 'root@::1', '@localhost', '@%%' ]:
|
mysql_user { [ 'root@127.0.0.1', 'root@::1', '@localhost', '@%%' ]:
|
||||||
ensure => 'absent',
|
ensure => 'absent',
|
||||||
require => Class['mysql::server'],
|
require => Class['mysql::server'],
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($::fqdn != '' and $::fqdn != 'localhost') {
|
if ($::fqdn != '' and $::fqdn != 'localhost') {
|
||||||
database_user { [ "root@${::fqdn}", "@${::fqdn}"]:
|
mysql_user { [ "root@${::fqdn}", "@${::fqdn}"]:
|
||||||
ensure => 'absent',
|
ensure => 'absent',
|
||||||
require => Class['mysql::server'],
|
require => Class['mysql::server'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($::fqdn != $::hostname and $::hostname != 'localhost') {
|
if ($::fqdn != $::hostname and $::hostname != 'localhost') {
|
||||||
database_user { ["root@${::hostname}", "@${::hostname}"]:
|
mysql_user { ["root@${::hostname}", "@${::hostname}"]:
|
||||||
ensure => 'absent',
|
ensure => 'absent',
|
||||||
require => Class['mysql::server'],
|
require => Class['mysql::server'],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ class { 'keystone::db::mysql':
|
|||||||
password => hiera('CONFIG_KEYSTONE_DB_PW'),
|
password => hiera('CONFIG_KEYSTONE_DB_PW'),
|
||||||
allowed_hosts => '%%',
|
allowed_hosts => '%%',
|
||||||
charset => 'utf8',
|
charset => 'utf8',
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,4 @@ class { 'neutron::db::mysql':
|
|||||||
allowed_hosts => '%%',
|
allowed_hosts => '%%',
|
||||||
dbname => hiera('CONFIG_NEUTRON_L2_DBNAME'),
|
dbname => hiera('CONFIG_NEUTRON_L2_DBNAME'),
|
||||||
charset => 'utf8',
|
charset => 'utf8',
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,4 @@ class { 'nova::db::mysql':
|
|||||||
host => '%%',
|
host => '%%',
|
||||||
allowed_hosts => '%%',
|
allowed_hosts => '%%',
|
||||||
charset => 'utf8',
|
charset => 'utf8',
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
class { 'neutron::server':
|
class { 'neutron::server':
|
||||||
sql_connection => $neutron_sql_connection,
|
database_connection => $neutron_sql_connection,
|
||||||
connection => $neutron_sql_connection,
|
connection => $neutron_sql_connection,
|
||||||
auth_password => $neutron_user_password,
|
auth_password => $neutron_user_password,
|
||||||
auth_host => hiera('CONFIG_CONTROLLER_HOST'),
|
auth_host => hiera('CONFIG_CONTROLLER_HOST'),
|
||||||
enabled => true,
|
enabled => true,
|
||||||
mysql_module => '2.2',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { 'neutron-db-manage upgrade':
|
exec { 'neutron-db-manage upgrade':
|
||||||
|
|||||||
Reference in New Issue
Block a user