Skip to content

Commit

Permalink
adopted changes in projects
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Görn <goern@redhat.com>
  • Loading branch information
goern committed Jan 4, 2019
1 parent 22cf95a commit 213c701
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 38 deletions.
66 changes: 33 additions & 33 deletions playbooks/group_vars/all/vault
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
$ANSIBLE_VAULT;1.1;AES256
36623533613231383361393166343637303065616332653732356461613938383934363761376665
3265663135303237643765323431396237646633376237630a326135343265616164643832623837
66306131326434396433303831616466666562313961323766663664396232363633353065666433
3131343531373333350a353637353839303637333335373064623436366538663961343165663339
35363333613335386232633930363034376531643261303765383439326364343562316665353830
30666565663861663836613933353834353031393038663562333530663662373666633936346564
35636564363730373531633337643435396362386661373138666431356437363365303134666134
32363231636261643230643161396634633334613263346238336234653264616462353336306132
65646664383565626438346566343465613866356237636164633438623336636563313864666364
38356165613534336161356630386237306431643333313337313332313465633533633261663339
33373134646264376562393963363063303861343631323930323336326532363836303038323663
38393531626666386136306433376661313263356263313364323463623630383566616364306365
62346339386233663531343834336436313062323338663563313065356362666161353234653236
34643563303936303037383831356266396437633739633831616533613464616666653462306466
39633332643331343534626435373930646263653661663863633535353333306631336566343539
38663231633039343131373134346466366166653932373766653464623935396564343833393166
33643166326365316539386130323232353234666236653436333861633033626339323934326636
63303431363333633565646539336130663765376166333338616162316634623038663539623834
38323734393339616631343930323934353039376637643136333139336437643961346639366431
65666335306261663464316265346135373537303961643162363239653166346139313064353762
35306637353866363137356134303033313035323261366538313131393866353835313361653333
65656234386136643166323531616465626261323639653237626634396537336462633463653337
30663336636431613732383638613263613536663165336633623439656634376132303461373131
39393430336638636265366635353263326232646639623037356435653235303366633565383537
62373837646530623665373063393962313834316437623463633438313432303962653131623232
64623138343263366563366266646637353265343465346634343732653662363030663630376230
65343963346165623839333761323835333533633037326634343134623033663732376334393761
34633365353936306262316562623730343439623532383036313930366666323638636338643364
34366566646162386161316333643838623335343263313333646438626563356236633739636630
63613236313837333432393338653734633038393261643236343938646339663234623361663235
32653932623138663966643436366563343339363334346639396530336563663261396336323833
31313633646536643666633533393138323436353262343633363863393534636333373533303634
3637
62623033356336336263616365383935316665396232386337396164653766623838356434393833
3234346130313833366630313562363739626137643432380a303530356161613463333962386532
36373933316264393630633562616139343739396265666135306261613966313134346231646436
6166383831653939610a303833626135346565393234393735383838363465653133343838373063
61353337333037333536323333323864353562313534313966626262343463666463326131303064
39346638343838643239636630336665666236653539653731393731643835383036663630643066
30363030613862633132626531643562366566623836646332623239323766373962663761613362
61643835366137613161643364613066343936623733363166666366376364663333346336643666
38613862323138383262376637353334363934393763313633653731383034666634386235303534
65353566316230336131373362346166616566333262646533336562363763383836326239393839
30316332326531356532323230323834326135653435363633646130646161323939363633346333
36373630333532393839356435383438646364646461653332316630336233633764353230396362
62653737663335663164366634373663613636353264663734393130643661393939666337623561
33636434353832643937633863306230316134306531383263663435333232383430303037643365
62313731313030373037323163656237373035326662616130323765343836656231346132646532
35323065616631346334353664383866356165383565636336383631613339303265663233386463
34636266313764323435313534393266333030376264353535393932653466646239663838393739
36646263333863333666616462346564623562643435343131353862343264323466336366383165
36613534336239643037653966333263653564646334636130303038656334363234323132336266
39323330313339333563333136613766636263356465386261386463353165313064333365356430
37383834646137373965653833373261323761393461376661336532653832353464333138653362
38323431623336303662356465366534343638643838336235623165623132343434363930656535
62636364613034636365356563306261656537326531643235343632646561616437313435363466
38333661633230666561343533623932396131313231396166343730333133306563656266373666
65636438613463363035613735313138643035646266656138643735396235663837643332346462
64316335383930356266336162363838356662303238376665666236373139643833353931323631
38313635646139303465343262333534363066633733656638303263646635326664643937373366
35323064326133306536663631373730323730653532333433303363366139373932313832623533
65363134626238376534353132333639383664313531306263313635323535646562653463663039
30323633646166393132366430373637356336323366646463393663353433633336353762396637
65326264373935326161323030373533643435383937313037353234633236643337376531343933
66333363613834383434633261353038623639336462396163313766366233376563316632396630
3730
34 changes: 34 additions & 0 deletions playbooks/initialize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
- name: "Playbook to initialize Thoth Knowledge"
tags:
- openshift
- thoth

hosts: localhost
connection: local
gather_facts: false

tasks:
- name: "create Init Job Templates in {{ infra_namespace }}"
command: "oc create --save-config=true --namespace {{ infra_namespace }} --filename {{ item }}"
with_items:
- https://raw.githubusercontent.com/thoth-station/init-job/master/openshift/imageStream-template.yaml
- https://raw.githubusercontent.com/thoth-station/init-job/master/openshift/buildConfig-template.yaml
- https://raw.githubusercontent.com/thoth-station/init-job/master/openshift/job-template.yaml

- name: "creating ImageStream in {{ frontend_namespace }}"
shell: "oc process --namespace {{ infra_namespace }} init-job-imagestream | oc apply --namespace {{ frontend_namespace }} -f -"

- name: "creating BuildConfig in {{ frontend_namespace }}"
shell: "oc process --namespace {{ infra_namespace }} init-job-buildconfig | oc apply --namespace {{ frontend_namespace }} -f -"

- name: "deploy Init Jon in {{ frontend_namespace }}"
shell: oc process --namespace "{{ infra_namespace }}" init-job | oc apply --namespace "{{ frontend_namespace }}" -f -

- name: "wait for init-job to be successfully finished"
debug:
msg: "TODO wait for init-job to be successfully finished"
check_mode: yes

- name: "delete templates used by Init Job"
shell: oc delete templates --namespace "{{ infra_namespace }}" --selector "component=init-job"
6 changes: 1 addition & 5 deletions playbooks/provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,14 @@
namespace: "{{ frontend_namespace }}"
cronjob_name: "cve-update"
suspend: False
- role: thoth-station.cronjob
namespace: "{{ frontend_namespace }}"
cronjob_name: "graph-sync"
suspend: False
- role: thoth-station.cronjob
namespace: "{{ frontend_namespace }}"
cronjob_name: "graph-refresh"
suspend: false
- role: thoth-station.cronjob
namespace: "{{ frontend_namespace }}"
cronjob_name: "cleanup"
suspend: false
suspend: false

# deploy Amun and all it's components
- role: thoth-station.amun
Expand Down

0 comments on commit 213c701

Please sign in to comment.