-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnserver-deploy.yml
87 lines (85 loc) · 1.95 KB
/
nserver-deploy.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
# Create dns and ntp server for PoCs and demos
---
- hosts: nserver
gather_facts: no
remote_user: centos
become: true
become_method: sudo
vars:
# Ansible vars for DNS service
ansible_hostname: 10.10.10.2
named_group: named
named_owner: named
bind_acls:
- name: acl1
match_list:
- 10.10.10.0/24
- name: acl2
match_list:
- 10.20.10.0/24
bind_listen_ipv4:
- any
bind_allow_query:
- 10.10.10.0/24
- 10.20.10.0/24
- 127.0.0.0/8
bind_recursion: true
bind_forwarders:
- 8.8.8.8
- 4.4.4.4
bind_zone_name: sdn40r61.lab
bind_zone_networks:
- '10.10.10'
bind_zone_master_server_ip: 10.10.10.2
bind_zone_name_servers:
- ns01
bind_zone_hosts:
- name: ns01
ip: 10.10.10.2
aliases:
- ntp
- dns
- name: '@'
ip: 10.10.10.2
- name: master
ip: 10.10.10.101
- name: minion01
ip: 10.10.10.102
- name: minion02
ip: 10.10.10.103
- name: vsd1
ip: 10.10.10.10
- name: vsc1
ip: 10.10.10.11
- name: vsc1-control
ip: 10.10.20.11
- name: vsc2
ip: 10.10.10.12
- name: vsc2-control
ip: 10.10.20.12
bind_zone_services:
- name: _xmpp-client._tcp
weight: 10
port: 5222
target: vsd1.sdn40r61.lab
# ntp vars
ntp_restrict_net: 10.0.0.0
ntp_restrict_mask: 255.0.0.0
# dhcp settings
dhcp_subnets:
- { subnet: 10.10.10.0 ,
netmask: 255.255.255.0 ,
range_min: 10.10.10.150 ,
range_max: 10.10.10.250 ,
domain_name: sdn40r61.lab,
domain_name_server: 10.10.10.2 ,
router: 10.10.10.1 ,
broadcast_address: 10.10.10.255 ,
default_lease_time: 600000 ,
max_lease_time: 7200000
}
# defined roles
roles:
- bind-install
- ntp-install
- dhcp-install