forked from LibreSchool/server-config
Using strange addressing to minimize compatibility problems on virtual installations.
This commit is contained in:
parent
bc0f279ffa
commit
1ec657956a
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -30,7 +30,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||||||
# Create a private network, which allows host-only access to the machine
|
# Create a private network, which allows host-only access to the machine
|
||||||
# using a specific IP.
|
# using a specific IP.
|
||||||
# config.vm.network "private_network", ip: "192.168.33.10"
|
# 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.
|
# Create a public network, which generally matched to bridged network.
|
||||||
# Bridged networks make the machine appear as another physical device on
|
# Bridged networks make the machine appear as another physical device on
|
||||||
|
16
domain.yml
16
domain.yml
@ -2,15 +2,15 @@
|
|||||||
# Configurazione dominio
|
# Configurazione dominio
|
||||||
ntpserver: pdc.mastri.edu
|
ntpserver: pdc.mastri.edu
|
||||||
server: pdc
|
server: pdc
|
||||||
serverip: 192.168.1.1
|
serverip: 172.16.254.1
|
||||||
servernetmask: 255.255.255.0
|
servernetmask: 255.255.255.0
|
||||||
servernet: 192.168.1.0
|
servernet: 172.16.254.0
|
||||||
servergw: 192.168.1.1
|
servergw: 172.16.254.1
|
||||||
serverfqdn: pdc.mastri.edu
|
serverfqdn: pdc.mastri.edu
|
||||||
domainshort: MASTRI
|
domainshort: MASTRI
|
||||||
domainfull: mastri.edu
|
domainfull: mastri.edu
|
||||||
dhcprange_start: 192.168.1.10
|
dhcprange_start: 172.16.254.10
|
||||||
dhcprange_end: 192.168.1.50
|
dhcprange_end: 172.16.254.50
|
||||||
extdnsserver1: 208.67.222.222
|
extdnsserver1: 208.67.222.222
|
||||||
extdnsserver2: 208.67.220.220
|
extdnsserver2: 208.67.220.220
|
||||||
org_email: info@bglug.it
|
org_email: info@bglug.it
|
||||||
@ -20,7 +20,7 @@ org_department: "Laboratorio 1"
|
|||||||
org_city: Caravaggio
|
org_city: Caravaggio
|
||||||
org_phone: "+39 0363 50598"
|
org_phone: "+39 0363 50598"
|
||||||
org_street: "Via Zenale e Butinone, 20"
|
org_street: "Via Zenale e Butinone, 20"
|
||||||
mirror_mode: nfs
|
mirror_mode: remote
|
||||||
mirror_nfs_share: 192.168.255.1:/var/spool/apt-mirror/mirror
|
#mirror_nfs_share: 192.168.255.1:/var/spool/apt-mirror/mirror
|
||||||
#remote_mirror: ubuntu.fastbull.org
|
remote_mirror: it.archive.ubuntu.com
|
||||||
client_gitbranch: master
|
client_gitbranch: master
|
||||||
|
2
hosts
2
hosts
@ -2,4 +2,4 @@
|
|||||||
host_key_checking=false
|
host_key_checking=false
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
192.168.1.1 ansible_ssh_user=amgmt
|
172.16.254.1 ansible_ssh_user=amgmt
|
||||||
|
@ -10,6 +10,13 @@
|
|||||||
- nethserver-samba
|
- nethserver-samba
|
||||||
- nethserver-samba-audit
|
- 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
|
# SAMBA
|
||||||
|
|
||||||
- name: Checking SMB configuration
|
- name: Checking SMB configuration
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: Creo interfaccia interna in NethServer
|
- 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
|
become: yes
|
||||||
|
|
||||||
- name: Pulizia vecchia interfaccia interna
|
- name: Pulizia vecchia interfaccia interna
|
||||||
|
Loading…
x
Reference in New Issue
Block a user