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 ## 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 !) ### Automatiquement ajouter fingerprint ECDSA (dangereux !)
Il faut changer la variable d'environnement suivante : Il faut changer la variable d'environnement suivante :

36
hosts
View file

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

View file

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

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