-
Notifications
You must be signed in to change notification settings - Fork 6
/
userdata.yaml.j2
53 lines (53 loc) · 1.89 KB
/
userdata.yaml.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#cloud-config
write_files:
- content: |
{% if image is defined and image.endswith("gpu") -%}
# Advertise the GPUs
use feature : GPUs
GPU_DISCOVERY_EXTRA = -extra
{% endif -%}
GalaxyTraining = {{ "training" in name }}
GalaxyGroup = "{{ group }}"
GalaxyCluster = "denbi"
GalaxyDockerHack = {{ docker }}
STARTD_ATTRS = GalaxyTraining, GalaxyGroup, GalaxyCluster, GalaxyDockerHack
Rank = StringListMember(MY.GalaxyGroup, TARGET.Group)
BASE_CGROUP = htcondor
CGROUP_MEMORY_LIMIT_POLICY = hard
RESERVED_MEMORY = 2048
owner: root:root
path: /etc/condor/config.d/99-cloud-init.conf
permissions: "0644"
- content: |
[[outputs.influxdb]]
urls = ["https://influxdb.galaxyproject.eu:8086"]
database = "{{ influxdb.database }}"
username = "{{ influxdb.username }}"
password = "{{ influxdb.password }}"
owner: telegraf:telegraf
path: /etc/telegraf/telegraf.d/output.conf
permissions: "0640"
- content: |
/data /etc/auto.data nfsvers=3
/- /etc/auto.usrlocal nfsvers=3
owner: root:root
path: /etc/auto.master.d/data.autofs
permissions: "0644"
- content: |
{% for mount in dnb.values() -%}
{{ mount.name }} -{{ mount.nfs_options | join(',') }} {{ mount.export }}
{% endfor -%}
{% for mount in jwd.values() -%}
{{ mount.name }} -{{ mount.nfs_options | join(',') }} {{ mount.export }}
{% endfor %}
owner: root:root
path: /etc/auto.data
permissions: "0644"
- content: |
{% for mount in tools.values() -%}
{{ mount.path }} -{{ mount.nfs_options | join(',') }} {{ mount.export }}
{% endfor -%}
{{ sync.gxkey.path }} -{{ sync.gxkey.nfs_options | join(',') }} {{ sync.gxkey.export }}
owner: root:root
path: /etc/auto.usrlocal
permissions: "0644"