Initial attempt at hosting ipsilon-project.org. Not functional at the moment.
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
b5be505576
commit
5561df1b1d
4 changed files with 145 additions and 0 deletions
49
playbooks/openshift-apps/ipsilon-website.yml
Normal file
49
playbooks/openshift-apps/ipsilon-website.yml
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
- name: make the app be real
|
||||||
|
hosts: os_control_stg[0]:os_control[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
|
||||||
|
|
||||||
|
vars:
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: openshift/project
|
||||||
|
app: ipsilon-website
|
||||||
|
description: "ipsilon-project.org"
|
||||||
|
appowners:
|
||||||
|
- abompard
|
||||||
|
- puiterwijk
|
||||||
|
tags:
|
||||||
|
- apply-appowners
|
||||||
|
|
||||||
|
- role: openshift/imagestream
|
||||||
|
app: ipsilon-website
|
||||||
|
imagename: ipsilon-website
|
||||||
|
|
||||||
|
- role: openshift/object
|
||||||
|
app: ipsilon-website
|
||||||
|
template: buildconfig.yml
|
||||||
|
objectname: buildconfig.yml
|
||||||
|
|
||||||
|
- role: openshift/object
|
||||||
|
app: ipsilon-website
|
||||||
|
file: service.yml
|
||||||
|
objectname: service.yml
|
||||||
|
|
||||||
|
- role: openshift/route
|
||||||
|
app: ipsilon-website
|
||||||
|
routename: web
|
||||||
|
host: "ipsilon-website.apps.ocp{{ env_suffix }}.fedoraproject.org"
|
||||||
|
serviceport: web
|
||||||
|
servicename: web
|
||||||
|
annotations:
|
||||||
|
haproxy.router.openshift.io/timeout: 5m
|
||||||
|
|
||||||
|
- role: openshift/object
|
||||||
|
app: ipsilon-website
|
||||||
|
template: deploymentconfig.yml
|
||||||
|
objectname: deploymentconfig.yml
|
14
roles/openshift-apps/ipsilon-website/files/service.yml
Normal file
14
roles/openshift-apps/ipsilon-website/files/service.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: web
|
||||||
|
labels:
|
||||||
|
app: ipsilon-website
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: web
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
selector:
|
||||||
|
app: ipsilon-website
|
||||||
|
deploymentconfig: web
|
|
@ -0,0 +1,24 @@
|
||||||
|
apiVersion: build.openshift.io/v1
|
||||||
|
kind: BuildConfig
|
||||||
|
metadata:
|
||||||
|
name: web
|
||||||
|
labels:
|
||||||
|
app: ipsilon-website
|
||||||
|
build: ipsilon-website
|
||||||
|
spec:
|
||||||
|
runPolicy: Serial
|
||||||
|
source:
|
||||||
|
type: Git
|
||||||
|
git:
|
||||||
|
uri: https://pagure.io/ipsilon-website.git
|
||||||
|
ref: master
|
||||||
|
contextDir: /
|
||||||
|
strategy:
|
||||||
|
type: Docker
|
||||||
|
output:
|
||||||
|
to:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: ipsilon-website:latest
|
||||||
|
triggers:
|
||||||
|
- type: ConfigChange
|
||||||
|
- type: ImageChange
|
|
@ -0,0 +1,58 @@
|
||||||
|
apiVersion: apps.openshift.io/v1
|
||||||
|
kind: DeploymentConfig
|
||||||
|
metadata:
|
||||||
|
name: web
|
||||||
|
labels:
|
||||||
|
app: ipsilon-website
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
app: ipsilon-website
|
||||||
|
deploymentconfig: web
|
||||||
|
strategy:
|
||||||
|
type: Rolling
|
||||||
|
activeDeadlineSeconds: 21600
|
||||||
|
rollingParams:
|
||||||
|
intervalSeconds: 1
|
||||||
|
maxSurge: 25%
|
||||||
|
maxUnavailable: 25%
|
||||||
|
timeoutSeconds: 600
|
||||||
|
updatePeriodSeconds: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
app: ipsilon-website
|
||||||
|
deploymentconfig: web
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: ipsilon-website
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
#protocol: TCP
|
||||||
|
readinessProbe:
|
||||||
|
timeoutSeconds: 5
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 8080
|
||||||
|
livenessProbe:
|
||||||
|
timeoutSeconds: 5
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 8080
|
||||||
|
#resources: {}
|
||||||
|
#terminationMessagePath: /dev/termination-log
|
||||||
|
#terminationMessagePolicy: File
|
||||||
|
triggers:
|
||||||
|
- type: ConfigChange
|
||||||
|
- type: ImageChange
|
||||||
|
imageChangeParams:
|
||||||
|
automatic: true
|
||||||
|
containerNames:
|
||||||
|
- ipsilon-website
|
||||||
|
from:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: ipsilon-website:latest
|
Loading…
Add table
Add a link
Reference in a new issue