-
Notifications
You must be signed in to change notification settings - Fork 54
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
兼容 uos x86 开源部署 #64
兼容 uos x86 开源部署 #64
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3cd802a
to
7e1ae80
Compare
7e1ae80
to
9e44d64
Compare
079c57c
to
3e246e8
Compare
onecloud/roles/common/tasks/main.yml
Outdated
@@ -20,6 +20,11 @@ | |||
tags: | |||
- facts | |||
|
|||
- name: set fact for uos |
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.
这种 UOS 相关的都放到对应的 vars 文件里面吧
args: | ||
executable: /bin/bash | ||
|
||
- name: Import task "{{ major_version_task_file }}" | ||
include_tasks: "{{ major_version_task_file }}" | ||
- name: reset iptables for UOS |
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.
这个 task 对 centos 生效吗?
是不是要加 when 的条件?
@@ -1,4 +1,5 @@ | |||
is_debian_arm64: true | |||
is_uos_amd64: true |
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.
UOS 基于 Debian 系的,应该叫 is_debian 之类更合适。
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.
还有这个文件不能改名,这个是对 debian 的支持
6eacac2
to
3ca9204
Compare
- is_centos_x86 is defined | ||
|
||
- name: init apt cache for uos |
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.
这个 task 和下面的是一样的吧?
debian 和 uos 都是用的这个源
9ac2032
to
604b9d4
Compare
onecloud/roles/common/tasks/main.yml
Outdated
@@ -170,7 +187,7 @@ | |||
when: ansible_swaptotal_mb > 0 | |||
|
|||
- name: Create a directory if it does not exist | |||
file: | |||
ansible.builtin.file: |
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.
这个改为 file ,ansible.builtin.file 这种用法低版本不支持
604b9d4
to
3c6ce5f
Compare
…am-release-3.6 Automated cherry pick of #64: 兼容 uos x86 开源部署
实现的功能
向下合并