forked from crowbar/barclamp-dns
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement attribute to avoid auto assigning the server
If the `auto_assign_server` attribute is set to false then the server auto assign process is skipped on the initial deploy.
- Loading branch information
Rick Salevsky
committed
Apr 28, 2015
1 parent
ad2b468
commit 8ffbbfc
Showing
4 changed files
with
22 additions
and
6 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
9 changes: 9 additions & 0 deletions
9
chef/data_bags/crowbar/migrate/dns/004_add_auto_assign_server.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,9 @@ | ||
def upgrade ta, td, a, d | ||
a['auto_assign_server'] = ta['auto_assign_server'] | ||
return a, d | ||
end | ||
|
||
def downgrade ta, td, a, d | ||
a.delete('auto_assign_server') | ||
return a, d | ||
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
Please make this attribute required.