-
Notifications
You must be signed in to change notification settings - Fork 17
/
compute-ohpc.yml
62 lines (58 loc) · 3.13 KB
/
compute-ohpc.yml
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
54
55
56
57
58
59
60
61
62
---
# http://serverfault.com/questions/638507/how-to-access-host-variable-of-a-different-host-with-ansible
# We need some facts from the install node, specifically to find address of slurm controller.
#- name: grab facts from install nodes
# hosts: production
# strategy: free
# tasks: [ ]
- name: Compute Nodes
hosts: ohpc_images_compute
strategy: free
#remote_user: root
become: yes
connection: chroot
roles:
- { role: ansible-role-fgci-ssh-keys, tags: [ 'ssh' ] }
- { role: watermark-release, tags: [ 'always' ] }
- { role: ansible-role-fgci-repo, tags: [ 'fgci7', 'repos' ] }
- { role: ansible-role-yum, tags: [ 'yum', 'repos', 'login' ] }
- { role: ansible-role-ohpc-repo, tags: [ 'yum', 'repos', 'ohpc' ] }
# - { role: ansible-role-ohpc-node, tags: [ 'ohpc' ] }
- { role: network_interface, tags: [ 'network' ] }
- { role: ansible-role-hosts-int, tags: [ 'hosts'] }
- { role: ansible-role-chrony, tags: [ 'ntp', 'chrony' ] }
- { role: ansible-role-autofs, tags: [ 'autofs' ] }
# - { role: ansible-role-nis, tags: [ 'nis' ] }
# - { role: ansible-role-adauth, tags: [ 'auth' ] }
- { role: ansible-role-pam, tags: [ 'auth', 'pam' ] }
# - { role: ansible-role-nsswitch, tags: [ 'nsswitch', 'auth' ] }
# - { role: ansible-role-yum-cron-2, tags: [ 'yumcron' ] }
- { role: ansible-role-rsyslog, tags: [ 'rsyslog' ] }
- { role: ansible-role-aliases, tags: [ 'aliases', 'email' ] }
- { role: ansible-role-postfix, tags: [ 'postfix', 'mail' ] }
- { role: ansible-role-idmapd, tags: [ 'idmapd' ] }
- { role: ansible-role-nfs_mount, tags: [ 'nfsmount' ] }
- { role: ansible-role-sshd-host-keys, tags: [ 'sshd', 'ssh', 'host-keys' ] }
- { role: ansible-role-nhc, tags: [ 'nhc', 'slurm' ] }
- { role: ansible-role-nhc-scripts, tags: [ 'nhc', 'slurm', 'nhc-scripts' ] }
- { role: ansible-role-slurm, tags: [ 'slurm' ] }
- { role: ansible-role-cvmfs, tags: [ 'cvmfs' ] }
- { role: ansible-role-rdma, tags: [ 'rdma', 'infiniband' ] }
- { role: ansible-role-system-limits, tags: [ 'limits', 'limit' ] }
- { role: ansible-role-fgci-bash, tags: [ 'bash'] }
- { role: ansible-role-fgci-install, tags: [ 'fgci-install', 'pull'] }
- { role: ansible-role-dell, tags: [ 'dell' ] }
- { role: ansible-role-smartd, tags: [ 'smartd', 'smart' ] }
- { role: ansible-role-sshd, tags: [ 'sshd', 'ssh' ] }
# - { role: ansible-role-collectd, tags: [ 'collectd', 'monitoring' ] }
- { role: ansible-role-serial-console, tags: [ 'serial', 'console' ] }
- { role: ansible-role-lustre_client, tags: [ 'lustre' ], when: lustre_client_enabled }
- { role: ansible-role-systemd-journal, tags: [ 'systemd', 'journal', 'journald' ] }
- { role: ansible-role-lldpd, tags: [ 'lldpd', 'lldp' ] }
- { role: ansible-role-singularity, tags: [ 'singularity' ] }
- { role: ansible-role-cuda, tags: [ 'cuda', 'nvidia' ], when: (gpu is defined) and (gpu==True) }
- { role: ansible-role-sacct_gpu, tags: [ 'gpu', 'nvidia' ], when: (gpu is defined) and (gpu==True) }
- { role: ansible-role-ood-client, tags: [ 'ood' ], when: (ood_client is defined) and (ood_client==True) }
# Local addons to this playbook
#
#- import_playbook: compute_local_play.yml