forked from LibreSchool/server-config
Previsione di uno script di lancio. Modificato readme in maniera consistente. Mossa una utility in una cartella a parte.
This commit is contained in:
parent
791374c412
commit
0db73ffd08
@ -8,10 +8,15 @@ Qui sono presenti i files di configurazione per il server [NethServer](http://ww
|
|||||||
Per configurarlo:
|
Per configurarlo:
|
||||||
|
|
||||||
$ vim hosts
|
$ vim hosts
|
||||||
|
$ vim domain.yml
|
||||||
$ ansible-playbook init.yml --ask-pass \
|
$ ansible-playbook init.yml --ask-pass \
|
||||||
-e "admin_sshkey=/path/to/id_rsa.pub"
|
-e "admin_sshkey=/path/to/id_rsa.pub"
|
||||||
$ ansible-playbook setup.yml
|
$ ansible-playbook setup.yml
|
||||||
|
|
||||||
|
Oppure, più semplicemente:
|
||||||
|
|
||||||
|
$ bash run.sh
|
||||||
|
|
||||||
### Gestione con [`vagrant`](http://www.vagrantup.com) ###
|
### Gestione con [`vagrant`](http://www.vagrantup.com) ###
|
||||||
|
|
||||||
Per utilizzare `vagrant` e il `Vagrantfile` nel
|
Per utilizzare `vagrant` e il `Vagrantfile` nel
|
||||||
@ -21,13 +26,11 @@ lanciare i seguenti comandi:
|
|||||||
$ cd /path/to/ps-srvmgt
|
$ cd /path/to/ps-srvmgt
|
||||||
$ vagrant up
|
$ vagrant up
|
||||||
|
|
||||||
Aggiornamento 14/06/2015: vengono provisionate via Vagrant e Ansible alcune
|
Aggiornamento 14/06/2015: vengono provisionate via Ansible alcune
|
||||||
configurazioni dal Vagrantfile.
|
configurazioni dal Vagrantfile.
|
||||||
|
|
||||||
### To Do List ###
|
### To Do List ###
|
||||||
|
|
||||||
* Implementare PXE + Kickstart (manca test)
|
|
||||||
* Implementare configurazioni per repo Ubuntu (test)
|
* Implementare configurazioni per repo Ubuntu (test)
|
||||||
* Implementare configurazioni generiche dominio server
|
|
||||||
* Implementare aggiornamento automatico del sistema via `ansible`
|
* Implementare aggiornamento automatico del sistema via `ansible`
|
||||||
* Implementare backup
|
* Implementare backup
|
||||||
|
14
run.sh
Executable file
14
run.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Please review ansible hosts settings."
|
||||||
|
sleep 2
|
||||||
|
vim hosts
|
||||||
|
|
||||||
|
echo "Please review settings for domain/server settings."
|
||||||
|
sleep 2
|
||||||
|
vim domain.yml
|
||||||
|
|
||||||
|
# Configure the server machine using Ansible tasks.
|
||||||
|
ansible-playbook init.yml --ask-pass
|
||||||
|
ansible-playbook setup.yml
|
||||||
|
ansible-playbook sr-pxe.yml
|
Loading…
x
Reference in New Issue
Block a user