File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 76
76
hosts : prometheus
77
77
tags : prometheus
78
78
tasks :
79
+ - name : Check for existing prometheus binaries
80
+ stat :
81
+ path : /usr/local/bin/{{ item }}
82
+ register : prometheus_binaries
83
+ loop :
84
+ - prometheus
85
+ - promtool
86
+ - name : Skip prometheus install if prometheus binaries exist and prometheus_version not defined
87
+ # i.e. if prometheus_version isn't defined we don't care, so use what's already there
88
+ set_fact :
89
+ prometheus_skip_install : " {{ false if prometheus_version is defined else true }}"
90
+ when : " {{ (prometheus_binaries.results | map(attribute='stat') | map(attribute='exists')) + [prometheus_skip_install is not defined] }}"
79
91
- import_role :
80
92
name : cloudalchemy.prometheus
81
93
Original file line number Diff line number Diff line change 1
1
flavor = " general.v1.tiny"
2
2
networks = [" c245901d-6b84-4dc4-b02b-eec0fb6122b2" ] # stackhpc-ci-geneve
3
- source_image_name = " Rocky-8-GenericCloud-8.5-20211114.2.x86_64 "
3
+ source_image_name = " openhpc-220413-1545.qcow2 "
4
4
ssh_keypair_name = " slurm-app-ci"
5
5
security_groups = [" default" , " SSH" ]
6
6
ssh_bastion_host = " 185.45.78.150"
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ variable "control_node" {
26
26
description = " Mapping {flavor: flavor_name, image: image_name_or_id }"
27
27
default = {
28
28
flavor: " general.v1.tiny"
29
- image: " Rocky-8-GenericCloud-8.5-20211114.2.x86_64 "
29
+ image: " openhpc-220413-1545.qcow2 "
30
30
}
31
31
}
32
32
@@ -36,7 +36,7 @@ variable "login_nodes" {
36
36
default = {
37
37
login- 0 : {
38
38
flavor: " general.v1.tiny"
39
- image: " Rocky-8-GenericCloud-8.5-20211114.2.x86_64 "
39
+ image: " openhpc-220413-1545.qcow2 "
40
40
}
41
41
}
42
42
}
@@ -47,7 +47,7 @@ variable "compute_types" {
47
47
default = {
48
48
small: {
49
49
flavor: " general.v1.tiny"
50
- image: " Rocky-8-GenericCloud-8.5-20211114.2.x86_64 "
50
+ image: " openhpc-220413-1545.qcow2 "
51
51
}
52
52
}
53
53
}
Original file line number Diff line number Diff line change 6
6
version : v0.12.0
7
7
name : stackhpc.openhpc
8
8
- src : https://github.com/stackhpc/ansible-node-exporter.git
9
- version : support-rhel-clones
9
+ version : feature/no-install
10
10
name : cloudalchemy.node_exporter
11
11
- src : cloudalchemy.blackbox-exporter
12
12
version : 1.0.0
You can’t perform that action at this time.
0 commit comments