Designate: Use built-in feature to manage pools.yaml
Depends-on: https://review.opendev.org/830017 Related-Bug: #1961516 Change-Id: Ie4100700e03728300625a6bfcdc6e30c1273fd2d
This commit is contained in:
1 changed files with 1 additions and 28 deletions
@@ -89,33 +89,6 @@ class openstack_integration::designate {
rndc_host => '127.0.0.1',
rndc_config_file => '/etc/rndc.conf',
rndc_key_file => $::dns::params::rndckeypath,
}
#Validatethatdesignate-centralisreadyforpoolupdate
$command="openstack--os-auth-url${::openstack_integration::config::keystone_auth_uri}\
--os-identity-api-version3\
--os-project-nameservices--os-usernamedesignate--os-passworda_big_secret\
--os-project-domain-nameDefault--os-user-domain-nameDefaultzonelist"
openstacklib::service_validation{ 'designate-central':
command => $command,
timeout => '15',
refreshonly => true,
subscribe => Anchor['designate::service::end'],
}
#TODO:Implementpools.yamlmanagementinpuppet-designate
file{ '/etc/designate/pools.yaml':
ensure => present,
content => template("${module_name}/pools.yaml.erb"),
require=>Service['designate-central'],
}
exec{ 'Update designate pools':
command => 'designate-manage pool update --file /etc/designate/pools.yaml',
path => '/usr/bin',
refreshonly => true,
logoutput => 'on_failure',
subscribe => File['/etc/designate/pools.yaml'],
require => Openstacklib::Service_validation['designate-central'],
manage_pool => true
}
}
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.