WIP: Integriere Hetzner Storage Boxes

This commit is contained in:
phil 2023-11-01 11:09:55 +01:00
parent 5797b88e88
commit ab9fa7e008
5 changed files with 17 additions and 1 deletions

View file

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

View file

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

View file

@ -0,0 +1,4 @@
===== Storage Boxes =====
* {{ ansible_host }}:{{ ansible_port }}
* {{ ansible_user }}

View file

@ -2,3 +2,4 @@
* [[cmdb:servers:all|Alle Server]]
* [[cmdb:servers:hypervisor|Hypervisor]]
* [[cmdb:servers:storage_boxes|Storage Boxes]]

View file

@ -0,0 +1,5 @@
====== Storage Boxes ======
{% for host in groups['storage_boxes'] | sort %}
* [[cmdb:servers:all:{{ host }}]]
{% endfor %}