message-tagging-service: apply config in playbook
In addition, app_name is removed and all name app_name are replaced with default variable app. This change makes message-tagging-service behave the same way like other services.
This commit is contained in:
parent
73e51deb3c
commit
5177fc674f
5 changed files with 15 additions and 14 deletions
|
@ -32,5 +32,7 @@
|
|||
template: "{{ item }}.yml"
|
||||
objectname: "{{ item }}.yml"
|
||||
with_items:
|
||||
- configmap
|
||||
- imagestream
|
||||
- deployment
|
||||
- service
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: "{{ app_name }}-config"
|
||||
name: "{{ app }}-config"
|
||||
labels:
|
||||
app: "{{ app_name }}"
|
||||
app: "{{ app }}"
|
||||
data:
|
||||
app_config.py: |-
|
||||
class BaseConfiguration:
|
||||
|
@ -12,7 +12,7 @@ data:
|
|||
dry_run = True
|
||||
|
||||
keytab = '/etc/krb5.keytab'
|
||||
principal = '{{ app_name }}/{{ app_name }}{{ env_suffix }}.fedoraproject.org@{{ ipa_realm }}'
|
||||
principal = '{{ app }}/{{ app }}{{ env_suffix }}.fedoraproject.org@{{ ipa_realm }}'
|
||||
|
||||
log_level = 'INFO'
|
||||
messaging_backend = 'fedmsg'
|
||||
|
@ -43,7 +43,7 @@ data:
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: "{{ app_name }}-fedmsg"
|
||||
name: "{{ app }}-fedmsg"
|
||||
data:
|
||||
mts.py: |-
|
||||
config = {
|
||||
|
|
|
@ -17,14 +17,14 @@ spec:
|
|||
service: mts
|
||||
spec:
|
||||
containers:
|
||||
- name: "{{ app_name }}"
|
||||
- name: "{{ app }}"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
volumeMounts:
|
||||
- name: "{{ app_name }}-config"
|
||||
- name: "{{ app }}-config"
|
||||
mountPath: /etc/mts
|
||||
readOnly: true
|
||||
- name: "{{ app_name }}"-fedmsg
|
||||
- name: "{{ app }}"-fedmsg
|
||||
mountPath: /etc/fedmsg.d
|
||||
readOnly: true
|
||||
- name: keytab
|
||||
|
@ -60,7 +60,7 @@ spec:
|
|||
imageChangeParams:
|
||||
automatic: true
|
||||
containerNames:
|
||||
- "{{ app_name }}"
|
||||
- "{{ app }}"
|
||||
from:
|
||||
kind: ImageStreamTag
|
||||
name: "{{ app_name }}:latest"
|
||||
name: "{{ app }}:latest"
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
apiVersion: v1
|
||||
kind: ImageStream
|
||||
metadata:
|
||||
name: "{{ app_name }}"
|
||||
name: "{{ app }}"
|
||||
labels:
|
||||
app: "{{ app_name }}"
|
||||
app: "{{ app }}"
|
||||
spec:
|
||||
tags:
|
||||
- name: latest
|
||||
from:
|
||||
kind: DockerImage
|
||||
{% if env == 'staging' %}
|
||||
name: "quay.io/factory2/{{ app_name }}:stage"
|
||||
name: "quay.io/factory2/{{ app }}:stage"
|
||||
{% else %}
|
||||
name: "quay.io/factory2/{{ app_name }}:prod"
|
||||
name: "quay.io/factory2/{{ app }}:prod"
|
||||
{% endif %}
|
||||
importPolicy:
|
||||
scheduled: true
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
app: message-tagging-service
|
||||
app_name: message-tagging-service
|
||||
description: message-tagging-service
|
||||
appowners:
|
||||
- mizdebsk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue