2015-07-22 01:40:01 +02:00
|
|
|
# Ansible playbooks for a SAMBA domain controller with NethServer #
|
2015-04-30 02:44:50 +02:00
|
|
|
|
2015-07-21 21:28:15 +02:00
|
|
|
## Progetto Scuola [<img src="https://avatars1.githubusercontent.com/u/12886037?v=3&s=200" width="25" height="25" alt="BgLUG Logo" /> BgLUG][bglug] - Scenary 1 ##
|
2015-04-30 02:44:50 +02:00
|
|
|
|
2015-07-21 21:25:18 +02:00
|
|
|
Starting from a [NethServer][] configured machine (please check out the
|
2015-07-22 01:40:01 +02:00
|
|
|
[wiki][] for the installation process from [CentOS][] and other requirements),
|
|
|
|
these playbooks provision a [SAMBA][] 3.0 domain controller which can be used
|
|
|
|
with a network of Ubuntu clients.
|
2015-04-14 02:17:01 +02:00
|
|
|
|
2015-07-21 21:25:18 +02:00
|
|
|
Using the default settings, it will also provide an environment to boot from
|
|
|
|
network, install and configure the clients, using a local copy of Ubuntu's
|
|
|
|
repositories.
|
2015-07-21 20:50:27 +02:00
|
|
|
|
|
|
|
### Quick start ###
|
|
|
|
|
2015-07-22 01:40:01 +02:00
|
|
|
You may use these playbooks as follows:
|
2015-04-14 02:17:01 +02:00
|
|
|
|
|
|
|
$ vim hosts
|
2015-06-22 22:08:04 +02:00
|
|
|
$ vim domain.yml
|
2015-07-22 01:40:01 +02:00
|
|
|
$ ansible-playbook init.yml --ask-pass -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-07-21 20:50:27 +02:00
|
|
|
Or, more simply:
|
2015-06-22 22:08:04 +02:00
|
|
|
|
|
|
|
$ bash run.sh
|
|
|
|
|
2015-07-22 01:40:01 +02:00
|
|
|
### Use [Vagrant][] for testing purposes ###
|
2015-07-21 20:50:27 +02:00
|
|
|
|
|
|
|
You may use the included `Vagrantfile` to do any tests before deploying the
|
2015-07-22 01:40:01 +02:00
|
|
|
machine. `vagrant` and `ansible` must be installed on the host machine, then
|
|
|
|
you may run the following commands:
|
2015-04-17 13:26:45 +02:00
|
|
|
|
2015-07-21 20:50:27 +02:00
|
|
|
$ cd /path/to/server-config
|
2015-04-21 10:00:21 +02:00
|
|
|
$ vagrant up
|
2015-04-30 02:44:50 +02:00
|
|
|
|
2015-07-21 21:25:18 +02:00
|
|
|
Update 14/06/2015: some basic configurations to the Vagrant box are now
|
|
|
|
provisioned via Ansible, thus making it a dependency.
|
2015-06-14 02:58:47 +02:00
|
|
|
|
2015-07-21 20:50:27 +02:00
|
|
|
Update 25/06/2015: the Vagrant box now uses a *host-only* interface instead of
|
2015-07-22 01:40:01 +02:00
|
|
|
a *bridged* one. If you built a Vagrant box before this date, please destroy
|
|
|
|
it, recreate a new one and reprovision it with the provided playbooks.
|
2015-07-07 22:12:35 +02:00
|
|
|
|
2015-04-30 02:44:50 +02:00
|
|
|
### To Do List ###
|
|
|
|
|
2015-07-21 20:50:27 +02:00
|
|
|
* Implement backup
|
|
|
|
* Detail physical installation procedure for the server machine within the
|
|
|
|
Wiki.
|
2015-07-21 21:25:18 +02:00
|
|
|
|
|
|
|
[bglug]: http://bglug.it/ "BgLUG Homepage"
|
2015-07-21 21:28:15 +02:00
|
|
|
[wiki]: https://github.com/bglug-it/server-config/wiki "server-config wiki"
|
2015-07-22 01:40:01 +02:00
|
|
|
[ansible]: http://www.ansible.com
|
|
|
|
[nethserver]: http://www.nethserver.org
|
|
|
|
[vagrant]: http://www.vagrantup.com
|
|
|
|
[samba]: https://www.samba.org
|
|
|
|
[centos]: https://www.centos.org
|