Skip to content

MalloZup/suseforma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

suseforma

generic framework inspired from sumaform https://github.com/moio/sumaform Suseforma is a simplified generic sumaform version. (salt + terraform (libvirt-plugin), and should help you to learn create a template for your project

https://github.com/dmacvicar/terraform-provider-libvirt

Install prereq:

https://github.com/moio/sumaform/#installation

Run the example:

vi main.tf.example
cp main.tf.example main.tf
terraform get
terraform apply

How to use suseforma:

Baiscally, terraform create disks and networks etc (main.tf file) Salt run after matching the roles (grains), and execute the states assigned.

roles

On the top.sls file https://github.com/MalloZup/suseforma/blob/master/salt/top.sls

creating new role Example: frankzappa:

The control-node, has the grain definiton "hidden" in terraform https://github.com/MalloZup/suseforma/blob/master/modules/libvirt/control_node/main.tf#L8


Suseforma is basically terraform, libvirtd (https://github.com/dmacvicar/terraform-provider-libvirt) with salt. This is for learning purpose.

The control-node machine, is a concept to orchestrate machines, in complex scenario. In spacewalk-testsuite(https://github.com/SUSE/spacewalk-testsuite-base), we run cucumber code inside the control-node that orchestrate the multiples-machines.

For getting more in touch, take inspiration from sumaform.