-
Notifications
You must be signed in to change notification settings - Fork 178
/
create_sl_vms.yml
49 lines (47 loc) · 1.24 KB
/
create_sl_vms.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
---
- name: create servers
hosts: localhost
gather_facts: False
tasks:
- name: Include cluster vars
include_vars:
file: cluster/config.yaml
- name: create master
sl_vm:
hostname: "{{ item }}"
domain: example.com
datacenter: "{{ sl_datacenter|default('dal09') }}"
tags: "{{ item }},icp,master"
hourly: True
private: False
dedicated: False
local_disk: True
cpus: 2
memory: 4096
disks: [100]
os_code: CENTOS_LATEST
private_vlan: "{{ sl_vlan|default(omit) }}"
wait: no
ssh_keys: "{{ sl_ssh_key|default(omit) }}"
with_items:
- icp-master01
- name: create workers
sl_vm:
hostname: "{{ item }}"
domain: example.com
datacenter: "{{ sl_datacenter|default('dal09') }}"
tags: "{{ item }},icp,worker"
hourly: True
private: False
dedicated: False
local_disk: True
cpus: 2
memory: 4096
disks: [100]
os_code: CENTOS_LATEST
private_vlan: "{{ sl_vlan|default(omit) }}"
wait: no
ssh_keys: "{{ sl_ssh_key|default(omit) }}"
with_items:
- icp-worker01
- icp-worker02