commit f5266e02eb93c62f3f2d9670438ea822aab8fa21 parent 85b16aee70c0f5f648a78fe27cf7ea735a4642ad Author: Andreas Gruhler <andreas.gruhler@adfinis-sygroup.ch> Date: Thu, 28 May 2020 09:12:53 +0200 reorder readme stages Diffstat:
M | libvirt/Readme.md | | | 17 | +++++++++++------ |
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/libvirt/Readme.md b/libvirt/Readme.md @@ -25,16 +25,21 @@ todo: `LIBVIRT_DEFAULT_URI` does not work as expected? ## 2 Run Terraform -Plan: -``` -terraform plan -``` +Run Terraform in several "stages". -Run Terraform in two "stages": -``` +Update the local cloud init config file `./cloud_init.cfg`: +```bash # prepare cloud-init config file with ssh key terraform apply -target=null_resource.update_cloudinit -auto-approve +``` + +Have a look at the planned resources: +```bash +terraform plan +``` +Create the planned resources: +```bash # create the remaining resources (e.g., the cloud-init image from the config file prepared above) terraform apply -auto-approve ```