Changing local LAN IP address for development.

This commit is contained in:
Emiliano Vavassori 2018-11-10 15:25:39 +01:00
parent 3f421afbbe
commit 44f2797270
4 changed files with 8 additions and 8 deletions

2
Vagrantfile vendored
View File

@ -35,7 +35,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "private_network", ip: "172.16.254.1", auto_config: false
config.vm.network "private_network", ip: "172.16.253.1", auto_config: false
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on

View File

@ -2,15 +2,15 @@
# Configurazione dominio
ntpserver: pdc.topolin.ia
server: pdc
serverip: 172.16.254.1
serverip: 172.16.253.1
servernetmask: 255.255.255.0
servernet: 172.16.254.0
servergw: 172.16.254.1
servernet: 172.16.253.0
servergw: 172.16.253.1
serverfqdn: pdc.topolin.ia
domainshort: TOPOLIN
domainfull: topolin.ia
dhcprange_start: 172.16.254.10
dhcprange_end: 172.16.254.50
dhcprange_start: 172.16.253.10
dhcprange_end: 172.16.253.50
extdnsserver1: 208.67.222.222
extdnsserver2: 208.67.220.220
org_email: info@bglug.it

2
hosts
View File

@ -2,4 +2,4 @@
host_key_checking=false
[server]
172.16.254.1 ansible_ssh_user=amgmt
172.16.253.1 ansible_ssh_user=amgmt

View File

@ -27,7 +27,7 @@
become: yes
- name: Creo interfaccia interna in NethServer
shell: /sbin/e-smith/db networks set {{ intnic }} ethernet bootproto none device {{ intnic }} hwaddr {{ ansible_eth1.macaddress }} ipaddr 172.16.254.1 netmask 255.255.255.0 onboot yes role green
shell: /sbin/e-smith/db networks set {{ intnic }} ethernet bootproto none device {{ intnic }} hwaddr {{ ansible_eth1.macaddress }} ipaddr 172.16.253.1 netmask 255.255.255.0 onboot yes role green
become: yes
- name: Trigger interfaces configuration