Skip to content
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

add apt repo in enable-repo playbook #459

Merged
merged 1 commit into from
Jan 6, 2023
Merged

add apt repo in enable-repo playbook #459

merged 1 commit into from
Jan 6, 2023

Conversation

ErikJiang
Copy link
Member

What type of PR is this?
/kind feature

What this PR does / why we need it:
add apt repo in enable-repo playbook, fixed Ubuntu offline installation issue.

Which issue(s) this PR fixes:

Fixes #388

Special notes for your reviewer:

@kubean-pr-robot kubean-pr-robot bot requested a review from dasu23 January 5, 2023 10:51
@kubean-pr-robot kubean-pr-robot bot added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 5, 2023
@kubean-pr-robot kubean-pr-robot bot requested a review from yankay January 5, 2023 10:51
@kubean-pr-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ErikJiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubean-pr-robot kubean-pr-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 5, 2023
@ErikJiang ErikJiang changed the title add apt repo in enable-repo playbook [WIP] add apt repo in enable-repo playbook Jan 5, 2023
@kubean-pr-robot kubean-pr-robot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 5, 2023
@ErikJiang
Copy link
Member Author

After importing the os-package and iso to minio, verify the enable-repo playbook with the following command:

# Set the apt repo configuration
$ ansible-playbook -i hosts-ubuntu.yml -b --become-user root enable-repo.yml \
    -e"{repo_list: ['deb [trusted=yes] http://172.30.41.169:9000/kubean/ubuntu/amd64 focal/', 'deb [trusted=yes] http://172.30.41.169:9000/kubean/ubuntu-iso focal main restricted']}"

image

# Restore the apt repo configuration
$ ansible-playbook -i hosts-ubuntu.yml -b --become-user root -e undo=true enable-repo.yml

image

@ErikJiang ErikJiang changed the title [WIP] add apt repo in enable-repo playbook add apt repo in enable-repo playbook Jan 6, 2023
@kubean-pr-robot kubean-pr-robot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 6, 2023
@ErikJiang
Copy link
Member Author

@hangscer8
Copy link
Collaborator

/lgtm

@kubean-pr-robot kubean-pr-robot bot added the lgtm Indicates that a PR is ready to be merged. label Jan 6, 2023
@tu1h
Copy link
Member

tu1h commented Jan 6, 2023

/lgtm

@ErikJiang ErikJiang merged commit d3359a7 into kubean-io:main Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubespray force apt update on offline Ubuntu node
3 participants