Skip to content

Commit 70df02b

Browse files
paladin-devopsjosephrajewski
andauthored
Add support for Photon 4 (#137)
* Add VMware Photon OS as a valid OS distro. * Add VMware Photon OS vars file. * Modified OS package installation for Photon. Co-authored-by: josephrajewski <joseph.rajewski@johnstonhowse.com>
1 parent c8919d0 commit 70df02b

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ os_supported_matrix:
2121
min_version: '8.2'
2222
Ubuntu:
2323
min_version: '13.04'
24+
VMware Photon OS:
25+
min_version: '4'
2426

2527
## Core
2628
nomad_debug: false

tasks/install.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
---
22
# File: install.yml - package installation tasks for Nomad
33

4-
- name: OS packages
4+
- name: Install OS packages
55
package:
66
name: "{{ item }}"
77
state: present
88
with_items: "{{ nomad_os_packages }}"
99
tags: installation
10+
when: not ansible_facts['os_family'] == "VMware Photon OS"
11+
12+
- name: Install OS packages
13+
command: "tdnf install {{ item }}"
14+
with_items: "{{ nomad_os_packages }}"
15+
tags: installation
16+
when: ansible_facts['os_family'] == "VMware Photon OS"
1017

1118
- name: Check Nomad package checksum file
1219
stat:

vars/VMware Photon OS.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
nomad_os_packages:
3+
- unzip

0 commit comments

Comments
 (0)