Browse Source

recent changes

master
parent
commit
a94f0dce62
18 changed files with 38 additions and 111 deletions
  1. +4
    -2
      group_vars/accounting_vdesks/netif.yml
  2. +1
    -7
      group_vars/accounting_vdesks/users.yml
  3. +2
    -0
      group_vars/accounting_vdesks/virt.yml
  4. +1
    -6
      group_vars/all/users.yml
  5. +0
    -5
      group_vars/virt_hosts/netif.yml
  6. +0
    -8
      host_files/tg-accounting-feripent/root/.local/share/fish/fish_history
  7. +0
    -21
      host_vars/tg-accounting-feripent/netif.yml
  8. +0
    -1
      host_vars/tg-accounting-feripent/ssh_host_key.yml
  9. +0
    -1
      host_vars/tg-accounting-feripent/staging.yml
  10. +0
    -21
      host_vars/tg-accounting-feripent/virt.yml
  11. +16
    -0
      host_vars/tg-srv-0/netif.yml
  12. +0
    -1
      host_vars/tg-srv-2/host.yml
  13. +0
    -14
      host_vars/tg-srv-2/netif.yml
  14. +0
    -1
      host_vars/tg-srv-2/staging.yml
  15. +2
    -2
      inventory
  16. +0
    -1
      roles
  17. +12
    -5
      vdesks.yml
  18. +0
    -15
      virt_hosts.yml

+ 4
- 2
group_vars/accounting_vdesks/netif.yml View File

@@ -3,7 +3,9 @@ netifs_profile:
virt: virt:
networks: networks:
- tg-accounting-net - tg-accounting-net
type: virt
type: virt_ptp
virt_host_netif: virt virt_host_netif: virt
dns_resolvers: dns_resolvers:
- 213.186.33.99
- fd47:17e0:993c:c2::c:1
- fd47:17e0:993c:c2::c:2
- fd47:17e0:993c:c2::c:3

+ 1
- 7
group_vars/accounting_vdesks/users.yml View File

@@ -3,11 +3,5 @@ users:
uid: 4716 uid: 4716
gid: 4716 gid: 4716
ssh_authorized_keys: 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
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGwdEkFBdQfY5YB6LR1l+copG7rZXlGLQyWWwhZdNkpW chaotika
linger: true linger: true

+ 2
- 0
group_vars/accounting_vdesks/virt.yml View File

@@ -1 +1,3 @@
virt_host: tg-srv-2 virt_host: tg-srv-2
virt_memory: 4096
virt_vcpu: 4

+ 1
- 6
group_vars/all/users.yml View File

@@ -1,8 +1,3 @@
root_ssh_authorized_keys: 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 AAAAC3NzaC1lZDI1NTE5AAAAIGwdEkFBdQfY5YB6LR1l+copG7rZXlGLQyWWwhZdNkpW chaotika
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOC5/P9eYaHzOZGB/HE7zpjbCiYkfPFBzMvqIglFOWLe ansible-generated on tg-devops-emardely - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOC5/P9eYaHzOZGB/HE7zpjbCiYkfPFBzMvqIglFOWLe ansible-generated on tg-devops-emardely

+ 0
- 5
group_vars/virt_hosts/netif.yml View File

@@ -1,5 +0,0 @@
netifs_profile:
virt:
networks:
- tg-accounting-net
type: virt_pointopoint

+ 0
- 8
host_files/tg-accounting-feripent/root/.local/share/fish/fish_history View File

@@ -1,8 +0,0 @@
- 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
- 21
host_vars/tg-accounting-feripent/netif.yml View File

@@ -1,21 +0,0 @@
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
- 1
host_vars/tg-accounting-feripent/ssh_host_key.yml View File

@@ -1 +0,0 @@
ssh_host_key_ed25519_public: AAAAC3NzaC1lZDI1NTE5AAAAIIg7ic7EXHDN+S6Jj3o50zmRCwBgsHJyI5ctfmU8P+hc

+ 0
- 1
host_vars/tg-accounting-feripent/staging.yml View File

@@ -1 +0,0 @@
stage: production

+ 0
- 21
host_vars/tg-accounting-feripent/virt.yml View File

@@ -1,21 +0,0 @@
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

+ 16
- 0
host_vars/tg-srv-0/netif.yml View File

@@ -0,0 +1,16 @@
ansible_host: tg-srv-0.thengo.net
netifs:
virt:
device: virt
eui64: 47:9ff:fee0:9d4
id: 305108355540
ips:
- ip: fd47:17e0:993c:0:47:9ff:fee0:9d4/64
type: eui64
- ip: 172.23.0.1/24
type: host
ll6: fe80::47:9ff:fee0:9d4
mac: 02:47:09:e0:09:d4
networks:
- tg-srv-0
type: bridge

+ 0
- 1
host_vars/tg-srv-2/host.yml View File

@@ -1 +0,0 @@
ansible_host: tg-srv-2.thengo.net

+ 0
- 14
host_vars/tg-srv-2/netif.yml View File

@@ -1,14 +0,0 @@
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
- 1
host_vars/tg-srv-2/staging.yml View File

@@ -1 +0,0 @@
stage: production

+ 2
- 2
inventory View File

@@ -1,5 +1,5 @@
[virt_hosts] [virt_hosts]
tg-srv-2
tg-srv-0


[accounting_vdesks]
[vdesks]
tg-accounting-feripent tg-accounting-feripent

+ 0
- 1
roles View File

@@ -1 +0,0 @@
/home/chaotika/ansible-roles/

accounting_vdesks.yml → vdesks.yml View File

@@ -1,12 +1,12 @@
--- ---


- hosts: accounting_vdesks
- hosts: vdesks
gather_facts: false gather_facts: false
roles: roles:
- name: staging - name: staging
default_stage: provisioning default_stage: provisioning


- hosts: accounting_vdesks:&provisioning
- hosts: vdesks:&provisioning
remote_user: root remote_user: root
gather_facts: false gather_facts: false
roles: roles:
@@ -17,22 +17,29 @@
- name: staging - name: staging
next_stage: staging next_stage: staging


- hosts: accounting_vdesks
- hosts: vdesks
remote_user: root remote_user: root
roles: roles:
- role: common - role: common
- role: eralitex_desktop - role: eralitex_desktop
- role: desktop_apps - role: desktop_apps
- role: libreoffice
- role: atom_editor - role: atom_editor
- role: accounting - role: accounting
tasks:
- name: install packages
apt:
pkg: "{{item}}"
with_items:
- thunderbird


- hosts: accounting_vdesks:&staging
- hosts: vdesks:&staging
remote_user: root remote_user: root
roles: roles:
- name: staging - name: staging
next_stage: production next_stage: production


- hosts: accounting_vdesks:&recycling
- hosts: vdesks:&recycling
remote_user: root remote_user: root
gather_facts: false gather_facts: false
roles: roles:

+ 0
- 15
virt_hosts.yml View File

@@ -1,15 +0,0 @@
---

- 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