Parcourir la source

tg-accounting site

master
révision
ab6af5a01c
20 fichiers modifiés avec 191 ajouts et 0 suppressions
  1. +40
    -0
      accounting_vdesks.yml
  2. +9
    -0
      group_vars/accounting_vdesks/netif.yml
  3. +13
    -0
      group_vars/accounting_vdesks/users.yml
  4. +1
    -0
      group_vars/accounting_vdesks/virt.yml
  5. +11
    -0
      group_vars/all/ips.yml
  6. +14
    -0
      group_vars/all/networks.yml
  7. +1
    -0
      group_vars/all/site.yml
  8. +8
    -0
      group_vars/all/users.yml
  9. +5
    -0
      group_vars/virt_hosts/netif.yml
  10. +8
    -0
      host_files/tg-accounting-feripent/root/.local/share/fish/fish_history
  11. +21
    -0
      host_vars/tg-accounting-feripent/netif.yml
  12. +1
    -0
      host_vars/tg-accounting-feripent/ssh_host_key.yml
  13. +1
    -0
      host_vars/tg-accounting-feripent/staging.yml
  14. +21
    -0
      host_vars/tg-accounting-feripent/virt.yml
  15. +1
    -0
      host_vars/tg-srv-2/host.yml
  16. +14
    -0
      host_vars/tg-srv-2/netif.yml
  17. +1
    -0
      host_vars/tg-srv-2/staging.yml
  18. +5
    -0
      inventory
  19. +1
    -0
      roles
  20. +15
    -0
      virt_hosts.yml

+ 40
- 0
accounting_vdesks.yml Voir le fichier

@@ -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

+ 9
- 0
group_vars/accounting_vdesks/netif.yml Voir le fichier

@@ -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

+ 13
- 0
group_vars/accounting_vdesks/users.yml Voir le fichier

@@ -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

+ 1
- 0
group_vars/accounting_vdesks/virt.yml Voir le fichier

@@ -0,0 +1 @@
virt_host: tg-srv-2

+ 11
- 0
group_vars/all/ips.yml Voir le fichier

@@ -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

+ 14
- 0
group_vars/all/networks.yml Voir le fichier

@@ -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

+ 1
- 0
group_vars/all/site.yml Voir le fichier

@@ -0,0 +1 @@
site_name: tg-accounting

+ 8
- 0
group_vars/all/users.yml Voir le fichier

@@ -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

+ 5
- 0
group_vars/virt_hosts/netif.yml Voir le fichier

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

+ 8
- 0
host_files/tg-accounting-feripent/root/.local/share/fish/fish_history Voir le fichier

@@ -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

+ 21
- 0
host_vars/tg-accounting-feripent/netif.yml Voir le fichier

@@ -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

+ 1
- 0
host_vars/tg-accounting-feripent/ssh_host_key.yml Voir le fichier

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

+ 1
- 0
host_vars/tg-accounting-feripent/staging.yml Voir le fichier

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

+ 21
- 0
host_vars/tg-accounting-feripent/virt.yml Voir le fichier

@@ -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

+ 1
- 0
host_vars/tg-srv-2/host.yml Voir le fichier

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

+ 14
- 0
host_vars/tg-srv-2/netif.yml Voir le fichier

@@ -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

+ 1
- 0
host_vars/tg-srv-2/staging.yml Voir le fichier

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

+ 5
- 0
inventory Voir le fichier

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

[accounting_vdesks]
tg-accounting-feripent

+ 1
- 0
roles Voir le fichier

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

+ 15
- 0
virt_hosts.yml Voir le fichier

@@ -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