-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To enable including them only in deployment, and therefore allow rendering of templates where we don't need to have all of the ansible facts related to deployment. Signed-off-by: Matej Focko <[email protected]>
- Loading branch information
Showing
5 changed files
with
66 additions
and
35 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
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,38 @@ | ||
# Copyright Contributors to the Packit project. | ||
# SPDX-License-Identifier: MIT | ||
|
||
# We call the facts deploymentconfigs even they are not DeploymentConfigs but Deployments | ||
# because we already use the term 'deployment' for something else (prod/stg). | ||
|
||
--- | ||
- name: Set mandatory_deploymentconfigs fact | ||
ansible.builtin.set_fact: | ||
mandatory_deploymentconfigs: | ||
- postgres-{{ postgres_version }} | ||
- redis | ||
- packit-service | ||
tags: | ||
- always | ||
- name: Set optional_deploymentconfigs fact | ||
ansible.builtin.set_fact: | ||
optional_deploymentconfigs: | ||
tokman: "{{ with_tokman }}" | ||
packit-service-fedmsg: "{{ with_fedmsg }}" | ||
packit-service-beat: "{{ with_beat }}" | ||
packit-dashboard: "{{ with_dashboard }}" | ||
pushgateway: "{{ with_pushgateway }}" | ||
nginx: "{{ with_pushgateway }}" | ||
tags: | ||
- always | ||
- name: Set deploymentconfigs fact | ||
ansible.builtin.set_fact: | ||
# To know what DCs rollouts to wait for and also to check in tests | ||
deploymentconfigs: '{{ mandatory_deploymentconfigs + optional_deploymentconfigs | dict2items | selectattr("value", "equalto", true) | list | map(attribute="key") | flatten }}' | ||
tags: | ||
- always | ||
|
||
- name: Set flower_htpasswd_path | ||
ansible.builtin.set_fact: | ||
flower_htpasswd_path: "{{ path_to_secrets }}/flower-htpasswd" | ||
tags: | ||
- flower |
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