From 2827596dc842c54c04d30a171e7a93960f19af7d Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 6 Sep 2015 20:35:27 +0200 Subject: [PATCH] Removed port forwarding from Vagrant. Host-only NIC has to be configured via provisioning, to cope with interface name change. --- Vagrantfile | 4 +--- roles/nethcfg/tasks/reconfig_srv.yml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 881fd24..f35bb0c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -26,13 +26,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. # config.vm.network "forwarded_port", guest: 80, host: 8080 - config.vm.network "forwarded_port", guest: 980, host: 9800 - config.vm.network "forwarded_port", guest: 3000, host: 3000 # 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" + config.vm.network "private_network", ip: "192.168.1.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 diff --git a/roles/nethcfg/tasks/reconfig_srv.yml b/roles/nethcfg/tasks/reconfig_srv.yml index 42c47a2..f5bf43e 100644 --- a/roles/nethcfg/tasks/reconfig_srv.yml +++ b/roles/nethcfg/tasks/reconfig_srv.yml @@ -36,7 +36,7 @@ ignore_errors: true - name: Configurazione forza password - shell: /sbin/e-smith/db configuration setprop passwordstrength PassExpires no Users none + shell: /sbin/e-smith/db configuration setprop passwordstrength PassExpires no Users none Admin strong MaxPassAge 180 MinPassAge 0 PassExpires no PassWarning 7 sudo: yes when: chk_passstr|changed