Skip to content

Commit cc12098

Browse files
authored
Merge pull request #47 from jacobsee/dev-deploy-cleanup
General cleanup
2 parents 82c4d2b + e7dd74f commit cc12098

20 files changed

+15
-379
lines changed

.applier/apply.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.applier/inventory/group_vars/all.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.applier/inventory/host_vars/localhost.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.applier/inventory/hosts

Lines changed: 0 additions & 2 deletions
This file was deleted.

.applier/requirements.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.applier/templates/build.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.applier/templates/deploy.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ oc apply -f infinispan-cluster.yaml
138138
```
139139

140140
## Configuration
141+
141142
The preferred place to store non-sensitive data is in the application.properties.
142143

143144
Sensitive fields like the gitlab token and cluster credentials should be stored in a OpenShift secret at a minimum. Other environment specific information should be stored in environmental variables such as repository id for residencies and repository id for the config.
144-
This info is stored in `ocp-s11/labs-test/omp-gitlab-configuration`.
145145

146146
Deployment template will read from the above secret and inject following env variables. These are controlled from application.properties, so if a different env name is needed, change in the application properties file and the deployment template.
147147

@@ -153,15 +153,3 @@ Deployment template will read from the above secret and inject following env var
153153
* `CACHE_USER`
154154
* `CACHE_PASS` (should be secret and match the Infinispan operator secret)
155155
* `CACHE_USE_AUTH` set to true
156-
157-
### OpenShift Applier
158-
159-
This section is not guaranteed to be up to date. This project includes an `openshift-applier` inventory. To use it, make sure that you are logged in to the cluster and that you customize the variables in `.applier/inventory/group_vars/all.yml` - namely make sure that `deploy_vars` uses the correct endpoints. Once these are configured, you can deploy the project with:
160-
161-
```bash
162-
cd .applier/
163-
ansible-galaxy install -r requirements.yml --roles-path=roles --force
164-
ansible-playbook apply.yml -i inventory/
165-
```
166-
167-

development/README.md renamed to deployment/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ If you are not familiar with Helm - how to configure it and run - you can start
1818
git clone https://github.com/rht-labs/open-management-portal-git-api
1919
```
2020

21-
2. Change into to the `development` directory:
21+
2. Change into to the `deployment` directory:
2222

2323
```
24-
cd open-management-portal-git-api/development
24+
cd open-management-portal-git-api/deployment
2525
```
2626

2727
3. Deploy using the following Helm command:
2828

2929
```shell script
3030
helm template . \
31+
--values values-dev.yaml \
3132
--set git.uri=https://github.com/rht-labs/open-management-portal-git-api.git \
3233
--set git.ref=master \
3334
--set cacheService=<your-infinispan-service-name> \

development/templates/buildconfig.yaml renamed to deployment/templates/buildconfig.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.development }}
12
apiVersion: build.openshift.io/v1
23
kind: BuildConfig
34
metadata:
@@ -27,4 +28,5 @@ spec:
2728
type: Source
2829
successfulBuildsHistoryLimit: 5
2930
triggers:
30-
- type: ConfigChange
31+
- type: ConfigChange
32+
{{- end }}

0 commit comments

Comments
 (0)