-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend docker compose service role to handle extra files/templates
- Loading branch information
Showing
17 changed files
with
82 additions
and
189 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
service_name: "{{ ansible_role_name }}" | ||
service_path: "{{ services_path }}/{{ service_name }}" | ||
gatus_icmp_endpoints: [] | ||
gatus_dns_endpoints: [] | ||
gatus_healthcheck_endpoints: [] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,22 +1,9 @@ | ||
--- | ||
- name: Create directories | ||
ansible.builtin.file: | ||
path: "{{ item }}" | ||
state: directory | ||
mode: "0775" | ||
loop: | ||
- "{{ service_path }}" | ||
|
||
- name: Create compose file | ||
ansible.builtin.template: | ||
src: "templates/compose.yaml.j2" | ||
dest: "{{ service_path }}/compose.yaml" | ||
mode: "0640" | ||
notify: "Recreate {{ service_name }}" | ||
|
||
- name: Create config | ||
ansible.builtin.template: | ||
src: "templates/config.yaml.j2" | ||
dest: "{{ service_path }}/config.yaml" | ||
mode: "0640" | ||
notify: "Recreate {{ service_name }}" | ||
- name: Create docker compose service | ||
ansible.builtin.include_role: | ||
name: docker_compose_service | ||
vars: | ||
docker_compose_service_name: gatus | ||
docker_compose_service_template: true | ||
docker_compose_service_extra_templates: | ||
- config.yaml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,35 +1,17 @@ | ||
--- | ||
- name: Create directories | ||
ansible.builtin.file: | ||
path: "{{ item }}" | ||
state: directory | ||
mode: "0775" | ||
loop: | ||
- "{{ service_path }}" | ||
- "{{ service_path }}/config" | ||
|
||
- name: Create compose file | ||
ansible.builtin.template: | ||
src: "templates/compose.yaml.j2" | ||
dest: "{{ service_path }}/compose.yaml" | ||
mode: "0640" | ||
notify: "Recreate {{ service_name }}" | ||
|
||
- name: Create config | ||
ansible.builtin.copy: | ||
src: "files/{{ item }}" | ||
dest: "{{ service_path }}/config/{{ item }}" | ||
mode: "0640" | ||
loop: | ||
- bookmarks.yaml | ||
- docker.yaml | ||
- kubernetes.yaml | ||
- settings.yaml | ||
- widgets.yaml | ||
notify: "Recreate {{ service_name }}" | ||
|
||
- name: Create config | ||
ansible.builtin.template: | ||
src: "templates/services.yaml.j2" | ||
dest: "{{ service_path }}/config/services.yaml" | ||
mode: "0640" | ||
- name: Create docker compose service | ||
ansible.builtin.include_role: | ||
name: docker_compose_service | ||
vars: | ||
docker_compose_service_name: homepage | ||
docker_compose_service_sub_directories: | ||
- config | ||
docker_compose_service_template: true | ||
docker_compose_service_extra_files: | ||
- config/bookmarks.yaml | ||
- config/docker.yaml | ||
- config/kubernetes.yaml | ||
- config/settings.yaml | ||
- config/widgets.yaml | ||
docker_compose_service_extra_templates: | ||
- config/services.yaml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,13 @@ | ||
--- | ||
- name: Create directories | ||
ansible.builtin.file: | ||
path: "{{ item }}" | ||
state: directory | ||
mode: "0775" | ||
loop: | ||
- "{{ service_path }}" | ||
- "{{ service_path }}/config" | ||
- "{{ service_path }}/data" | ||
- "{{ service_path }}/log" | ||
|
||
- name: Create compose file | ||
ansible.builtin.copy: | ||
src: "files/compose.yaml" | ||
dest: "{{ service_path }}/compose.yaml" | ||
mode: "0640" | ||
notify: "Recreate {{ service_name }}" | ||
|
||
- name: Create config file | ||
ansible.builtin.copy: | ||
src: "files/mosquitto.conf" | ||
dest: "{{ service_path }}/config/mosquitto.conf" | ||
mode: "0640" | ||
notify: "Recreate {{ service_name }}" | ||
- name: Create docker compose service | ||
ansible.builtin.include_role: | ||
name: docker_compose_service | ||
vars: | ||
docker_compose_service_name: mosquitto | ||
docker_compose_service_sub_directories: | ||
- config | ||
- data | ||
- log | ||
docker_compose_service_file: true | ||
docker_compose_service_extra_files: | ||
- config/mosquitto.conf |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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