Skip to content

Commit

Permalink
adding hauler store
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed May 14, 2024
1 parent 7215d13 commit 89adf1f
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 19 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ jobs:
s3fs ${BUCKET} ${MOUNT_POINT} -o url=https://${REGION}.digitaloceanspaces.com -o passwd_file=./passwd-s3fs
df -Th ${MOUNT_POINT}
- name: Test access Mount point
run: |
ls -ld ${MOUNT_POINT}
ls -l ${MOUNT_POINT}
cd ${MOUNT_POINT}
ls
- name: Checkout files
uses: actions/checkout@v4

Expand Down
4 changes: 4 additions & 0 deletions meta/ee-bindeps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ zstd [platform:rpm]
zstd [platform:dpkg]
jq [platform:rpm]
jq [platform:dpkg]
tar [platform:rpm]
tar [platform:dpkg]
gzip [platform:rpm]
gzip [platform:dpkg]
22 changes: 22 additions & 0 deletions roles/install_rke2_common/tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,25 @@
dest: /var/lib/rancher/rke2
state: link
when: rke2_data_dir != "/var/lib/rancher/rke2"

# Common packages on all nodes
- name: Install packages common
ansible.builtin.dnf:
name: "{{ item }}"
state: present
with_items:
- zstd
become: true
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version | int >= 8

- name: Install packages common
ansible.builtin.apt:
name: "{{ item }}"
state: present
with_items:
- zstd
become: true
when:
- ansible_os_family == "Debian"
11 changes: 0 additions & 11 deletions roles/install_rke2_controller/tasks/rpm_install.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
---
# RPM
- name: Install packages common to controlers
ansible.builtin.dnf:
name: "{{ item }}"
state: present
with_items:
- zstd
become: true
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version | int >= 8

- name: Import a key from a file
ansible.builtin.rpm_key:
state: present
Expand Down
1 change: 1 addition & 0 deletions roles/install_utils_nerdctl/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
mode: '0750'
remote_src: true
validate_certs: false
extra_opts: ['--strip-components=1']
when: not file_data.stat.exists

- name: Copy NERDCTL configuration file
Expand Down
4 changes: 3 additions & 1 deletion roles/install_utils_nerdctl/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
# tasks file for install_utils_nerdctl
- name: Tasks prerequis
ansible.builtin.import_tasks: prerequis.yml

- name: Tasks to install nerdctl
ansible.builtin.import_tasks: install.yml
ansible.builtin.import_tasks: install.yml
24 changes: 24 additions & 0 deletions roles/install_utils_nerdctl/tasks/prerequis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
# packages on all nodes needed
- name: Install packages common
ansible.builtin.dnf:
name: "{{ item }}"
state: present
with_items:
- tar
- gzip
become: true
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version | int >= 8

- name: Install packages common
ansible.builtin.apt:
name: "{{ item }}"
state: present
with_items:
- tar
- gzip
become: true
when:
- ansible_os_family == "Debian"

0 comments on commit 89adf1f

Please sign in to comment.