Skip to content

Commit 4f34bf5

Browse files
Merge pull request #200 from stfc/ansible-fixes
Small fixes to grafana deployment
2 parents 7e23553 + adad387 commit 4f34bf5

File tree

4 files changed

+34
-33
lines changed

4 files changed

+34
-33
lines changed

grafana_monitoring/group_vars/grafana/vars

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Variables used for the Grafana configuration
22

3-
env: "production" # Environment you are building in development or production
4-
domain: "grafana.nubes.rl.ac.uk" # Domain of the Grafana instance. E.g. grafana.nubes.rl.ac.uk
3+
domain: "" # Domain of the Grafana instance. E.g. grafana.nubes.rl.ac.uk
54
grafana_dashboards_branch: "main" # Branch to pull the dashboards from
65

76
# Secret variables links
Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
$ANSIBLE_VAULT;1.1;AES256
2-
35663834643230653237393137656162383834646663366163323237373665383666346335643162
3-
6165663336343138663334663830666239643164366131330a656662373536323732643064313735
4-
30633864353565336463623361323337366164666638366130663165616136666631353434636631
5-
3032616439366432320a626464656231653535356139326661373637633232656164653130633162
6-
62383464326331346231613632373663346465386136313933353862366331663737626337386635
7-
39633439336263363539323134303032616630363439643462366537396634383333333136633535
8-
33653461346331666266343633363137613564396530316663623734343335663735623835313437
9-
34366331383531346433643762663963356266393836653835333737643635366533303561323538
10-
62313531303564386436656238636532643166323939353030383530633564343730613134356438
11-
32663066356664613730353263363332303634336466636165303365393937316561376661653339
12-
38663566626635383965373766333430363035613333643136343933303766333430323738643137
13-
35333335653863396235336337613737313138383137656333393062386632363065336531613964
14-
62343139653538306661336133383061373530326539366664343865326637363932343136636239
15-
63373135663231323663393934643739313930333637653565643531373962613964383661306463
16-
62663263626662653636343532336139356265323763356464343633643565376335336561303831
17-
61633565303362333132646266333531363734636163373638633364333634626337376632656636
18-
63653033303438666234396332636166363437393663626538643732613433666236393636376465
19-
30303436363837356436633237363862336565626435316135396566363236656564363366356637
20-
63373861333966346663653762633062663038663935626262306562326538303233633265306132
21-
62303464356365633162646532386133663062363163623134376561353561323830653039626633
22-
32393535383039393233303730643465323636303134313438346261653761333036653637363866
23-
64376530643662393138313762636562356661663163323566336638663531316361386633633638
24-
32336234343939353938613364323262363837373835323562623964316565396564626464643161
25-
61666339666233303762653466363139346134333536653562313565373234323330303437393939
26-
62363230666630326364313936633462323330656230363634313731323838656564393238393132
27-
63393836393763373736663834396131333863653264623332633133396333306163343835653365
28-
36366463633463366638656339333431646362373032616132396231383862336464373764396538
29-
33363762663830343439356633623130656532343733383563356138633530373632633861616333
30-
3438
2+
37613465313732396166303633646535306236386562303061373530366233653936646564383436
3+
3631646165346361396234333766323961616539653435360a623236356334626466623938353166
4+
37316234653339303264623232623139346534333738356239316563626463663461656238303233
5+
6238666633346562630a353666353339313362613630653131303739313535313265663238383132
6+
63623132323731303333643333666464643065356335626437396664656239373662366531383936
7+
38323733623737363963363435613335386431353366346338353762623135326566666330303965
8+
62373730336333373661303738653631643062616562343866663234363764343461393966303732
9+
62616462303336623264386434323061383636653635326464353336313364336530653864626535
10+
65346630306538356662353430643866373636303266666432633036626661306261356539313430
11+
34336334373332303865626130306562343963333531306131626234323332623664616538336337
12+
62396230313739616437623734396362376236383462616564363337326536653534393534356533
13+
38306261363166396266343532346431393439346635663633363338306661396138303266666163
14+
33663939633564316561653862613536363436396137343030633831333165383235396236316139
15+
39383536306362663236623165383430363663323564323437356662613434663838376664313631
16+
36616331633439363832366431643335303063646637383861646464303335356262353061666236
17+
35383331393635373065366236363236353130616432636537366466626635666138323438623138
18+
35336265646165373865386466373966316565323035633033643863346665636536613665633337
19+
37646637333235366664663839636637333933353931393765393462626263346633366264653364
20+
34316630363562613738316333333635636335326235646362626339396630333161613331303336
21+
63643366623838336435323437346436666336316336383832376337313833333430323764656234
22+
39666230323138663134656562646663373831646162353130653130323534343436643938346337
23+
30653166313637343334316531313064333264633733396562393663333639616232636131313862
24+
32666531366138636361646638383965323332336639636533316234623731663334396639306332
25+
65373365663730626331633039303261343161313530383035376430363961663833643637316661
26+
36636130303863313733633461616132393933356231383734393331383438376565313635316133
27+
34353636353566333138323836393335643262623732623539613234653661313532333866363761
28+
64366639653330366137363866363762643138373361303361393536366165373031623734346539
29+
30613531313139356631626664373335623766626262326661643733363134313761323736663962
30+
39343538356134663962643438663363633836653836663465646638666632653633316632663938
31+
61373139306362316262326163343239396366656464383461363034396665653830356236646364
32+
656163646535623135303738633035386461

grafana_monitoring/roles/grafana/templates/cloud_datasource.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ datasources:
3737
type: influxdb
3838
access: proxy
3939
uid: "weekly-reports"
40-
url: "https://172.16.114.22:8086"
40+
url: "https://influx.weekly-reporting.nubes.rl.ac.uk:8086"
4141
basicAuth: false
4242
jsonData:
4343
tlsSkipVerify: true

grafana_monitoring/roles/grafana/templates/grafana.ini.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ log_level = critical
2626
[security]
2727
admin_password="{{ grafana_admin_password }}"
2828

29-
{% if env == "staging" %}
29+
{% if domain.startswith("dev") %}
3030
[users]
3131
auto_assign_org_role=Editor
3232
{% endif %}

0 commit comments

Comments
 (0)