diff options
Diffstat (limited to 'core/inventory')
| -rw-r--r-- | core/inventory/groups.yaml | 9 | ||||
| -rw-r--r-- | core/inventory/hosts.yaml | 17 | ||||
| -rw-r--r-- | core/inventory/vars/all.yaml | 20 |
3 files changed, 46 insertions, 0 deletions
diff --git a/core/inventory/groups.yaml b/core/inventory/groups.yaml new file mode 100644 index 0000000..52dae9b --- /dev/null +++ b/core/inventory/groups.yaml @@ -0,0 +1,9 @@ +# groups.yaml — Definición de grupos en ShFlow +# Este archivo permite describir grupos, asignar etiquetas y metadatos. +# Sintaxis: +# groups: +# nombre_grupo: +# description: <texto descriptivo> +# tags: [tag1, tag2, ...] + +groups: {} diff --git a/core/inventory/hosts.yaml b/core/inventory/hosts.yaml new file mode 100644 index 0000000..faafa09 --- /dev/null +++ b/core/inventory/hosts.yaml @@ -0,0 +1,17 @@ +# hosts.yaml — Inventario principal de ShFlow +# Este archivo define los hosts y su pertenencia a grupos. +# Sintaxis: +# all: +# hosts: +# nombre_host: +# ansible_host: <IP o FQDN> +# become: <true|false> +# <clave>: <valor> +# children: +# nombre_grupo: +# hosts: +# nombre_host: + +all: + hosts: {} + children: {} diff --git a/core/inventory/vars/all.yaml b/core/inventory/vars/all.yaml new file mode 100644 index 0000000..e0c5b8f --- /dev/null +++ b/core/inventory/vars/all.yaml @@ -0,0 +1,20 @@ +# all.yaml — Variables globales para todos los hosts en ShFlow +# Este archivo define valores comunes que se aplican a todos los hosts del inventario. +# Sintaxis: +# clave: valor +# Las variables aquí definidas pueden ser sobrescritas por vars de grupo o de host. + +language: es +timezone: Europe/Madrid +ntp_servers: + - 0.europe.pool.ntp.org + - 1.europe.pool.ntp.org +default_packages: + - curl + - vim + - bash-completion +ssh_port: 22 +become: true +env: production +vault_enabled: true +vault_rotation_interval: 30d |
