forked from contiv-experimental/volplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
91 lines (84 loc) · 3.19 KB
/
site.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
# This playbook deploys the configuration based on special purpose host-groups.
# devtest hosts correspond to the dev, lab and vagrant based machines for contiv projects.
# Here we will install the base packages needed for those environments that includes:
# - base production packages like python, ansible, serf etc
# - development tools like go
# - pre-bake some binaries that are otherwise installed as part of contiv
# service deployments like collins, sky-dns, ceph etc.
- hosts: devtest
sudo: true
environment: '{{ env }}'
roles:
- { role: base }
- { role: dev }
- { role: test }
- hosts: volplugin-test
sudo: true
environment: '{{ env }}'
roles:
- { role: base }
- { role: vagrant }
- { role: ucarp }
- { role: etcd, run_as: master }
- { role: docker, etcd_client_port1: 2379 }
- { role: ceph-mon, mon_group_name: volplugin-test }
- { role: ceph-osd, mon_group_name: volplugin-test, osd_group_name: volplugin-test }
- { role: swarm, run_as: master }
- { role: contiv_network, run_as: master }
# cluster-node hosts corresponds to the hosts that shall be managed by cluster manager.
# This host group shall provision a host with all required packages needed to make
# the node ready to be managed by cluster-manager
- hosts: cluster-node
sudo: true
environment: '{{ env }}'
roles:
- { role: base }
- { role: serf }
# cluster-control hosts corresponds to the first machine in the cluster that is provisioned
# to bootstrap the cluster by starting cluster manager and inventory database (collins)
- hosts: cluster-control
sudo: true
environment: '{{ env }}'
roles:
- { role: base }
- { role: docker, etcd_client_port1: 2379 }
- { role: contiv_cluster }
# service-master hosts correspond to cluster machines that run the master/controller
# logic of the infra services
- hosts: service-master
sudo: true
environment: '{{ env }}'
roles:
- { role: base }
- { role: ucarp }
- { role: docker }
- { role: etcd, run_as: master }
- { role: ceph-mon, mon_group_name: service-master }
- { role: ceph-osd, mon_group_name: service-master, osd_group_name: service-master, when: host_capability|match('.*storage.*') }
- { role: scheduler_stack, run_as: master }
- { role: contiv_network, run_as: master, when: host_capability|match('.*network.*') }
- { role: contiv_storage, run_as: master }
# service-worker hosts correspond to cluster machines that run the worker/driver
# logic of the infra services.
- hosts: service-worker
sudo: true
environment: '{{ env }}'
roles:
- { role: base }
- { role: docker }
- { role: etcd, run_as: worker }
- { role: ceph-osd, mon_group_name: service-master, osd_group_name: service-worker, when: host_capability|match('.*storage.*') }
- { role: scheduler_stack, run_as: worker }
- { role: contiv_network, run_as: worker, when: host_capability|match('.*network.*') }
- { role: contiv_storage, run_as: worker }
# netplugin-node hosts set up netmast/netplugin in a cluster
- hosts: netplugin-node
sudo: true
environment: '{{ env }}'
roles:
- { role: base }
- { role: etcd, run_as: master }
- { role: docker, etcd_client_port1: 2379 }
- { role: swarm, run_as: master }
- { role: contiv_network, run_as: master }