added new ctf host
authorChristian Pointner <equinox@realraum.at>
Wed, 5 Dec 2018 22:01:48 +0000 (23:01 +0100)
committerChristian Pointner <equinox@realraum.at>
Wed, 5 Dec 2018 22:01:48 +0000 (23:01 +0100)
ansible/group_vars/all/users.yml
ansible/host_playbooks/ctf.yml [new file with mode: 0644]
ansible/host_vars/ctf/main.yml
ansible/hosts.ini

index f6ede15..1521411 100644 (file)
@@ -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 (file)
index 0000000..32d7dea
--- /dev/null
@@ -0,0 +1,5 @@
+---
+- name: Basic Setup for ctf
+  hosts: ctf
+  roles:
+  - role: base
index 5191ee0..8b4c911 100644 (file)
@@ -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
index 26bb727..b428eab 100644 (file)
@@ -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