Skip to content

Commit d6f906b

Browse files
author
Jimmyscene
committed
wip
1 parent db3471c commit d6f906b

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@ Lib/
6767
pyvenv.cfg
6868

6969
# Vscode
70-
.vscode
70+
.vscode
71+
72+
# Ansible
73+
*.retry

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def jobs():
3737
"containers": [
3838
{
3939
"name": name,
40-
"image": "perl" + ":" + tag,
40+
"image": "openshift/perl" + ":" + tag,
41+
"imagePullPolicy": "IfNotPresent",
4142
"command": [
4243
"perl",
4344
"-v"

gogo.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1-
-hosts: local
2-
vars:
3-
name: PROJECT_NAME
4-
description: Project Name
5-
value: flask-example
1+
- hosts: localhost
2+
vars:
3+
project_name: flask-example
64

7-
8-
commands:
9-
# - oc new-project ${PROJECT_NAME}
5+
tasks:
106
- name: Clean up old project
11-
command: oc delete all --selector app=${PROJECT_NAME}
7+
command: oc delete all --selector app={{project_name}}
128
- name: Delete secrets
13-
command: oc delete secret --selector app=${PROJECT_NAME}
9+
command: oc delete secret --selector app={{project_name}}
1410
- name: Create new App
1511
command: oc new-app openshift/templates/flask.yaml -p SOURCE_REPOSITORY_URL=https://github.com/Jimmyscene/django-ex.git
1612
- name: Give edit permissions to default sa
1713
command: oc policy add-role-to-user edit -z default
18-
19-
20-
vars:
21-
name: PROJECT_NAME
22-
description: Project Name
23-

0 commit comments

Comments
 (0)