-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nomad supporting redhat family install
- Loading branch information
1 parent
f17562f
commit a5a10bf
Showing
10 changed files
with
75 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
- name: Bootstrap | ||
debug: | ||
msg: "Starting nomad bootstrap" | ||
verbosity: 1 | ||
|
||
- name: Get nomad status | ||
uri: | ||
url: "{{ __hs_nomad_api.status }}" | ||
return_content: true | ||
register: _current_hs_nomad_status | ||
environment: | ||
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt | ||
retries: 6 | ||
delay: 10 | ||
until: | ||
- _current_hs_nomad_status.status == 200 | ||
|
||
- name: Bootstrap acl | ||
uri: | ||
url: "{{ __hs_nomad_api.acl_bootstrap }}" | ||
method: POST | ||
body_format: json | ||
return_content: true | ||
environment: | ||
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt | ||
register: _hs_nomad_acl_bootstrap | ||
run_once: true | ||
|
||
- name: Store nomad bootstrap secrets | ||
copy: | ||
dest: "{{ hs_nomad_local_secret_file }}" | ||
mode: 0600 | ||
content: |- | ||
--- | ||
{{ {'root_nomad': _hs_nomad_acl_bootstrap.json} | to_nice_yaml(indent=2) }} | ||
become: false | ||
delegate_to: localhost | ||
|
||
- name: Marking bootstrap | ||
copy: | ||
dest: /etc/ansible/facts.d/{{ __hs_nomad_bootstrap_mark }}.fact | ||
content: "true" | ||
mode: 0640 | ||
tags: | ||
- mark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.