Aggiunta di task per la condivisione delle informazioni di dominio. Allineato un solo file. Allineati task. Sistemato vagrant, aggiunto la risorsa mac2hostname.
This commit is contained in:
parent
e8263b8999
commit
791374c412
5
Vagrantfile
vendored
5
Vagrantfile
vendored
@ -27,6 +27,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||||||
# accessing "localhost:8080" will access port 80 on the guest machine.
|
# 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: 80, host: 8080
|
||||||
config.vm.network "forwarded_port", guest: 980, host: 9800
|
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
|
# Create a private network, which allows host-only access to the machine
|
||||||
# using a specific IP.
|
# using a specific IP.
|
||||||
@ -55,9 +56,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||||||
# config.vm.provider "virtualbox" do |vb|
|
# config.vm.provider "virtualbox" do |vb|
|
||||||
# # Don't boot with headless mode
|
# # Don't boot with headless mode
|
||||||
# vb.gui = true
|
# vb.gui = true
|
||||||
#
|
#
|
||||||
# # Use VBoxManage to customize the VM. For example to change memory:
|
# # Use VBoxManage to customize the VM. For example to change memory:
|
||||||
# vb.customize ["modifyvm", :id, "--memory", "1024"]
|
# #vb.customize ["modifyvm", :id, "--memory", "1024"]
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# View the documentation for the provider you're using for more
|
# View the documentation for the provider you're using for more
|
||||||
|
11
domain.yml
11
domain.yml
@ -1,13 +1,14 @@
|
|||||||
---
|
---
|
||||||
# Configurazione dominio LAB1
|
# Configurazione dominio
|
||||||
servershort: pdc
|
ntpserver: pdc.mastri.local
|
||||||
serverfqdn: pdc.mastri.local
|
server: pdc
|
||||||
domainlong: mastri.local
|
|
||||||
domainshort: MASTRI
|
|
||||||
serverip: 192.168.1.1
|
serverip: 192.168.1.1
|
||||||
servernetmask: 255.255.255.0
|
servernetmask: 255.255.255.0
|
||||||
servernet: 192.168.1.0
|
servernet: 192.168.1.0
|
||||||
servergw: 192.168.1.1
|
servergw: 192.168.1.1
|
||||||
|
serverfqdn: pdc.mastri.local
|
||||||
|
domainshort: MASTRI
|
||||||
|
domainfull: mastri.local
|
||||||
dhcprange_start: 192.168.1.10
|
dhcprange_start: 192.168.1.10
|
||||||
dhcprange_end: 192.168.1.50
|
dhcprange_end: 192.168.1.50
|
||||||
extdnsserver1: 208.67.222.222
|
extdnsserver1: 208.67.222.222
|
||||||
|
5
roles/init/tasks/domainspec.yml
Normal file
5
roles/init/tasks/domainspec.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
# Copia le configurazioni per il dominio in locale sul server.
|
||||||
|
- name: Copia le configurazioni di dominio.
|
||||||
|
copy: src=../../../domain.yml dest=/etc/domain.yml
|
||||||
|
sudo: yes
|
@ -4,3 +4,5 @@
|
|||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- include: mgmtuser.yml
|
- include: mgmtuser.yml
|
||||||
|
|
||||||
|
- include: domainspec.yml
|
||||||
|
@ -25,11 +25,11 @@
|
|||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
- name: Configurazione nome server
|
- name: Configurazione nome server
|
||||||
shell: /sbin/e-smith/db configuration set SystemName {{ servershort }}
|
shell: /sbin/e-smith/db configuration set SystemName {{ domainsrvshort }}
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
- name: Configurazione nome dominio
|
- name: Configurazione nome dominio
|
||||||
shell: /sbin/e-smith/db configuration set DomainName {{ domainlong }}
|
shell: /sbin/e-smith/db configuration set DomainName {{ domainfull }}
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
|
||||||
- name: Attivazione cambiamenti hostname
|
- name: Attivazione cambiamenti hostname
|
||||||
|
@ -4,6 +4,14 @@
|
|||||||
yum: name=git state=present
|
yum: name=git state=present
|
||||||
tags: git
|
tags: git
|
||||||
|
|
||||||
|
- name: Verifica installazione ansible
|
||||||
|
yum: name=ansible state=present
|
||||||
|
tags: ansible
|
||||||
|
|
||||||
|
- name: Installazione python-argparse
|
||||||
|
yum: name=python-argparse state=present
|
||||||
|
tags: ansible
|
||||||
|
|
||||||
- name: Download della gestione client con ansible
|
- name: Download della gestione client con ansible
|
||||||
git:
|
git:
|
||||||
repo: "https://github.com/bglug-it/ps-clientmgmt.git"
|
repo: "https://github.com/bglug-it/ps-clientmgmt.git"
|
||||||
@ -11,3 +19,9 @@
|
|||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
- ansible
|
- ansible
|
||||||
|
|
||||||
|
- name: Attivo sotto modulo ansdyninv
|
||||||
|
shell: cd /home/amgmt/clientmgmt/ansdyninv; git submodule init && git submodule update
|
||||||
|
tags:
|
||||||
|
- git
|
||||||
|
- ansible
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
- include: ansible.yml
|
- include: ansible.yml
|
||||||
when: ansible_distribution == "CentOS"
|
when: ansible_distribution == "CentOS"
|
||||||
|
sudo: yes
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
- ansible
|
- ansible
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
yum: pkg="{{ item }}" state=present
|
yum: pkg="{{ item }}" state=present
|
||||||
with_items:
|
with_items:
|
||||||
- '@Development tools'
|
- '@Development tools'
|
||||||
|
- libselinux-python
|
||||||
- rpmdevtools
|
- rpmdevtools
|
||||||
- yum-utils
|
- yum-utils
|
||||||
- rpmlint
|
- rpmlint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user