WIP: Integriere Hetzner Storage Boxes
This commit is contained in:
parent
5797b88e88
commit
ab9fa7e008
5 changed files with 17 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
Configuration Management Database
|
||||
=================================
|
||||
|
||||
Diese Rolle erstellt CMDB innerhalb eines vorhandenen Dokuwikis.
|
||||
Diese Rolle erstellt eine [CMDB](https://de.wikipedia.org/wiki/Configuration_Management_Database) innerhalb eines vorhandenen Dokuwikis.
|
||||
|
||||
## Installation
|
||||
Führe die Rolle mit dem `install`-Tag aus:
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
{% include 'section_customer.txt.j2' %}
|
||||
{% endif %}
|
||||
|
||||
{% if inventory_hostname not in storage_boxes %}
|
||||
{% include 'section_general.txt.j2' %}
|
||||
|
||||
{% include 'section_os-software.txt.j2' %}
|
||||
|
@ -30,6 +31,11 @@
|
|||
{% include 'section_mounted_fs.txt.j2' %}
|
||||
|
||||
{% include 'section_networking.txt.j2' %}
|
||||
{% endif %}
|
||||
|
||||
{% if inventory_hostname in storage_boxes %}
|
||||
{% include 'section_storage_boxes.txt.j2' %}
|
||||
{% endif %}
|
||||
|
||||
{% if "qemu-system-x86" in ansible_facts.packages %}
|
||||
===== KVM =====
|
||||
|
|
4
templates/section_storage_boxes.txt.j2
Normal file
4
templates/section_storage_boxes.txt.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
===== Storage Boxes =====
|
||||
|
||||
* {{ ansible_host }}:{{ ansible_port }}
|
||||
* {{ ansible_user }}
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
* [[cmdb:servers:all|Alle Server]]
|
||||
* [[cmdb:servers:hypervisor|Hypervisor]]
|
||||
* [[cmdb:servers:storage_boxes|Storage Boxes]]
|
||||
|
|
5
templates/storage_boxes.txt.j2
Normal file
5
templates/storage_boxes.txt.j2
Normal file
|
@ -0,0 +1,5 @@
|
|||
====== Storage Boxes ======
|
||||
|
||||
{% for host in groups['storage_boxes'] | sort %}
|
||||
* [[cmdb:servers:all:{{ host }}]]
|
||||
{% endfor %}
|
Loading…
Reference in a new issue