-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deploy,arch,arm64,centos7): add support for centos arm64 since 3.7
- Loading branch information
Zhang Dongliang
committed
Oct 29, 2021
1 parent
ff9a0c3
commit 37d482b
Showing
11 changed files
with
171 additions
and
14 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
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,67 @@ | ||
--- | ||
- name: Add yunion rpm repository | ||
get_url: | ||
url: https://iso.yunion.cn/yumrepo-3.8/yunion.repo | ||
dest: /etc/yum.repos.d/yunion.repo | ||
validate_certs: no | ||
become: yes | ||
when: | ||
- is_centos_x86 is defined | ||
|
||
- name: Install yunion common packages | ||
yum: | ||
state: latest | ||
name: | ||
- kernel-lt-5.4.130-1.yn20210710.el7 | ||
- yunion-executor | ||
when: | ||
- is_centos_x86 is defined | ||
- non_iso_mode is defined | ||
|
||
- name: init apt cache for debian | ||
get_url: | ||
url: https://iso.yunion.cn/uos/buster/{{ debian_based_arch }}/3.8/yunion.gpg-key.asc | ||
dest: /tmp/yunion.gpg-key.asc | ||
validate_certs: no | ||
become: yes | ||
when: | ||
- is_debian_based is defined | ||
|
||
- name: apply debian sig key | ||
shell: | | ||
echo "deb [trusted=yes] https://iso.yunion.cn/uos/buster/{{ debian_based_arch }}/3.8 ./" > /etc/apt/sources.list.d/yunion.list; | ||
apt-key add /tmp/yunion.gpg-key.asc; | ||
apt-get update -y; | ||
rm -f /tmp/yunion.gpg-key.asc | ||
args: | ||
executable: /bin/bash | ||
when: | ||
- is_debian_based is defined | ||
|
||
- name: install libselinux-python for arm64 centos | ||
yum: | ||
name: libselinux-python | ||
when: | ||
- is_centos_aarch64 is defined | ||
|
||
- name: Add yunion rpm repository for arm64 centos | ||
get_url: | ||
url: https://iso.yunion.cn/centos-7-aarch/yunion.repo | ||
dest: /etc/yum.repos.d/yunion.repo | ||
validate_certs: no | ||
become: yes | ||
when: | ||
- is_centos_aarch64 is defined | ||
- non_iso_mode is defined | ||
|
||
- name: Install yunion common packages for arm64 | ||
yum: | ||
state: latest | ||
name: | ||
- kernel-4.14.0-115.8.2.el7a.yn20210924 | ||
- kernel-devel-4.14.0-115.8.2.el7a.yn20210924 | ||
- kernel-headers-4.14.0-115.8.2.el7a.yn20210924 | ||
- yunion-executor-server | ||
when: | ||
- is_centos_aarch64 is defined | ||
- non_iso_mode is defined |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
|
||
is_centos_based: true | ||
is_centos_aarch64: true | ||
|
||
common_packages: | ||
- boost-iostreams | ||
- boost-random | ||
- boost-system | ||
- boost-thread | ||
- celt051 | ||
- fuse | ||
- fuse-devel | ||
- fuse-libs | ||
- gssproxy | ||
- jq | ||
- ipvsadm | ||
- ipset | ||
- conntrack-tools | ||
- bridge-utils | ||
- keyutils | ||
- kmod | ||
- kmod-openvswitch | ||
- kubeadm | ||
- kubectl | ||
- kubelet | ||
- libbasicobjects | ||
- libcollection | ||
- libini_config | ||
- libjpeg-turbo | ||
- libnfsidmap | ||
- libogg | ||
- libpath_utils | ||
- libpcap | ||
- librados2 | ||
- librbd1 | ||
- libref_array | ||
- libtirpc | ||
- libusb | ||
- libusbx | ||
- libverto-libevent | ||
- lm_sensors-libs | ||
- nfs-utils | ||
- nmap-ncat | ||
- openvswitch | ||
- pixman | ||
- quota | ||
- quota-nls | ||
- rpcbind | ||
- spice | ||
- spice-protocol | ||
- sysstat | ||
- tcp_wrappers | ||
- tcpdump | ||
- unbound | ||
- unbound-libs | ||
- usbredir | ||
- yunion-climc | ||
- yunion-executor | ||
- yunion-ocadm | ||
- yunion-ovmfrpm | ||
- yunion-qemu-2.12.1 | ||
- yunion-fetcherfs | ||
|
||
common_services: | ||
- ntpd | ||
- yunion-executor |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
|
||
is_centos_based: true | ||
is_centos_x86: true | ||
|
||
common_packages: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ | |
executable: /bin/bash | ||
chdir: /usr/local/gpu-init/ | ||
when: | ||
- is_centos_x86 is defined | ||
- is_centos_based is defined |
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