Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

vRA8 Cloud Assembly - network gateway

$
0
0

I want to pass the network gateway of a given cloud network to an Ansible playbook, but I'm having difficulties to reference it. What I'm trying to do in the blueprint:

 

resources:

  ans_server1:

    type: Cloud.Ansible

    properties:

      host: '${resource.server1.*}'

      osType: linux

      account: myansible

      username: ansible-remote

      privateKeyFile: .ssh/id_rsa_ansible

      playbooks:

        provision:

          - playbooks/config.yml

      hostVariables:

        hostname: '${resource.server1.resourceName}'

        gw: '${resource.Cloud_Network.gateway}'

        clustername: '${input.clusterName}'

  Cloud_Network:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

      name: cloud1

 

However, I get null for the gateway in vra_user_host_vars.yml:

 

{"hostname":"server-04","gw":"null","clustername":"clu1"}

 

The gateway information is correctly set in the network profile.


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>