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

[GCP] generated Ansible inventory host labels has deployment_name from Terraform #99

Open
mpagot opened this issue Nov 9, 2022 · 0 comments

Comments

@mpagot
Copy link
Collaborator

mpagot commented Nov 9, 2022

Just for GCP, using glue script config.yaml like

provider: "gcp"
apiver: 2
terraform:
  variables:
    deployment_name: "mpagot"
  ...

Result generated inventory to looks like

all:
  children:
    hana:
      hosts:
        mpagot-vmhana01:
          ansible_host: *****
          ansible_python_interpreter: /usr/bin/python3 
        mpagot-vmhana02:
          ansible_host: *****
          ansible_python_interpreter: /usr/bin/python3 

  hosts: null

Expected inventory should look like

all:
children:
hana:
hosts:
vmhana01:
ansible_host: *****
ansible_python_interpreter: /usr/bin/python3
vmhana02:
ansible_host: *****
ansible_python_interpreter: /usr/bin/python3

hosts: null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant