Skip to content

Commit 051cfae

Browse files
committed
CentOS updates
- Update/validate CentOS 7 box - Update documentation - Update failure cases for CentOS
1 parent 422c9a6 commit 051cfae

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,8 @@
8787
- Add cgroups packages on Debian/Ubuntu
8888
- Run Nomad as root for now
8989

90+
## v1.3.1
91+
92+
- Update/validate CentOS 7 box
93+
- Update documentation
94+
- Update failure cases for CentOS

examples/README_VAGRANT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ prefer, it can also install CentOS 7 based nodes by changing the command
7777
in step 4 to the following:
7878

7979
```
80-
BOX_NAME="chef/centos-7.0" vagrant up
80+
BOX_NAME="centos/7" vagrant up
8181
```
8282

8383
## Notes

tasks/main.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
---
22
# File: tasks/main.yml - Main tasks for nomad
33

4-
- name: Fail if not a new release of Ubuntu
4+
- name: Fail if not a new release of CentOS
55
fail:
6-
msg: "{{ ansible_distribution_version }} is not an acceptable version of Ubuntu for this role"
7-
when: ansible_lsb.id|lower == "ubuntu" and ( ansible_distribution_version|version_compare(12.04, '<') or ansible_distribution_version|version_compare(12.10, '=') )
6+
msg: "{{ ansible_distribution_version }} is not an acceptable version of Debian for this role"
7+
when: ansible_distribution == "CentOS" and ansible_distribution_version|version_compare(7, '<')
88

99
- name: Fail if not a new release of Debian
1010
fail:
1111
msg: "{{ ansible_distribution_version }} is not an acceptable version of Debian for this role"
12-
when: ansible_lsb.id|lower == "debian" and ansible_distribution_version|version_compare(8.5, '<')
12+
when: ansible_distribution == "Debian" and ansible_distribution_version|version_compare(8.5, '<')
13+
14+
- name: Fail if not a new release of Red Hat
15+
fail:
16+
msg: "{{ ansible_distribution_version }} is not an acceptable version of Debian for this role"
17+
when: ansible_distribution == "RedHat" and ansible_distribution_version|version_compare(7, '<')
18+
19+
- name: Fail if not a new release of Ubuntu
20+
fail:
21+
msg: "{{ ansible_distribution_version }} is not an acceptable version of Ubuntu for this role"
22+
when: ansible_distribution == "Ubuntu" and ( ansible_distribution_version|version_compare(12.04, '<') or ansible_distribution_version|version_compare(12.10, '=') )
1323

1424
- name: Create cluster groupings
1525
group_by: key={{ nomad_node_role }}

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.3.0
1+
v1.3.1

0 commit comments

Comments
 (0)