From 205ffd7a45a8ccd33b0023601b2af42973ab4713 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 10 Sep 2018 12:55:01 +0000 Subject: [PATCH] new host --- group_vars/all/ips.yml | 6 +++++- group_vars/{vdesks => all}/netif.yml | 0 group_vars/all/virt.yml | 1 + group_vars/vdesks/virt.yml | 1 - host_vars/kita-pro-vdesk/netif.yml | 23 +++++++++++++++++++++++ host_vars/kita-pro-vdesk/ssh_host_key.yml | 1 + host_vars/kita-pro-vdesk/staging.yml | 1 + host_vars/kita-pro-vdesk/virt.yml | 19 +++++++++++++++++++ 8 files changed, 50 insertions(+), 2 deletions(-) rename group_vars/{vdesks => all}/netif.yml (100%) create mode 100644 group_vars/all/virt.yml create mode 100644 host_vars/kita-pro-vdesk/netif.yml create mode 100644 host_vars/kita-pro-vdesk/ssh_host_key.yml create mode 100644 host_vars/kita-pro-vdesk/staging.yml create mode 100644 host_vars/kita-pro-vdesk/virt.yml diff --git a/group_vars/all/ips.yml b/group_vars/all/ips.yml index cf933ed..47eea3e 100644 --- a/group_vars/all/ips.yml +++ b/group_vars/all/ips.yml @@ -1 +1,5 @@ -ips: [] +ips: +- host: kita-pro-vdesk + ip: 172.23.48.1 + network: kita-pro-service-net + subnet: 172.23.48.0/24 diff --git a/group_vars/vdesks/netif.yml b/group_vars/all/netif.yml similarity index 100% rename from group_vars/vdesks/netif.yml rename to group_vars/all/netif.yml diff --git a/group_vars/all/virt.yml b/group_vars/all/virt.yml new file mode 100644 index 0000000..4f3d4cf --- /dev/null +++ b/group_vars/all/virt.yml @@ -0,0 +1 @@ +virt_host: tg-srv-0 diff --git a/group_vars/vdesks/virt.yml b/group_vars/vdesks/virt.yml index 64c1ef9..456a995 100644 --- a/group_vars/vdesks/virt.yml +++ b/group_vars/vdesks/virt.yml @@ -1,3 +1,2 @@ -virt_host: tg-srv-0 virt_memory: 4096 virt_vcpu: 4 diff --git a/host_vars/kita-pro-vdesk/netif.yml b/host_vars/kita-pro-vdesk/netif.yml new file mode 100644 index 0000000..f255ec8 --- /dev/null +++ b/host_vars/kita-pro-vdesk/netif.yml @@ -0,0 +1,23 @@ +ansible_host: fd47:17e0:993c:30:47:aff:fed8:5484 +netifs: + virt: + device: enp1s3 + dns_resolvers: + - fd47:17e0:993c:c2::c:1 + - fd47:17e0:993c:c2::c:2 + - fd47:17e0:993c:c2::c:3 + eui64: 47:aff:fed8:5484 + id: 305124627588 + ips: + - ip: fd47:17e0:993c:30:47:aff:fed8:5484/64 + type: eui64 + - ip: 172.23.48.1/24 + type: host + ll6: fe80::47:aff:fed8:5484 + mac: 02:47:0a:d8:54:84 + networks: + - kita-pro-service-net + type: virt_ptp + virt_host_netif: virt + virt_pci_id: 0 +ssh_ip: fd47:17e0:993c:30:47:aff:fed8:5484 diff --git a/host_vars/kita-pro-vdesk/ssh_host_key.yml b/host_vars/kita-pro-vdesk/ssh_host_key.yml new file mode 100644 index 0000000..16c978c --- /dev/null +++ b/host_vars/kita-pro-vdesk/ssh_host_key.yml @@ -0,0 +1 @@ +ssh_host_key_ed25519_public: AAAAC3NzaC1lZDI1NTE5AAAAIABTb/3+sP5/TUhCMKcHqcKQfVBuG+QGbPI1VHvF9G03 diff --git a/host_vars/kita-pro-vdesk/staging.yml b/host_vars/kita-pro-vdesk/staging.yml new file mode 100644 index 0000000..89ce00c --- /dev/null +++ b/host_vars/kita-pro-vdesk/staging.yml @@ -0,0 +1 @@ +stage: production diff --git a/host_vars/kita-pro-vdesk/virt.yml b/host_vars/kita-pro-vdesk/virt.yml new file mode 100644 index 0000000..7d4857d --- /dev/null +++ b/host_vars/kita-pro-vdesk/virt.yml @@ -0,0 +1,19 @@ +filesystems: +- device: /dev/vda + fstype: ext4 + keep: true + mount_point: / +swap_devices: +- device: /dev/vdb + uuid: 4c5c7c6a-1331-5447-874a-3a7be8985c6b +virt_console: serial +virt_disks: +- boot: true + name: root + size: 32G + type: qcow2 +- name: swap + size: 2G + type: raw +virt_host: tg-srv-0 +virt_uuid: 1d23b7cf-fc5c-40bd-a127-1caa2bf64b40