diff --git a/README.md b/README.md new file mode 100644 index 0000000..5428566 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Ansible configuration management for FET IT + +# See [Service documentation](./doc) + +# Install ansible +```shell +./install +``` +Put [ssh_config](./ssh.cfg) in your `~/.ssh/config` or specify local one each time +Put `./roles/common/files/known_hosts` in your `~/.ssh/known_hosts` + +# Run ansible +```shell +./ansible-playbook -i hosts/production site.yml --ssh-extra-args "-F ./ssh.cfg" +``` + +# Run ansible for specific server and role +```shell +./ansible-playbook -i hosts/production site.yml --ssh-extra-args "-F ./ssh.cfg" --limit sputnik --tags openssh +``` diff --git a/roles/common b/roles/common index 5e916ca..a8c75a1 160000 --- a/roles/common +++ b/roles/common @@ -1 +1 @@ -Subproject commit 5e916ca510e01a4a13424dc4bf69a1f4dc043649 +Subproject commit a8c75a12f5089acb3cbb6ff9557fe3ea6460f81c diff --git a/ssh.cfg b/ssh.cfg new file mode 100644 index 0000000..4a86806 --- /dev/null +++ b/ssh.cfg @@ -0,0 +1,121 @@ +# FET + +Host sputnik + Hostname sputnik.htu.tuwien.ac.at + +Host kistl + ProxyJump sputnik + +Host wlan + User root + ProxyJump sputnik + +Host atlas + ProxyJump sputnik + +Host ariane + Hostname ariane.htu.tuwien.ac.at + User root + ProxyJump sputnik + +## virtual on ariane +Host laika + User root + ProxyJump ariane + +Host betam + User root + ProxyJump ariane + +Host proteus + User root + ProxyJump ariane + +Host zyklon + User root + ProxyJump ariane + +Host sojus + User root + ProxyJump sputnik + +Host progress + User root + Proxyjump sputnik + +Host energija + Hostname energija.htu.tuwien.ac.at + ProxyJump sputnik + +## virtual on energija +Host nauka + User root + ProxyJump sputnik + +Host buran + Hostname buran.htu.tuwien.ac.at + User root + ProxyJump sputnik + +Host backup + ProxyJump sputnik + +Host gagarin + ProxyJump sputnik + +Host horde5 + ProxyJump sputnik + +Host triton + User root + ProxyJump sputnik + DynamicForward 127.0.0.1:4444 + +Host mogok + ProxyJump sputnik + +Host maria-storage + User root + ProxyJump sputnik + +Host miruk + Port 222 + User root + ProxyJump triton + +Host cloud + ProxyJump sputnik + +Host fetruby + ProxyJump sputnik + +Host fetwiki # triton-2 + Hostname 192.168.95.12 + ProxyJump sputnik + +Host triton-amp + ProxyJump sputnik + +Host fet + ProxyJump miruk + +Host baroness + User root + Proxyjump sputnik + +## Workstations +Host potemkin + ProxyJump sputnik + +Host proton + ProxyJump sputnik + +Host suchoi + ProxyJump sputnik + +Host lunik + ProxyJump sputnik + +# FET Ende + +EscapeChar ~