File tree Expand file tree Collapse file tree 6 files changed +33
-12
lines changed
Expand file tree Collapse file tree 6 files changed +33
-12
lines changed Original file line number Diff line number Diff line change 116116- Nomad 0.5.1
117117- Add NOMAD_VERSION environment variable
118118- Fix typo in default variables
119+
120+ ## v1.4.2
121+
122+ - Checks for existing packages and summary files
123+ - Nomad 0.5.2
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ in a development environment based on Vagrant and VirtualBox. See
1717This role requires a Debian, RHEL, or Ubuntu distribution; the role is tested
1818with the following specific software versions:
1919
20- * Ansible: 2.1 .2.0
21- * nomad: 0.4.1
20+ * Ansible: 2.2 .2.0
21+ * nomad: 0.5.2
2222* Debian: 8
2323
2424## Role Variables
@@ -27,7 +27,7 @@ The role defines all variables in `defaults/main.yml`:
2727
2828| Name | Default Value | Description |
2929| -------------- | ------------- | -----------------------------------|
30- | ` nomad_version ` | ` 0.4.1 ` | nomad version to install |
30+ | ` nomad_version ` | ` 0.5.2 ` | nomad version to install |
3131| ` nomad_zip_url ` | ` https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_amd64.zip ` | nomad download URL |
3232| ` nomad_zip_sha256 ` | SHA256 SUM | nomad download SHA256 summary |
3333| ` nomad_bin_dir ` | ` /usr/local/bin ` | nomad binary installation path |
Original file line number Diff line number Diff line change 11---
22# File: defaults/main.yml - Main default variables for nomad
33
4- nomad_version : " {{ lookup('env','NOMAD_VERSION') | default('0.5.1 ', true) }}"
4+ nomad_version : " {{ lookup('env','NOMAD_VERSION') | default('0.5.2 ', true) }}"
55nomad_server_count : " 2"
66nomad_checksum_file_url : " https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version}}_SHA256SUMS"
77nomad_zip_url : " https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_amd64.zip"
Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ BOX_NAME="centos/7" vagrant up
8383## Notes
8484
85850 . This project functions with the following software versions:
86- * nomad version 0.4.1
87- * Ansible version 2.1 .2.0
88- * VirtualBox version 5.0.28
89- * Vagrant version 1.8.6
86+ * nomad version 0.5.2
87+ * Ansible version 2.2 .2.0
88+ * VirtualBox version 5.1.12
89+ * Vagrant version 1.9.1
9090 * Vagrant Hosts version 2.8.0
91911 . This project uses Debian 8 (Jessie) by default, but you can choose other OS
9292 with the * BOX_NAME* environment variable
Original file line number Diff line number Diff line change 66 with_items : " {{ nomad_os_packages }}"
77 tags : installation
88
9- - name : Get nomad package checksum file
9+ - name : Check Nomad package checksum file
10+ become : no
11+ connection : local
12+ stat : " path={{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS"
13+ run_once : true
14+ register : nomad_checksum
15+
16+ - name : Get Nomad package checksum file
1017 become : no
1118 connection : local
1219 get_url : " url={{ nomad_checksum_file_url }} dest={{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS"
1320 run_once : true
1421 tags : installation
22+ when : nomad_checksum.stat.exists == False
1523
1624- name : Get nomad package checksum
1725 become : no
2129 register : nomad_sha256
2230 tags : installation
2331
32+ - name : Check Nomad package file
33+ become : no
34+ connection : local
35+ stat : " path={{ role_path }}/files/{{ nomad_pkg }}"
36+ run_once : true
37+ register : nomad_package
38+
2439- name : Download nomad
2540 become : no
2641 connection : local
2742 get_url : " url={{ nomad_zip_url }} dest={{ role_path }}/files/{{ nomad_pkg }} checksum=sha256:{{ nomad_sha256.stdout.split(' ')|first }} timeout=42"
2843 run_once : true
2944 tags : installation
45+ when : consul_package.stat.exists == False
3046
3147- name : Unarchive nomad
3248 become : no
4258- name : Cleanup
4359 become : no
4460 connection : local
45- file : " dest={{ role_path }}/files/nomad* state=absent"
61+ file : " dest={{ role_path }}/files/nomad state=absent"
4662 run_once : true
47- tags : installation
63+ tags : installation
Original file line number Diff line number Diff line change 1- v1.4.1
1+ v1.4.2
You can’t perform that action at this time.
0 commit comments