Skip to content

Commit

Permalink
Add the Major Release of an OS to every template (#227)
Browse files Browse the repository at this point in the history
Signed-off-by: Shweta Padubidri <[email protected]>
  • Loading branch information
shwetaap authored Sep 30, 2020
1 parent c33c611 commit f137a74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions generate-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
vars:
os: rhel8
icon: rhel
majorrelease: rhel8
oslabels: "{{ rhel8_labels }}"
osinfoname: "{{ oslabels[0] }}"
cloudusername: cloud-user
Expand Down Expand Up @@ -60,6 +61,7 @@
vars:
os: rhel7
icon: rhel
majorrelease: rhel7
oslabels: "{{ rhel7_labels }}"
osinfoname: "{{ oslabels[0] }}"
cloudusername: cloud-user
Expand All @@ -84,6 +86,7 @@
vars:
os: rhel6
icon: rhel
majorrelease: rhel6
oslabels: "{{ rhel6_labels }}"
osinfoname: "{{ oslabels[0] }}"
cloudusername: cloud-user
Expand All @@ -104,6 +107,7 @@
vars:
os: centos8
icon: centos
majorrelease: centos8
oslabels:
- centos8
osinfoname: "{{ oslabels[0] }}"
Expand All @@ -125,6 +129,7 @@
vars:
os: centos7
icon: centos
majorrelease: centos7
oslabels:
- centos7.0
osinfoname: "{{ oslabels[0] }}"
Expand All @@ -146,6 +151,7 @@
vars:
os: centos6
icon: centos
majorrelease: centos6
oslabels: "{{ centos6_labels }}"
osinfoname: "{{ oslabels[0] }}"
cloudusername: centos
Expand Down Expand Up @@ -174,6 +180,7 @@
vars:
os: fedora
icon: fedora
majorrelease: fedora32
oslabels: "{{ fedora_labels }}"
osinfoname: "{{ oslabels[0] }}"
cloudusername: fedora
Expand All @@ -190,6 +197,7 @@
vars:
os: opensuse
icon: opensuse
majorrelease: opensuse15
oslabels:
- opensuse15.0
osinfoname: "{{ oslabels[0] }}"
Expand All @@ -208,6 +216,7 @@
vars:
os: ubuntu
icon: ubuntu
majorrelease: ubuntu18
oslabels:
- ubuntu18.04
osinfoname: "{{ oslabels[0] }}"
Expand Down
2 changes: 1 addition & 1 deletion templates/_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ parameters:
required: true
- name: SRC_PVC_NAME
description: Name of the PVC to clone
value: '{{ oslabels | last }}'
value: '{{ majorrelease }}'
- name: SRC_PVC_NAMESPACE
description: Namespace of the source PVC
value: kubevirt-os-images
Expand Down

0 comments on commit f137a74

Please sign in to comment.