ansible/playbooks/openshift-apps/the-new-hotness.yml
Michal Konečný eb2c9bfff4 the-new-hotness, release-monitoring: Fix privatefile paths for cert
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
2019-02-27 15:37:02 +01:00

79 lines
No EOL
2.3 KiB
YAML

- name: make the app be real
hosts: os-masters-stg[0]
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- role: openshift/project
app: the-new-hotness
description: Fedora-messaging consumer that listens to the-new-hotness.org and files bugzilla bugs in response.
appowners:
- zlopez
- role: openshift/secret-file
app: the-new-hotness
secret_name: the-new-hotness-fedora-messaging-ca
key: fedora-messaging-the-new-hotness.ca
privatefile: "rabbitmq/{{env}}/pki/ca.crt"
- role: openshift/secret-file
app: the-new-hotness
secret_name: the-new-hotness-fedora-messaging-key
key: fedora-messaging-the-new-hotness.key
privatefile: "rabbitmq/{{env}}/pki/private/the-new-hotness{{env_suffix}}.key"
when: env == "staging"
- role: openshift/secret-file
app: the-new-hotness
secret_name: the-new-hotness-fedora-messaging-cert
key: fedora-messaging-the-new-hotness.crt
privatefile: "rabbitmq/{{env}}/pki/issued/the-new-hotness{{env_suffix}}.crt"
when: env == "staging"
- role: openshift/secret-file
app: the-new-hotness
secret_name: the-new-hotness-fedora-messaging-key
key: fedora-messaging-the-new-hotness.key
privatefile: "rabbitmq/{{env}}/pki/private/the-new-hotness.key"
when: env != "staging"
- role: openshift/secret-file
app: the-new-hotness
secret_name: the-new-hotness-fedora-messaging-cert
key: fedora-messaging-the-new-hotness.crt
privatefile: "rabbitmq/{{env}}/pki/issued/the-new-hotness.crt"
when: env != "staging"
- role: openshift/object
app: the-new-hotness
file: imagestream.yml
objectname: imagestream.yml
- role: openshift/object
app: the-new-hotness
template: buildconfig.yml
objectname: buildconfig.yml
- role: openshift/object
app: the-new-hotness
template: configmap.yml
objectname: configmap.yml
- role: openshift/start-build
app: the-new-hotness
buildname: the-new-hotness-build
objectname: the-new-hotness-build
- role: openshift/object
app: the-new-hotness
file: deploymentconfig.yml
objectname: deploymentconfig.yml
- role: openshift/rollout
app: the-new-hotness
dcname: the-new-hotness