From d35ebcc276376a09f8e5bfe178b43842d4a54305 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 5 Dec 2018 23:01:48 +0100 Subject: [PATCH] added new ctf host --- ansible/group_vars/all/users.yml | 6 ++++++ ansible/host_playbooks/ctf.yml | 5 +++++ ansible/host_vars/ctf/main.yml | 36 ++++++++++++++++++++++++++++++++++++ ansible/hosts.ini | 2 +- 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 ansible/host_playbooks/ctf.yml diff --git a/ansible/group_vars/all/users.yml b/ansible/group_vars/all/users.yml index f6ede15..1521411 100644 --- a/ansible/group_vars/all/users.yml +++ b/ansible/group_vars/all/users.yml @@ -30,3 +30,9 @@ users: gpg: 0xE3468B9CE81EB4F91486 ssh: - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDsT6W8Yz9iQ9FXuyrBmLC3o1j26ugzKfJDjvYAOehtjbYj+JjNrLoob1Evg5wWbDI9w+GiaBRKpfMw/66rMty8UXnYvpr28AsMdsxmvCp7k6eW55WcWNC26Nw3cWJo8MBxDaWDfjPdVzhKU7iFTCEVz/mUqUrbyg+Y6R1psqY84zXwelyPNPUVNBSaWMORmWR397v8UaEx2jsO4Nxaw1w4RnJSyq5feXResLigh6yelCNDWu3ISQrmZtjKRCPWlVzIDAT5m0UZzHjfGtixei8QNo3Y1sNUyFmrR0jcy6Uvkcl2ryGsUApCqaIGHz9zNvVJo7lGFH7yDVnaFx2XHnbDrZqhcvtvKK9kJkXwpTwASnSg7CB4VUFxdfzOlwnGUqMrePYqN5CaFKLNNQ5vIharK+iikvgkibrCSH69Tdb26IvBpXojuoIHDpBNcAAy5d66P+EoUXv7xWVmWiDLyJd66GvNzAzwel16KrjlgYZoKaj5rAB04qafSi6gRKJMuxQTBGGBc45JojDDZUEQht0/0N9GEWZDAO2z3eyB0lsODNvJBh9jAvwEOMcNnm59GYnYrk4bKLS1GEvq6a0aQvAxJDj0OxENNsx3SloYnP+ufHUZvWI9Ccu+9PMcoNqsFomiFg5nraL7NVaaOegVVYVGr4xZm9Yl/fnfnkH/lccsPw== xro@realraum.at + + verr: + email: stefan@2904.cc + gpg: 0xEF55302141210EA0 + ssh: + - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFKJgOGEyn38spg7FvdEBvy87emQPBJCNJU9rADUmzKo5b3PHX9lBNg/XqG9ToqbqmXLqko67OFGJPd7rrU6qFpXgtDGsF8RMU6A1SuTubGVTlh0TblXYfkW3sz+oVUqBIBaH/6fUMPbMQtVqs1gM4KbG5B0WUMst7VVN++zw2AE3pKX8vFjKsUyYW1i55dlPg2AhgOi3VMBkzrUfQj2wcMCChoaTwLZMSirBT0J5NWn63P+KllWfgVZIX11/pf6XK8r/HpU7os+u36b7uwWi5uJmQnuFVQOLFvkkQhQKzO0gQoyasDHkbMdV6UOBpMsg6wUmd2JOvsiW+tupnFJgt stefan@thinkbook diff --git a/ansible/host_playbooks/ctf.yml b/ansible/host_playbooks/ctf.yml new file mode 100644 index 0000000..32d7dea --- /dev/null +++ b/ansible/host_playbooks/ctf.yml @@ -0,0 +1,5 @@ +--- +- name: Basic Setup for ctf + hosts: ctf + roles: + - role: base diff --git a/ansible/host_vars/ctf/main.yml b/ansible/host_vars/ctf/main.yml index 5191ee0..8b4c911 100644 --- a/ansible/host_vars/ctf/main.yml +++ b/ansible/host_vars/ctf/main.yml @@ -1,4 +1,40 @@ --- +ssh_users_root: + - verr + - equinox + - nicoo + sshd_allowusers_host: - f0rki - verr + + +vm_host: alfred + +install: + host: "{{ vm_host }}" + mem: 2048 + numcpu: 2 + disks: + primary: vda + virtio: + vda: + vg: "{{ vm_host }}" + lv: "{{ inventory_hostname }}" + size: 20g + interfaces: + - bridge: br-lan ## this will be br-pub once the network renumbering is done + name: pub0 + autostart: True + +network: + nameservers: "{{ hostvars[vm_host].vm_host.network.nameservers }}" + domain: realraum.at + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: + ## TODO: this should come from {{ net.pub.* }} once the network renumbering is done + interface: pub0 + ip: 89.106.211.47 + mask: 255.255.255.224 + gateway: 89.106.211.33 diff --git a/ansible/hosts.ini b/ansible/hosts.ini index 26bb727..b428eab 100644 --- a/ansible/hosts.ini +++ b/ansible/hosts.ini @@ -45,7 +45,7 @@ virtualservers-alfred [virtualservers-alfred] athsdisc calendar -ctf +ctf localconfig_ssh_config_user=root ansible_host=89.106.211.47 entrance galley hacksch -- 1.7.10.4