blob: 2ccb405e22a03a43c68e683759eae534a9d7b573 [file] [log] [blame]
Andy Bavier3a1d0642016-07-01 14:11:39 -04001---
Zack Williamsa2763112017-01-03 11:38:38 -07002# cord-compute-playbook.yml
3# Installs and configures compute nodes
Andy Bavier3a1d0642016-07-01 14:11:39 -04004
5- name: Include vars
6 hosts: all
7 tasks:
Zack Williams35624562016-08-28 17:12:26 -07008 - name: Include variables
9 include_vars: "{{ item }}"
10 with_items:
Zack Williamsa2763112017-01-03 11:38:38 -070011 - "profile_manifests/{{ cord_profile }}.yml"
12 - profile_manifests/local_vars.yml
Andy Bavier3a1d0642016-07-01 14:11:39 -040013
14- name: Configure compute hosts to use DNS server
15 hosts: all
16 become: yes
17 roles:
Andy Bavier0481a8a2016-07-14 13:01:45 +020018 - { role: dns-configure, when: not on_maas }
Andy Bavier3a1d0642016-07-01 14:11:39 -040019
20- name: Prep systems
21 hosts: compute
22 become: yes
23 roles:
24 - common-prep
25 - { role: cloudlab-prep, when: on_cloudlab }
26
27- name: Configure head node (for sshkey)
28 hosts: head
29 roles:
30 - { role: head-prep, become: yes }
31
32- name: Configure compute nodes
33 hosts: compute
34 become: yes
35 roles:
36 - compute-prep
37
Zack Williamsa2763112017-01-03 11:38:38 -070038- name: Deploy compute nodes, create configuration
Andy Bavier3a1d0642016-07-01 14:11:39 -040039 hosts: head
40 roles:
41 - juju-compute-setup
Zack Williamsa2763112017-01-03 11:38:38 -070042 - compute-node-config
43
44- include: add-onboard-containers-playbook.yml
45
46- name: Enable compute nodes in XOS
47 hosts: xos_ui
48 connection: docker
49 roles:
50 - compute-node-enable
51