Automated Provisioning - KVM & CM tools
-
Its been a while since I've try this before. But you can use something like
virt-builder
to most of what you want if you deploying Linux VMs.
https://developer.fedoraproject.org/tools/virt-builder/about.html -
You can do this with
vagrant
. You can attach login scripts into the Vagrant config file or you can actually build templates which they callboxes
. -
@IRJ said in Automated Provisioning - KVM & CM tools:
You can do this with
vagrant
. You can attach login scripts into the Vagrant config file or you can actually build templates which they callboxes
.Is Vagrant meant for production environments as well? This project is a proof of concept, that I would later hope to take into a production environment.
-
@fuznutz04 said in Automated Provisioning - KVM & CM tools:
@IRJ said in Automated Provisioning - KVM & CM tools:
You can do this with
vagrant
. You can attach login scripts into the Vagrant config file or you can actually build templates which they callboxes
.Is Vagrant meant for production environments as well? This project is a proof of concept, that I would later hope to take into a production environment.
I have used vagrant in my lab and really like it, but if you design your environment properly it wont matter what tool you use to automate the build.
You need to learn scripting so you can utilize bash and/or ansible to do these builds. Then you can use whatever mechanism you want to do the virtualization like vagrant or terraform.
-
Terraform will do this and I have an Ansible role to do it also.
As @IRJ mentioned Vagrant will work also. However I feel Terraform is a better fit as you have more control over the specific pieces of your infrastructure.
-
@stacksofplates said in Automated Provisioning - KVM & CM tools:
Terraform will do this and I have an Ansible role to do it also.
As @IRJ mentioned Vagrant will work also. However I feel Terraform is a better fit as you have more control over the specific pieces of your infrastructure.You would still prefer Terraform over Ansible for this as well?
-
@fuznutz04 said in Automated Provisioning - KVM & CM tools:
@stacksofplates said in Automated Provisioning - KVM & CM tools:
Terraform will do this and I have an Ansible role to do it also.
As @IRJ mentioned Vagrant will work also. However I feel Terraform is a better fit as you have more control over the specific pieces of your infrastructure.You would still prefer Terraform over Ansible for this as well?
Not the same kind of tool. Terraform is about creating virtual infrastructure. Ansible is about management.
-
@fuznutz04 My first thought about how to best do something like this is Ansible. There are several ways but to me this sounds like what Ansible is meant to do.
-
@fuznutz04 said in Automated Provisioning - KVM & CM tools:
@stacksofplates said in Automated Provisioning - KVM & CM tools:
Terraform will do this and I have an Ansible role to do it also.
As @IRJ mentioned Vagrant will work also. However I feel Terraform is a better fit as you have more control over the specific pieces of your infrastructure.You would still prefer Terraform over Ansible for this as well?
Yeah. My role can create the VMs, but Terraform had more functionality for that. Ansible overlaps in the infrastructure provisioning space a lot, but it lacks keeping states like Terraform does.
-
@stacksofplates said in Automated Provisioning - KVM & CM tools:
@fuznutz04 said in Automated Provisioning - KVM & CM tools:
@stacksofplates said in Automated Provisioning - KVM & CM tools:
Terraform will do this and I have an Ansible role to do it also.
As @IRJ mentioned Vagrant will work also. However I feel Terraform is a better fit as you have more control over the specific pieces of your infrastructure.You would still prefer Terraform over Ansible for this as well?
Yeah. My role can create the VMs, but Terraform had more functionality for that. Ansible overlaps in the infrastructure provisioning space a lot, but it lacks keeping states like Terraform does.
I'd like to learn both. I just started with Ansible a day or two ago. I have been (and still am) using SaltStack.