mote: set up shared volume for meetbot logs in staging
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
757938daec
commit
a68bafa446
6 changed files with 26 additions and 13 deletions
|
@ -44,7 +44,7 @@
|
||||||
process: fedmsg-irc
|
process: fedmsg-irc
|
||||||
- {role: mote,
|
- {role: mote,
|
||||||
when: inventory_hostname.startswith('value01')}
|
when: inventory_hostname.startswith('value01')}
|
||||||
- {role: nfs/client, when: env != "staging", nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid,nfsvers=3", mnt_dir: '/srv/', nfs_src_dir: 'fedora_value_prod'}
|
- {role: nfs/client, nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid,nfsvers=3", mnt_dir: '/srv/', nfs_src_dir: 'fedora_value_{{env_short}}'}
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||||
|
|
|
@ -41,6 +41,11 @@
|
||||||
file: storage.yml
|
file: storage.yml
|
||||||
objectname: storage.yml
|
objectname: storage.yml
|
||||||
|
|
||||||
|
- role: openshift/object
|
||||||
|
app: maubot
|
||||||
|
template: meetbot-logs-volume.yml
|
||||||
|
objectname: meetbot-logs-volume.yml
|
||||||
|
|
||||||
- role: openshift/object
|
- role: openshift/object
|
||||||
app: maubot
|
app: maubot
|
||||||
template: configmap.yml
|
template: configmap.yml
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
appowners:
|
appowners:
|
||||||
- darknao
|
- darknao
|
||||||
- t0xic0der
|
- t0xic0der
|
||||||
|
- ryanlerch
|
||||||
tags:
|
tags:
|
||||||
- appowners
|
- appowners
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: maubot-storage
|
- name: maubot-storage
|
||||||
mountPath: /maubot
|
mountPath: /maubot
|
||||||
|
- name: meetbot-logs
|
||||||
|
mountPath: /meetbot_logs
|
||||||
- name: ipa-config-volume
|
- name: ipa-config-volume
|
||||||
mountPath: /etc/ipa
|
mountPath: /etc/ipa
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -53,6 +55,9 @@ spec:
|
||||||
- name: maubot-storage
|
- name: maubot-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: maubot-storage
|
claimName: maubot-storage
|
||||||
|
- name: meetbot-logs
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: meetbot-logs
|
||||||
- name: ipa-config-volume
|
- name: ipa-config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: ipa-client-config
|
name: ipa-client-config
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: meetbot-logs
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
storageClassName: ""
|
||||||
|
volumeName: fedora-value-{{env_short}}
|
|
@ -3,21 +3,11 @@ kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: meetbot-storage
|
name: meetbot-storage
|
||||||
spec:
|
spec:
|
||||||
{% if env == 'staging' %}
|
# we use a nfs volume shared with meetbot on value02
|
||||||
# For stg, we use a simple ceph volume
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
storageClassName: ocs-storagecluster-cephfs
|
|
||||||
{% else %}
|
|
||||||
# On prod, we use a nfs volume shared with meetbot on value02
|
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 5Gi
|
storage: 5Gi
|
||||||
storageClassName: ""
|
storageClassName: ""
|
||||||
volumeName: fedora-value-prod
|
volumeName: fedora-value-{{env_short}}
|
||||||
{% endif %}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue