Remove support for PowerDNS 3 driver
... because it was deprecated during Wallaby cycle[1]. This also
removes some remaining implementations used for PowerDNS 3 driver
support.
[1] 5ce240bc4d
Change-Id: I611f6333d5d0f648ab07698fafead5558ba8ccd0
This commit is contained in:
parent
62f0949052
commit
4bf4121155
|
@ -21,7 +21,7 @@
|
|||
# Defaults to true.
|
||||
#
|
||||
# [*backend_driver*]
|
||||
# (optional) Driver used for backend communication (fake, rpc, bind9, powerdns)
|
||||
# (optional) Driver used for backend communication (fake, rpc, bind9)
|
||||
# Defaults to 'bind9'
|
||||
#
|
||||
# [*listen*]
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
# == Class designate::backend::powerdns
|
||||
#
|
||||
# DEPRECATED!
|
||||
# Install PowerDNS and configure Designate to use it as a backend. This does
|
||||
# not configure PowerDNS itself since that is expected to be very environment
|
||||
# specific.
|
||||
#
|
||||
# == Parameters
|
||||
#
|
||||
# [*database_connection*]
|
||||
# (required) The connection string. format:
|
||||
# [driver]://[user]:[password]@[host]/[database]
|
||||
#
|
||||
# [*use_db_reconnect*]
|
||||
# (optional) Whether or not to automatically reconnect and retry transactions.
|
||||
# Defaults to true
|
||||
#
|
||||
# [*sync_db*]
|
||||
# Enable dbsync.
|
||||
# Defaults to true
|
||||
#
|
||||
class designate::backend::powerdns (
|
||||
$database_connection,
|
||||
$use_db_reconnect = true,
|
||||
$sync_db = true,
|
||||
) {
|
||||
|
||||
warning('The designate::backend::powerdns class has been deprecaed \
|
||||
and has no effect. This class will be removed in a future release.')
|
||||
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
# == Class: designate::db::powerdns::mysql
|
||||
#
|
||||
# DEPRECATED !
|
||||
# Class that configures mysql for the designate PowerDNS backend.
|
||||
#
|
||||
# === Parameters:
|
||||
#
|
||||
# [*password*]
|
||||
# Password to use for the powerdns user
|
||||
#
|
||||
# [*dbname*]
|
||||
# (optional) The name of the database
|
||||
# Defaults to 'powerdns'
|
||||
#
|
||||
# [*user*]
|
||||
# (optional) The mysql user to create
|
||||
# Defaults to 'powerdns'
|
||||
#
|
||||
# [*host*]
|
||||
# (optional) The IP address of the mysql server
|
||||
# Defaults to '127.0.0.1'
|
||||
#
|
||||
# [*charset*]
|
||||
# (optional) The charset to use for the powerdns database
|
||||
# Defaults to 'utf8'
|
||||
#
|
||||
# [*collate*]
|
||||
# (optional) The collate to use for the powerdns database
|
||||
# Defaults to 'utf8_general_ci'
|
||||
#
|
||||
# [*allowed_hosts*]
|
||||
# (optional) Additional hosts that are allowed to access this DB
|
||||
# Defaults to undef
|
||||
#
|
||||
class designate::db::powerdns::mysql (
|
||||
$password,
|
||||
$dbname = 'powerdns',
|
||||
$user = 'powerdns',
|
||||
$host = '127.0.0.1',
|
||||
$charset = 'utf8',
|
||||
$collate = 'utf8_general_ci',
|
||||
$allowed_hosts = undef,
|
||||
) {
|
||||
|
||||
warning('The designate::db::powerdns::mysql class has been deprecaed \
|
||||
and has no effect. This class will be removed in a future release.')
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
#
|
||||
# DEPRECATED !!
|
||||
# Class to execute designate powerdns dbsync
|
||||
#
|
||||
# ==Parameters
|
||||
#
|
||||
# [*extra_params*]
|
||||
# (optional) String of extra command line parameters to append
|
||||
# to the designate-manage powerdns sync command. These will be
|
||||
# inserted in the command line between 'designate-manage' and
|
||||
# 'powerdns sync'.
|
||||
# Defaults to undef
|
||||
class designate::db::powerdns::sync(
|
||||
$extra_params = undef,
|
||||
) {
|
||||
|
||||
warning('The designate::db::powerdns::sync class has been deprecaed \
|
||||
and has no effect. This class will be removed in a future release.')
|
||||
|
||||
}
|
|
@ -30,11 +30,6 @@ define designate::pool_target (
|
|||
|
||||
include designate::deps
|
||||
|
||||
if target == 'powerdns' {
|
||||
include powerdns
|
||||
include powerdns::mysql
|
||||
}
|
||||
|
||||
validate_legacy(Pattern[/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/],
|
||||
'validate_re', $name, ['[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'])
|
||||
validate_legacy(Hash, 'validate_hash', $options)
|
||||
|
@ -47,18 +42,4 @@ define designate::pool_target (
|
|||
"pool_target:${name}/type": value => $type;
|
||||
"pool_target:${name}/masters": value => join($masters,',');
|
||||
}
|
||||
|
||||
if $type == 'powerdns' {
|
||||
exec { "designate-powerdns-dbsync ${name}":
|
||||
command => "${::designate::params::designate_manage} powerdns sync ${name}",
|
||||
path => '/usr/bin',
|
||||
user => 'root',
|
||||
refreshonly => true,
|
||||
logoutput => on_failure,
|
||||
}
|
||||
|
||||
# Have to have a valid configuration file before running migrations
|
||||
Designate_config<||> -> Exec["designate-powerdns-dbsync ${name}"]
|
||||
Exec["designate-powerdns-dbsync ${name}"] ~> Service<| title == 'designate-pool-manager' |>
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,10 +24,6 @@
|
|||
{
|
||||
"name": "openstack/oslo",
|
||||
"version_requirement": ">=19.3.0 <20.0.0"
|
||||
},
|
||||
{
|
||||
"name": "antonlindstrom/powerdns",
|
||||
"version_requirement": ">=0.0.5 <1.0.0"
|
||||
}
|
||||
],
|
||||
"description": "Installs and configures OpenStack Designate (DNS Services).",
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
upgrade:
|
||||
- |
|
||||
The following classes for powerdns 3 driver have been removed.
|
||||
|
||||
- ``designate::backend::powerdns``
|
||||
- ``designate::db::powerdns::mysql``
|
||||
- ``designate::db::powerdns::sync``
|
||||
|
Loading…
Reference in New Issue