89luca89/terrible

[IMPROVEMENT] Support for other providers

Aberta

#88 aberto em 4 de jul. de 2021

 (0 comentário) (0 reação) (2 responsáveis)YAML (29 forks)github user discovery
enhancementexperimentalhelp wantedrefactoring

Métricas do repositório

Stars
 (257 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

We should support other providers like:

To include multiple providers we should think on how we want to specify the provider, for example:

    hypervisor_1:
      ansible_host: remote_kvm_machine.foo.bar
      ansible_user: root
      provider_type: Proxmox

Or something similar, also we should think on how the code generation will behave, for example

roles/terrible/templates/Libvirt
└── ......tf.j2
roles/terrible/templates/Proxmox
└── ......tf.j2
roles/terrible/templates/oVirt
└── ......tf.j2

And use the provider_type as a variable to discover the templates.

Discussion open on how to approach the problem

Guia do colaborador