Compare commits
3 Commits
1842a08a39
...
52660e1414
| Author | SHA1 | Date | |
|---|---|---|---|
| 52660e1414 | |||
| 0ab6aaeaa5 | |||
| 02c26b2465 |
@@ -40,19 +40,16 @@
|
|||||||
|
|
||||||
- name: Extract container images
|
- name: Extract container images
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: /opt/metacluster/container_images/images-tarballs.tgz
|
src: /opt/metacluster/container-images/images-tarballs.tgz
|
||||||
dest: /opt/metacluster/container_images
|
dest: /opt/metacluster/container-images
|
||||||
list_files: yes
|
list_files: yes
|
||||||
register: imagetarballs
|
register: imagetarballs
|
||||||
|
|
||||||
- ansible.builtin.debug:
|
|
||||||
var: imagetarballs
|
|
||||||
|
|
||||||
- name: Import container images
|
- name: Import container images
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: k3s ctr image import {{ item }}
|
cmd: k3s ctr image import {{ item }}
|
||||||
chdir: /opt/metacluster/container_images
|
chdir: /opt/metacluster/container_images
|
||||||
loop: "{{ imagetarballs.stdout_lines }}"
|
loop: "{{ imagetarballs.files }}"
|
||||||
|
|
||||||
- name: Delete redundant files
|
- name: Delete redundant files
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
chdir: /opt/metacluster/container-images
|
chdir: /opt/metacluster/container-images
|
||||||
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"
|
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"
|
||||||
|
|
||||||
- name: Compress tarballs
|
- name: Compress tarballs -- **SLOW**
|
||||||
community.general.archive:
|
community.general.archive:
|
||||||
dest: /opt/metacluster/container-images/image-tarballs.tgz
|
dest: /opt/metacluster/container-images/image-tarballs.tgz
|
||||||
path: /opt/metacluster/container-images/*
|
path: /opt/metacluster/container-images/*
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
DeploymentConfigurations:
|
DeploymentConfigurations:
|
||||||
- Id: small
|
- Id: small
|
||||||
Label: 'Ubuntu Server 20.04 [SMALL: 1 vCPU/2GB RAM]'
|
Label: 'Ubuntu Server 22.04 [SMALL: 1 vCPU/2GB RAM]'
|
||||||
Description: Ubuntu Server 20.04.x
|
Description: Ubuntu Server 22.04.x
|
||||||
Size:
|
Size:
|
||||||
CPU: 1
|
CPU: 1
|
||||||
Memory: 2048
|
Memory: 2048
|
||||||
- Id: large
|
- Id: medium
|
||||||
Label: 'Ubuntu Server 20.04 [LARGE: 4 vCPU/8GB RAM]'
|
Label: 'Ubuntu Server 22.04 [MEDIUM: 2 vCPU/4GB RAM]'
|
||||||
Description: Ubuntu Server 20.04.x
|
Description: Ubuntu Server 22.04.x
|
||||||
Size:
|
Size:
|
||||||
CPU: 4
|
CPU: 2
|
||||||
Memory: 8192
|
Memory: 4096
|
||||||
DynamicDisks: []
|
DynamicDisks: []
|
||||||
PropertyCategories:
|
PropertyCategories:
|
||||||
# - Name: 0) Deployment information
|
# - Name: 0) Deployment information
|
||||||
@@ -19,7 +19,7 @@ PropertyCategories:
|
|||||||
# Type: string
|
# Type: string
|
||||||
# Value:
|
# Value:
|
||||||
# - small
|
# - small
|
||||||
# - large
|
# - medium
|
||||||
# UserConfigurable: false
|
# UserConfigurable: false
|
||||||
- Name: 1) Operating System
|
- Name: 1) Operating System
|
||||||
ProductProperties:
|
ProductProperties:
|
||||||
@@ -81,6 +81,7 @@ PropertyCategories:
|
|||||||
DefaultValue: ''
|
DefaultValue: ''
|
||||||
Configurations: '*'
|
Configurations: '*'
|
||||||
UserConfigurable: true
|
UserConfigurable: true
|
||||||
|
|
||||||
AdvancedOptions:
|
AdvancedOptions:
|
||||||
- Key: appliance.name
|
- Key: appliance.name
|
||||||
Value: "{{ appliance.name }}"
|
Value: "{{ appliance.name }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user