Add the config for the nat_dhcp jail.
This commit is contained in:
parent
26354d1a86
commit
aa6f63c141
@ -0,0 +1 @@
|
||||
os_flavor: "freebsd"
|
12
ansible/roles/jail_nat_dhcp/files/dhcpd.conf
Normal file
12
ansible/roles/jail_nat_dhcp/files/dhcpd.conf
Normal file
@ -0,0 +1,12 @@
|
||||
# option definitions common to all supported networks...
|
||||
option domain-name "home.arpa";
|
||||
# option domain-name-servers ns1.home.arpa;
|
||||
option subnet-mask 255.255.255.0;
|
||||
default-lease-time 600;
|
||||
max-lease-time 7200;
|
||||
|
||||
subnet 10.213.177.0 netmask 255.255.255.0 {
|
||||
range 10.213.177.10 10.213.177.250;
|
||||
option broadcast-address 10.213.177.255;
|
||||
option routers 10.213.177.1;
|
||||
}
|
3
ansible/roles/jail_nat_dhcp/files/rc.conf
Normal file
3
ansible/roles/jail_nat_dhcp/files/rc.conf
Normal file
@ -0,0 +1,3 @@
|
||||
ifconfig_host_link3="inet 10.213.177.254 netmask 255.255.255.0"
|
||||
defaultrouter="10.213.177.1"
|
||||
dhcpd_enable="YES"
|
2
ansible/roles/jail_nat_dhcp/files/resolv.conf
Normal file
2
ansible/roles/jail_nat_dhcp/files/resolv.conf
Normal file
@ -0,0 +1,2 @@
|
||||
search home.arpa
|
||||
nameserver 10.213.177.1
|
@ -1,5 +1,20 @@
|
||||
# - name: Install packages
|
||||
# package:
|
||||
# name:
|
||||
# - foo
|
||||
# state: present
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- dhcpd
|
||||
state: present
|
||||
|
||||
- name: Install Configuration
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: rc.conf
|
||||
dest: /etc/rc.conf
|
||||
- src: dhcpd.conf
|
||||
dest: /usr/local/etc/dhcpd.conf
|
||||
- src: resolv.conf
|
||||
dest: /etc/resolv.conf
|
||||
|
Loading…
Reference in New Issue
Block a user