瀏覽代碼

new staging structure

master
Markus Brechtel 6 年之前
父節點
當前提交
008b424754
共有 10 個檔案被更改,包括 90 行新增81 行删除
  1. +6
    -0
      vdesks-common.yaml
  2. +10
    -0
      vdesks-desktop.yaml
  3. +6
    -0
      vdesks-network.yaml
  4. +8
    -0
      vdesks-provisioning.yaml
  5. +24
    -0
      vdesks.yaml
  6. +0
    -46
      vdesks.yml
  7. +6
    -0
      vpn-common.yml
  8. +6
    -0
      vpn-network.yml
  9. +24
    -0
      vpn.yaml
  10. +0
    -35
      vpn_servers.yml

+ 6
- 0
vdesks-common.yaml 查看文件

@@ -0,0 +1,6 @@
---

- hosts: vdesks
remote_user: root
roles:
- role: common

+ 10
- 0
vdesks-desktop.yaml 查看文件

@@ -0,0 +1,10 @@
---

- hosts: vdesks
remote_user: root
roles:
- role: eralitex_desktop
- role: desktop_apps
- role: libreoffice
- role: atom_editor
- role: ansible

+ 6
- 0
vdesks-network.yaml 查看文件

@@ -0,0 +1,6 @@
---

- hosts: vdesks
remote_user: root
roles:
- role: network

+ 8
- 0
vdesks-provisioning.yaml 查看文件

@@ -0,0 +1,8 @@
---

- hosts: vdesks:&provisioning
remote_user: root
gather_facts: false
roles:
- role: netif
- role: virt_provision

+ 24
- 0
vdesks.yaml 查看文件

@@ -0,0 +1,24 @@
---

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

- import_playbook: vdesks-provisioning.yaml
- import_playbook: vdesks-network.yaml

- hosts: vdesks:&provisioning
remote_user: root
roles:
- name: staging
next_stage: staging

- import_playbook: vdesks-common.yaml

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

+ 0
- 46
vdesks.yml 查看文件

@@ -1,46 +0,0 @@
---

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

- hosts: vdesks:&provisioning
remote_user: root
gather_facts: false
roles:
- role: netif
- role: virt_provision
- role: common
- name: staging
next_stage: staging

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

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

- hosts: vdesks:&recycling
remote_user: root
gather_facts: false
roles:
- role: virt
virt_state: absent

+ 6
- 0
vpn-common.yml 查看文件

@@ -0,0 +1,6 @@
---

- hosts: vpn_servers
remote_user: root
roles:
- role: common

+ 6
- 0
vpn-network.yml 查看文件

@@ -0,0 +1,6 @@
---

- hosts: vpn_servers
remote_user: root
roles:
- role: network

+ 24
- 0
vpn.yaml 查看文件

@@ -0,0 +1,24 @@
---

- hosts: vpn_servers
gather_facts: false
roles:
- name: staging
default_stage: provisioning

- import_playbook: vpn-provisioning.yaml
- import_playbook: vpn-network.yaml

- hosts: vpn_servers:&provisioning
remote_user: root
roles:
- name: staging
next_stage: staging

- import_playbook: vpn-common.yaml

- hosts: vpn_servers:&staging
remote_user: root
roles:
- name: staging
next_stage: production

+ 0
- 35
vpn_servers.yml 查看文件

@@ -1,35 +0,0 @@
---

- hosts: vpn_servers
gather_facts: false
roles:
- name: staging
default_stage: provisioning

- hosts: vpn_servers:&provisioning
remote_user: root
gather_facts: false
roles:
- role: netif
- role: virt_provision
- role: common
- name: staging
next_stage: staging

- hosts: vpn_servers
remote_user: root
roles:
- role: common

# - hosts: vpn_servers:&staging
# remote_user: root
# roles:
# - name: staging
# next_stage: production

# - hosts: vpn_servers:&recycling
# remote_user: root
# gather_facts: false
# roles:
# - role: virt
# virt_state: absent