Using strange addressing to minimize compatibility problems on virtual installations.

This commit is contained in:
Emiliano Vavassori 2016-06-03 11:29:49 +02:00
parent bc0f279ffa
commit 1ec657956a
5 changed files with 18 additions and 11 deletions

2
Vagrantfile vendored
View File

@ -30,7 +30,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: "192.168.1.1", auto_config: false
config.vm.network "private_network", ip: "172.16.254.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.mastri.edu
server: pdc
serverip: 192.168.1.1
serverip: 172.16.254.1
servernetmask: 255.255.255.0
servernet: 192.168.1.0
servergw: 192.168.1.1
servernet: 172.16.254.0
servergw: 172.16.254.1
serverfqdn: pdc.mastri.edu
domainshort: MASTRI
domainfull: mastri.edu
dhcprange_start: 192.168.1.10
dhcprange_end: 192.168.1.50
dhcprange_start: 172.16.254.10
dhcprange_end: 172.16.254.50
extdnsserver1: 208.67.222.222
extdnsserver2: 208.67.220.220
org_email: info@bglug.it
@ -20,7 +20,7 @@ org_department: "Laboratorio 1"
org_city: Caravaggio
org_phone: "+39 0363 50598"
org_street: "Via Zenale e Butinone, 20"
mirror_mode: nfs
mirror_nfs_share: 192.168.255.1:/var/spool/apt-mirror/mirror
#remote_mirror: ubuntu.fastbull.org
mirror_mode: remote
#mirror_nfs_share: 192.168.255.1:/var/spool/apt-mirror/mirror
remote_mirror: it.archive.ubuntu.com
client_gitbranch: master

2
hosts
View File

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

View File

@ -10,6 +10,13 @@
- nethserver-samba
- nethserver-samba-audit
# Mitigating bug for upgrade on Badlocks SAMBA bug
- name: Mitigating bad upgrade for Badlocks
shell: yum -y downgrade samba* tdb-tools libtdb libtevent libtalloc pytalloc
tags:
- badlocks
- centos_bug
# SAMBA
- name: Checking SMB configuration

View File

@ -23,7 +23,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 192.168.1.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.254.1 netmask 255.255.255.0 onboot yes role green
become: yes
- name: Pulizia vecchia interfaccia interna