-
Notifications
You must be signed in to change notification settings - Fork 4
Added support for Alibaba cloud platform #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
russellseymour
wants to merge
5
commits into
main
Choose a base branch
from
russellseymour/alibaba
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8d5bc1c
Added support for Alibaba cloud platform
russellseymour 1c6a67f
Releavent recipes now read in a JSON file for the URL do download Aut…
russellseymour 4b24680
Corrected synatx error in default attributes file
russellseymour cce18c9
Reset cloud-init config
russellseymour fafb927
Enabled 30 day trial license for Alibaba as well as Azure
russellseymour File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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: 14 additions & 1 deletion
15
...tplace-cookbooks/chef-marketplace/templates/default/chef-marketplace-cloud-init-setup.erb
This file contains hidden or 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 |
|---|---|---|
| @@ -1,6 +1,19 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "mkdir: /var/opt/chef-marketplace" > /var/log/marketplace-preconfigure.log 2>&1 | ||
| mkdir -p /var/opt/chef-marketplace/ | ||
|
|
||
| echo "touch: /var/opt/chef-marketplace/cloud_init_running" >> /var/log/marketplace-preconfigure.log 2>&1 | ||
| touch /var/opt/chef-marketplace/cloud_init_running | ||
| chef-marketplace-ctl setup --preconfigure | ||
|
|
||
| echo "sleep: 10" >> /var/log/marketplace-preconfigure.log 2>&1 | ||
| sleep 10 | ||
|
|
||
| echo "run: chef-marketplace-ctl setup --preconfigure" >> /var/log/marketplace-preconfigure.log 2>&1 | ||
| chef-marketplace-ctl setup --preconfigure >> /var/log/marketplace-preconfigure.log 2>&1 | ||
|
|
||
| echo "touch: /var/opt/chef-marketplave/preconfigured" >> /var/log/marketplace-preconfigure.log 2>&1 | ||
| touch /var/opt/chef-marketplace/preconfigured | ||
|
|
||
| echo "rm: /var/opt/chef-marketplace/cloud_init_running" >> /var/log/marketplace-preconfigure.log 2>&1 | ||
| rm -rf /var/opt/chef-marketplace/cloud_init_running |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In principal I like this idea assuming we're forced to put the packages in their cloud because of firewall issues. I think that we need to formarlize and unify our approach in this and the image generation.
latestversion that points to the latest version for each software package.Alternatively, have we considered mirroring the repos in Alibaba?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a speed issue when downloading packages hence the reason for using their storage service.
For example when I did this manually it would take almost all day to download the marketplace image!
I agree with the same method for all scenarios - just trying to get it to work in the first place ;-)
The easiest approach would be to mirror into the Alibaba repos. This would keep everything as is for other cloud platforms - just need to take out the specifics for Alibaba that I have put in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not mean the main Ubuntu repos, it would be good if we could get a
packagesrepo in China.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schisamo, fyi about downloads from
packages.chef.ioin China.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yzl There should be no technical restriction on mirroring packages.chef.io data in China, it is not on our embargoed country list:
https://github.com/chef/es-package-router/blob/05f8910a7a77904e02b4ad40e7b493c717c3ce4f/.delivery/build-cookbook/recipes/_fastly.rb#L3-L9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schisamo @ryancragun @yzl Interesting.
I am not sure what the issue is then, but there is very definite throttling going on when trying to get a package from
packages.chef.io. It is so slow that it more often than not times out.I am hoping to get some contact details for Alibaba as there is another issue I have with the approval of the image which has been rejected. (The error states that we running Windows Update will fix it!!!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read about this a bit, and the possibilities that come to my mind are: