Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Errors during bootstrap procedure #470

Open
olandese opened this issue May 24, 2023 · 2 comments
Open

[bug] Errors during bootstrap procedure #470

olandese opened this issue May 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@olandese
Copy link
Contributor

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 olandese added the bug Something isn't working label May 24, 2023
@darrenhull
Copy link

darrenhull commented Jul 22, 2023

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?

@tamir20
Copy link

tamir20 commented Sep 26, 2023

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants