@@ -0,0 +1,40 @@ | |||||
--- | |||||
- hosts: accounting_vdesks | |||||
gather_facts: false | |||||
roles: | |||||
- name: staging | |||||
default_stage: provisioning | |||||
- hosts: accounting_vdesks:&provisioning | |||||
remote_user: root | |||||
gather_facts: false | |||||
roles: | |||||
- role: netif | |||||
- role: virt_default_profile | |||||
- role: virt_provision | |||||
- role: common | |||||
- name: staging | |||||
next_stage: staging | |||||
- hosts: accounting_vdesks | |||||
remote_user: root | |||||
roles: | |||||
- role: common | |||||
- role: eralitex_desktop | |||||
- role: desktop_apps | |||||
- role: atom_editor | |||||
- role: accounting | |||||
- hosts: accounting_vdesks:&staging | |||||
remote_user: root | |||||
roles: | |||||
- name: staging | |||||
next_stage: production | |||||
- hosts: accounting_vdesks:&recycling | |||||
remote_user: root | |||||
gather_facts: false | |||||
roles: | |||||
- role: virt | |||||
virt_state: absent |
@@ -0,0 +1,9 @@ | |||||
netif_primary: virt | |||||
netifs_profile: | |||||
virt: | |||||
networks: | |||||
- tg-accounting-net | |||||
type: virt | |||||
virt_host_netif: virt | |||||
dns_resolvers: | |||||
- 213.186.33.99 |
@@ -0,0 +1,13 @@ | |||||
users: | |||||
chaotika: | |||||
uid: 4716 | |||||
gid: 4716 | |||||
ssh_authorized_keys: | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILLQiFZ/RhEm09JDFD9waZiIIeuTlf1AHYonqCC3WYLQ chaotika@togusa | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKFwvPnaIhyfDr1WsczFgT3SSKa7DbVMCy5uM3zGUvAk chaotika@ffmine-server | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDn/llKlfBl+G38g+09LHBheQjZr3iJAjDqiC7koD9yu chaotika@aramaki | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDtwfozbvy7kBLJwsqleNxPH4wG2hMRCYdWpyLuNrKwO chaotika@astanial | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDw6aNSXoTiSZhuSAT4MH//NRQrfvdVMdk42d5Y+mhKR chaotika@hal | |||||
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCo5TqkwTwAEeXlMpHu0v5eybQUpWabeCkq4rIAHOBhnFaq0KiY6BMfX66ltpWa+f2ukySAmU5TNpXRwavVzEhGPF5kSYPfUGpZE8ZzpLr4di20aKzoENmVQ8zA6FqTmnfRCoZ2xA7xOBGC+pcergsIbl/oVpjaE4MLqp6jGp2s4z9uNkZq0IOYdIk0w5PddT$ | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOC5/P9eYaHzOZGB/HE7zpjbCiYkfPFBzMvqIglFOWLe ansible-generated on tg-devops-emardely | |||||
linger: true |
@@ -0,0 +1 @@ | |||||
virt_host: tg-srv-2 |
@@ -0,0 +1,11 @@ | |||||
ips: | |||||
- host: tg-srv-2 | |||||
ip: 172.23.144.1 | |||||
netif: virt | |||||
network: tg-accounting-net | |||||
subnet: 172.23.144.0/20 | |||||
- host: tg-accounting-feripent | |||||
ip: 172.23.144.2 | |||||
netif: virt | |||||
network: tg-accounting-net | |||||
subnet: 172.23.144.0/20 |
@@ -0,0 +1,14 @@ | |||||
networks: | |||||
tg-net: | |||||
subnets: | |||||
- fd47:17e0:993c::/48 | |||||
- 172.23/16 | |||||
- 172.24/16 | |||||
tg-accounting-net: | |||||
parent: tg-net | |||||
site: tg-accounting | |||||
subnets: | |||||
- fd47:17e0:993c:90::/60 | |||||
- 172.23.144/20 |
@@ -0,0 +1 @@ | |||||
site_name: tg-accounting |
@@ -0,0 +1,8 @@ | |||||
root_ssh_authorized_keys: | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILLQiFZ/RhEm09JDFD9waZiIIeuTlf1AHYonqCC3WYLQ chaotika@togusa | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKFwvPnaIhyfDr1WsczFgT3SSKa7DbVMCy5uM3zGUvAk chaotika@ffmine-server | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDn/llKlfBl+G38g+09LHBheQjZr3iJAjDqiC7koD9yu chaotika@aramaki | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDtwfozbvy7kBLJwsqleNxPH4wG2hMRCYdWpyLuNrKwO chaotika@astanial | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDw6aNSXoTiSZhuSAT4MH//NRQrfvdVMdk42d5Y+mhKR chaotika@hal | |||||
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCo5TqkwTwAEeXlMpHu0v5eybQUpWabeCkq4rIAHOBhnFaq0KiY6BMfX66ltpWa+f2ukySAmU5TNpXRwavVzEhGPF5kSYPfUGpZE8ZzpLr4di20aKzoENmVQ8zA6FqTmnfRCoZ2xA7xOBGC+pcergsIbl/oVpjaE4MLqp6jGp2s4z9uNkZq0IOYdIk0w5PddT$ | |||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOC5/P9eYaHzOZGB/HE7zpjbCiYkfPFBzMvqIglFOWLe ansible-generated on tg-devops-emardely |
@@ -0,0 +1,5 @@ | |||||
netifs_profile: | |||||
virt: | |||||
networks: | |||||
- tg-accounting-net | |||||
type: virt_pointopoint |
@@ -0,0 +1,8 @@ | |||||
- cmd: uptime | |||||
when: 1509999241 | |||||
- cmd: ip a | |||||
when: 1509999672 | |||||
- cmd: tail -f /var/log/apt/term.log | |||||
when: 1509999678 | |||||
paths: | |||||
- /var/log/apt/term.log |
@@ -0,0 +1,21 @@ | |||||
ansible_host: fd47:17e0:993c:90:47:e1ff:feab:2463 | |||||
netifs: | |||||
virt: | |||||
device: enp1s3 | |||||
dns_resolvers: | |||||
- 213.186.33.99 | |||||
eui64: 47:e1ff:feab:2463 | |||||
id: 308728767587 | |||||
ips: | |||||
- ip: fd47:17e0:993c:90:47:e1ff:feab:2463/60 | |||||
type: eui64 | |||||
- ip: 172.23.144.2/20 | |||||
type: host | |||||
ll6: fe80::47:e1ff:feab:2463 | |||||
mac: 02:47:e1:ab:24:63 | |||||
networks: | |||||
- tg-accounting-net | |||||
type: virt | |||||
virt_host_netif: virt | |||||
virt_pci_id: 0 | |||||
ssh_ip: fd47:17e0:993c:90:47:e1ff:feab:2463 |
@@ -0,0 +1 @@ | |||||
ssh_host_key_ed25519_public: AAAAC3NzaC1lZDI1NTE5AAAAIIg7ic7EXHDN+S6Jj3o50zmRCwBgsHJyI5ctfmU8P+hc |
@@ -0,0 +1 @@ | |||||
stage: production |
@@ -0,0 +1,21 @@ | |||||
boot_devices: | |||||
- /dev/vda | |||||
filesystems: | |||||
- device: /dev/vda | |||||
fstype: btrfs | |||||
mount_point: / | |||||
uuid: 4d184c9f-b62d-5dbd-a5dc-2de5394cbc13 | |||||
grub_cmdline_linux_default: quiet console=ttyS0 | |||||
grub_terminal: serial | |||||
swap_devices: | |||||
- device: /dev/vdb | |||||
uuid: 87c9b987-b235-5b55-a43c-9cb3d0b60827 | |||||
virt_disks: | |||||
- boot: true | |||||
name: root | |||||
size: 32G | |||||
- name: swap | |||||
size: 2G | |||||
virt_memory: 1024 | |||||
virt_uuid: 57752cef-5f7d-4a99-90c1-3692d3e8f272 | |||||
virt_vcpu: 1 |
@@ -0,0 +1 @@ | |||||
ansible_host: tg-srv-2.thengo.net |
@@ -0,0 +1,14 @@ | |||||
netifs: | |||||
virt: | |||||
eui64: 47:7dff:fe34:cd4 | |||||
id: 307043241172 | |||||
ips: | |||||
- ip: fd47:17e0:993c:90:47:7dff:fe34:cd4/60 | |||||
type: eui64 | |||||
- ip: 172.23.144.1/20 | |||||
type: host | |||||
ll6: fe80::47:7dff:fe34:cd4 | |||||
mac: 02:47:7d:34:0c:d4 | |||||
networks: | |||||
- tg-accounting-net | |||||
type: virt_pointopoint |
@@ -0,0 +1 @@ | |||||
stage: production |
@@ -0,0 +1,5 @@ | |||||
[virt_hosts] | |||||
tg-srv-2 | |||||
[accounting_vdesks] | |||||
tg-accounting-feripent |
@@ -0,0 +1 @@ | |||||
/home/chaotika/ansible-roles/ |
@@ -0,0 +1,15 @@ | |||||
--- | |||||
- hosts: virt_hosts | |||||
gather_facts: false | |||||
roles: | |||||
- name: staging | |||||
default_stage: staging | |||||
- hosts: virt_hosts:&staging | |||||
remote_user: root | |||||
gather_facts: false | |||||
roles: | |||||
- role: netif | |||||
- name: staging | |||||
next_stage: production |