forked from crowbar/crowbar-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
neutron: enable designate integration
The config enabled by the flag lets neutron create dns records when floating ip are created and assigned. (flag: designate_enabled) The config was previously added but was not enabled as the barclamp was still under development. Add designate public url to the config.[1] Set domain name for fixed and floating network. This allows neutron to assign correct dns domain to the port as they are created. There is more information at [1]. This is mainly needed when integrating neutron with external dns service (designate). Using the neutron cli to net-update as openstack cli does not support it (`openstack help network set` has no option for dns-domain) Fixed a typo in template for neutron as domains are expected to end with a dot(.) [1] https://docs.openstack.org/ocata/networking-guide/config-dns-int.html
- Loading branch information
Sumit Jamgade
committed
May 16, 2019
1 parent
3b308f0
commit a50b459
Showing
5 changed files
with
56 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
chef/data_bags/crowbar/migrate/neutron/306_fix_domains_names.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
def upgrade(template_attributes, template_deployment, attributes, deployment) | ||
["floating_dns_domain", "dns_domain"].each do |key| | ||
attributes[key] = attributes[key] + "." unless attributes[key].end_with? "." | ||
end | ||
return attributes, deployment | ||
end | ||
|
||
def downgrade(template_attributes, template_deployment, attributes, deployment) | ||
return attributes, deployment | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters