Reorganize dependencies/components;Fix folder name
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
081aaaaa19
commit
e0a5b5a5da
@ -1,11 +1,37 @@
|
||||
- name: Create folder structure
|
||||
- name: Create folder structure(s)
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- /opt/x
|
||||
- /opt/metacluster/dependencies/helm/charts
|
||||
|
||||
- name: Install ansible-galaxy collection
|
||||
- name: Download & install static binaries
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ item.url }}"
|
||||
dest: "/usr/local/bin/{{ item.name }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
loop: "{{ dependencies.static_binaries }}"
|
||||
|
||||
- name: Install ansible-galaxy collections
|
||||
ansible.builtin.shell:
|
||||
cmd: "ansible-galaxy collection install {{ item }}"
|
||||
loop: "{{ dependencies.ansible_galaxy_collections }}"
|
||||
|
||||
- block:
|
||||
|
||||
- name: Download Helm binary
|
||||
ansible.builtin.unarchive:
|
||||
src: https://get.helm.sh/helm-{{ helm.version }}-linux-amd64.tar.gz
|
||||
dest: /opt/metacluster/dependencies/helm
|
||||
|
||||
- name: Install Helm binary
|
||||
ansible.builtin.copy:
|
||||
src: /opt/metacluster/dependencies/helm/helm
|
||||
dest: /usr/local/bin/helm
|
||||
remote_src: yes
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
||||
|
@ -1,3 +1,13 @@
|
||||
#- name: XYZ
|
||||
# ansible.builtin.get_url:
|
||||
- name: Create folder structure(s)
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- /opt/metacluster/components/harbor
|
||||
|
||||
- name: Add helm repositories
|
||||
kubernetes.core.helm_repository:
|
||||
name: "{{ item.name }}
|
||||
repo_url: "{{ item.url }}"
|
||||
state: present
|
||||
loop: "{{ components.helm_repositories }}"
|
||||
|
@ -1,6 +1,28 @@
|
||||
- name: Create folder structure
|
||||
- name: Create folder structures
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
- /opt/x
|
||||
- /var/lib/rancher/k3s/agent/images
|
||||
- /opt/metacluster/k3s
|
||||
|
||||
- name: Download & install K3s binary
|
||||
ansible.builtin.get_url:
|
||||
url: https://github.com/k3s-io/k3s/releases/download/{{ k3s.version }}/k3s
|
||||
dest: /usr/local/bin/k3s
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
||||
- name: Download K3s images tarball
|
||||
ansible.builtin.get_url:
|
||||
url: https://github.com/k3s-io/k3s/releases/download/{{ k3s.version }}/k3s-airgap-images-amd64.tar.gz
|
||||
dest: /var/lib/rancher/k3s/agent/images
|
||||
|
||||
- name: Download K3s install script
|
||||
ansible.builtin.get_url:
|
||||
url: https://get.k3s.io
|
||||
dest: /opt/metacluster/k3s
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
@ -3,6 +3,15 @@ k3s:
|
||||
|
||||
components:
|
||||
|
||||
helm_repositories:
|
||||
- name: longhorn
|
||||
url: https://charts.longhorn.io
|
||||
- name: harbor
|
||||
url: https://helm.goharbor.io
|
||||
|
||||
longhorn:
|
||||
version:
|
||||
|
||||
harbor:
|
||||
version:
|
||||
|
||||
@ -17,4 +26,4 @@ dependencies:
|
||||
|
||||
static_binaries:
|
||||
- binary: yq
|
||||
url:
|
||||
url: http://github.com/mikefarah/yq/releases/download/v4.25.2/yq_linux_amd64
|
||||
|
@ -60,7 +60,7 @@ source "vsphere-iso" "k8sbootstrap" {
|
||||
|
||||
export {
|
||||
images = false
|
||||
output_directory = "/scratch/ubuntuserver"
|
||||
output_directory = "/scratch/k8sbootstrap"
|
||||
}
|
||||
remove_cdrom = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user