Inventory clean up

This commit is contained in:
Alexandre Iooss 2018-12-23 16:09:12 +01:00
parent 32aa3121ec
commit 42fd4e7c2e
4 changed files with 26 additions and 22 deletions

View file

@ -14,6 +14,12 @@ ansible-playbook --ask-vault-pass -K -i hosts base.yml
## FAQ
### Mettre sa clé SSH sur une machine
```
ssh-copy-id -i ~/.ssh/id_rsa_aurore.pub virtu.fede-aurore.net
```
### Automatiquement ajouter fingerprint ECDSA (dangereux !)
Il faut changer la variable d'environnement suivante :

36
hosts
View file

@ -1,34 +1,32 @@
# Aurore servers inventory
[horus-pve]
#virtu.fede-aurore.net
virtu.fede-aurore.net
[horus-proxy]
proxy-web ansible_host=10.128.0.254
[horus-container]
horus-services-bdd ansible_host=10.128.0.31
horus-wiki ansible_host=10.128.0.51
horus-phabricator ansible_host=10.128.0.50
horus-proxy-web ansible_host=10.128.0.254
[horus-services-bdd]
services-bdd ansible_host=10.128.0.31
[horus-wiki]
wiki ansible_host=10.128.0.51
[horus-phabricator]
phabricator ansible_host=10.128.0.50
[horus-vm]
re2o-server ansible_host=10.128.0.10
re2o-ldap ansible_host=10.128.0.11
re2o-db ansible_host=10.128.0.12
# everything in horus (ovh)
[horus:children]
horus-pve
horus-proxy
horus-services-bdd
horus-wiki
horus-phabricator
horus-container
horus-vm
# every LXC container
[container:children]
horus-proxy
horus-services-bdd
horus-wiki
horus-phabricator
horus-container
# every virtual machine
[vm:children]
horus-vm
# every PVE
[pve:children]

View file

@ -1,6 +1,6 @@
---
# Plug only containers on LDAP
- hosts: container
# Plug LDAP on all servers
- hosts: all
roles:
- ldap-client

@ -1 +1 @@
Subproject commit b07cbc6945aa9d60ead0cff0d81ed853ba6314cf
Subproject commit e788d0774624e9bc5120f2a3672f2f88b5be7e9f