2015-04-30 02:44:50 +02:00
|
|
|
# Progetto Scuola @ [BgLUG](http://bglug.it) - Scenario implementativo 1 #
|
|
|
|
## PDC con SAMBA e Nethserver ##
|
|
|
|
|
|
|
|
|
|
|
|
### Utilizzo delle configurazioni con [`ansible`](http://www.ansible.com) ###
|
2015-04-14 02:17:01 +02:00
|
|
|
|
2015-04-20 02:49:11 +02:00
|
|
|
Qui sono presenti i files di configurazione per il server [NethServer](http://www.nethserver.org/).
|
2015-04-14 02:17:01 +02:00
|
|
|
Per configurarlo:
|
|
|
|
|
|
|
|
$ vim hosts
|
2015-06-22 22:08:04 +02:00
|
|
|
$ vim domain.yml
|
2015-06-14 02:58:47 +02:00
|
|
|
$ ansible-playbook init.yml --ask-pass \
|
2015-04-21 10:51:26 +02:00
|
|
|
-e "admin_sshkey=/path/to/id_rsa.pub"
|
2015-04-16 12:52:05 +02:00
|
|
|
$ ansible-playbook setup.yml
|
2015-04-17 13:26:45 +02:00
|
|
|
|
2015-06-22 22:08:04 +02:00
|
|
|
Oppure, più semplicemente:
|
|
|
|
|
|
|
|
$ bash run.sh
|
|
|
|
|
2015-04-30 02:44:50 +02:00
|
|
|
### Gestione con [`vagrant`](http://www.vagrantup.com) ###
|
2015-04-17 13:26:45 +02:00
|
|
|
|
2015-04-30 02:44:50 +02:00
|
|
|
Per utilizzare `vagrant` e il `Vagrantfile` nel
|
2015-04-21 10:00:21 +02:00
|
|
|
repo, è necessario avere `vagrant` installato sulla propria macchina e
|
|
|
|
lanciare i seguenti comandi:
|
2015-04-17 13:26:45 +02:00
|
|
|
|
2015-04-21 10:00:21 +02:00
|
|
|
$ cd /path/to/ps-srvmgt
|
|
|
|
$ vagrant up
|
2015-04-30 02:44:50 +02:00
|
|
|
|
2015-06-22 22:08:04 +02:00
|
|
|
Aggiornamento 14/06/2015: vengono provisionate via Ansible alcune
|
2015-06-14 02:58:47 +02:00
|
|
|
configurazioni dal Vagrantfile.
|
|
|
|
|
2015-07-07 22:12:35 +02:00
|
|
|
Aggiornamento 25/06/2015: la macchina Vagrant ora si appoggia ad una scheda
|
|
|
|
"interna" *host-only* anziché una *bridged*.
|
|
|
|
|
2015-04-30 02:44:50 +02:00
|
|
|
### To Do List ###
|
|
|
|
|
2015-06-14 02:58:47 +02:00
|
|
|
* Implementare configurazioni per repo Ubuntu (test)
|
2015-04-30 02:44:50 +02:00
|
|
|
* Implementare aggiornamento automatico del sistema via `ansible`
|
2015-06-12 23:54:15 +02:00
|
|
|
* Implementare backup
|