-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provisioner: Add autoyast self update option
AutoYaST can update itself before installing the OS. This patch enables this feature and adds a field to the provisioner barclamp so that a repository URL can be set by the user. The special token `<ADMINWEB>` resolves to the IP:port of the admin node. An empty URL defaults to the SUSE customer center (scc.suse.com).
- Loading branch information
1 parent
7badddd
commit 08ae4fc
Showing
7 changed files
with
66 additions
and
2 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
15 changes: 15 additions & 0 deletions
15
chef/data_bags/crowbar/migrate/provisioner/103_self_update.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,15 @@ | ||
def upgrade(ta, td, a, d) | ||
a["suse"] = {} unless a.key?("suse") | ||
a["suse"]["autoyast"] = {} unless a["suse"].key?("autoyast") | ||
a["suse"]["autoyast"]["do_self_update"] = ta["suse"]["autoyast"]["do_self_update"] | ||
a["suse"]["autoyast"]["self_update_url"] = ta["suse"]["autoyast"]["self_update_url"] | ||
return a, d | ||
end | ||
|
||
def downgrade(ta, td, a, d) | ||
delete a["suse"]["autoyast"]["do_self_update"] | ||
delete a["suse"]["autoyast"]["self_update_url"] | ||
delete a["suse"]["autoyast"] if a["suse"]["autoyast"].empty? | ||
delete a["suse"] if a["suse"].empty? | ||
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
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