caf-terraform-landingzones icon indicating copy to clipboard operation
caf-terraform-landingzones copied to clipboard

[bug] Errors during bootstrap procedure

Open olandese opened this issue 1 year ago • 2 comments

Hi,

using latest version 5.6.8

we are starting from scratch to ignite a complete greenfield environment. We started using the caf-terraform-landingzones-platform-starter repo as starting point and follow the getting started documentation https://github.com/Azure/caf-terraform-landingzones-platform-starter/blob/main/getting-started/gihub.md

Unfortunately the documentation is not up to date and we encountered multiple errors, which we were able most of them to work around. But now we are stuck with errors like this: image Or problems with the templating paths.

We don't know if the errors are due bugs in this repo or in the rover repo.

If possible we are open to have a call to walkthrough this together.

olandese avatar May 24 '23 10:05 olandese

I too am having the same issue and am completely blocked by it. is there any kind of workaround as it makes it completely unusable? @arnaudlh do you have any thoughts on this?

darrenhull avatar Jul 22 '23 07:07 darrenhull

I managed to make this work on the old versions, following this video and his exact versions: https://www.youtube.com/watch?v=UoUHEiK4dIY&ab_channel=AndreiPavlitchouk

Also i managed to make the most recent version working using the following changes: on /tf/caf/landingzones/templates/platform/caf_platform_prod_nonprod.yaml comment out (or delete) line <gitops_agents: gitops_agents_aci.yaml> (line 169)

run ansible-galaxy collection install community.general (this is to fix the 'with_filetree' term on lines 37,46,59 on /tf/caf/landingzones/templates/ansible/load_deployments_alz.yaml. no changes in the file itself are needed).

on /tf/caf/landingzones/templates/platform/services/README.md delete line 65 ( -e AGENT_TOKEN={{ AGENT_TOKEN }} )

on /tf/caf/landingzones/templates/platform/caf_platform_prod_nonprod.yaml change <private_templates_folder: "{{base_folder}}/platform/templates"> with <private_templates_folder: "{{base_folder}}/landingzones/templates/platform">

on /tf/caf/landingzones/templates/ansible/get_tfstate_content.yaml remove task "Set {{exported_variable_name}} with env:'{{env}}' - (with resource_key: {{resource_key}})" (rows 98 - 110). feel free to remove any empty rows to make the file pretty

then run: rover login --tenant tenantID --subscription subscriptionID org_name=contoso_ind rover -bootstrap -aad-app-name ${org_name}-platform-landing-zones -bootstrap-script '/tf/caf/landingzones/templates/platform/deploy_platform.sh ' -playbook '/tf/caf/landingzones/templates/platform/caf_platform_prod_nonprod.yaml'

tamir20 avatar Sep 26 '23 13:09 tamir20