-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
neutron: add floating_dns_domain setting
XXX neutron net-update
- Loading branch information
1 parent
e02ee3d
commit 7ca9b93
Showing
5 changed files
with
31 additions
and
1 deletion.
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
11 changes: 11 additions & 0 deletions
11
chef/data_bags/crowbar/migrate/neutron/305_add_designate_domain.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,11 @@ | ||
def upgrade(template_attributes, template_deployment, attributes, deployment) | ||
key = "floating_dns_domain" | ||
attributes[key] = template_attributes[key] unless attributes.key? key | ||
return attributes, deployment | ||
end | ||
|
||
def downgrade(template_attributes, template_deployment, attributes, deployment) | ||
key = "floating_dns_domain" | ||
attributes.delete(key) unless template_attributes.key? key | ||
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
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