-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yml
110 lines (110 loc) · 3.86 KB
/
build.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
# build.yml: Create your host and group var files from this
- hosts: localhost
gather_facts: no
roles:
- build
vars:
ntp_server_list:
- 10.10.10.2
dns_server_list:
- 10.10.10.2
dns_domain: sdn40r61.lab
servers:
- { hostname: ns1.sdn40r61.lab,
description: "name, ntp and dhcp server" ,
inventory: nserver ,
memory: 4194304 ,
vcpu_num: 2 ,
disk_GB: 20 ,
image_qcow2: /tmp/centos7.qcow2 ,
hypervisor: 192.168.1.113,
ansible_host: 10.10.10.2 ,
gateway: 10.10.10.1,
ntpservers: local ,
nameservers: [ 8.8.8.8 , 4.4.4.4 ] ,
interfaces: [
{ name: eth0 ,
bridge: br00,
ip: 10.10.10.2 ,
netmask: 255.255.255.0 },
{ name: eth1 ,
bridge: br01,
ip: 10.10.20.2 ,
netmask: 255.255.255.0 }
]
}
- { hostname: vsd1.sdn40r61.lab,
description: "Nuage Stand-Alone VSD, management plane" ,
inventory: vsd ,
Is_NM_enabled: true ,
memory: 16777216 ,
vcpu_num: 8 ,
image_qcow2: /tmp/vsd40r61.qcow2 ,
hypervisor: 192.168.1.113,
ansible_host: 10.10.10.10 ,
gateway: 10.10.10.1,
interfaces: [
{ name: eth0 ,
bridge: br00,
ip: 10.10.10.10 ,
netmask: 255.255.255.0 },
{ name: eth1 ,
bridge: br01,
ip: 10.10.20.10 ,
netmask: 255.255.255.0 }
]
}
vsc_controllers:
- { hostname: vsc1.sdn40r61.lab,
description: "Nuage VSC - SDN controller" ,
inventory: vsc ,
image_qcow2: /tmp/vsc40r61.qcow2 ,
hypervisor: 192.168.1.113,
ansible_host: 10.10.10.11 ,
vsd_fqdn: vsd1.sdn40r61.lab,
system_ip: 1.1.1.2,
xmpp_username: vsc01,
gateway: 10.10.10.1,
interfaces: [
{ name: bof ,
bridge: br00,
ip: 10.10.10.11 ,
prefix: 24 },
{ name: control ,
bridge: br01 ,
ip: 10.10.20.11 ,
prefix: 24 }
],
static_routes: [
"0.0.0.0/1 next-hop 10.10.10.1" ,
"128.0.0.0/1 next-hop 10.10.10.1"
]
}
- { hostname: vsc2.sdn40r61.lab,
description: "Nuage VSC - SDN controller" ,
inventory: vsc ,
image_qcow2: /tmp/vsc40r61.qcow2 ,
hypervisor: 192.168.1.113,
ansible_host: 10.10.10.12 ,
vsd_fqdn: vsd1.sdn40r61.lab,
system_ip: 1.1.1.3 ,
xmpp_username: vsc02,
gateway: 10.10.10.1,
interfaces: [
{ name: bof ,
bridge: br00,
ip: 10.10.10.12 ,
prefix: 24 },
{ name: control ,
bridge: br01 ,
ip: 10.10.20.12 ,
prefix: 24 }
] ,
static_routes: [
"0.0.0.0/1 next-hop 10.10.10.1" ,
"128.0.0.0/1 next-hop 10.10.10.1"
]
}
ssh_key:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLN1xnfl2jru9Z4FOovZrKVKGXXlvypchdp5O+XCKpT76gV7zsZib00IR3H8Az4qziCj9gJIlurprWq3xHTSwSz3vP+C8slT0VgXbk+JdSYrC9KFfwcVdItSx18bvjcscDeFCsBYk4+LqIikMIZoBaXbsdIwCOnBMWzBsAa17BGzFaKsnGcgfF/2WaP9WCBKcZnnxj4w0MeU5ekgKCxy+qZoJ7ue9+gpj5NXrLbFsj/EiBTH/8xaTGcMzBxTESOjWylyOYRdlLs9DNb/h+xc6bby6ykm3cOZ278CNpCjALy15z6sUUy3Ei8DuVaOVtBnwRxs0yA/P+9dxtOpOMU4pt4+002Fk6ivAN5QKFrsCp6GYfszqCTpiTB/Zs/6l3ef1fVgCvJVTR5Ceu8clHCt/IIdh2jJmAFL0l1mCdrM9OiJRLY5npKddjOLbbZ7whTo9qCxOi21XWzrc+wM17G2h+t6gJHvx6sP4TmWOYOZL5l1ZxbomuO66jWbElmx3NxGrchNQuHlkkw/THaYlmwmPL7PHQBbNr6dv6hSZ4YfReGRXfPiiYrn5zZkXAAZbTxtuqqhVaXiD7dUSk2QQ0W+xMgwICH+pmnxPoO589wQ9hE3oPG5mfIpsAlLzkiK4I5w2LoGYBft9UfREr5MUxJ/jW1qqgpX+QcAyTLRm2cN5Hfw== [email protected]"