Quantcast
Channel: VMware Communities : Unanswered Discussions - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 6792

Customize Blueprint to add a network with a ternary condition

$
0
0

Hello,

 

I want my blueprint to add a second network only if the value is "linux".

 

Here is an example :

  resources:

  Cloud_vSphere_Machine_1:

    type: Cloud.vSphere.Machine

    properties:

      image: '${input.image}'

      networks:

        - network: '${resource.Cloud_vSphere_Network_1.id}'

        - network: '${resource.Cloud_vSphere_Network_2.id}'

  Cloud_vSphere_Network_1:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

  Cloud_vSphere_Network_2:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

      count: '${input.image == "linux" ? 1 : 0 }

 

 

vRA8 indicates an error on the second network line saying that it can't create a network on the existing condition. Is there a way to do that ?


Viewing all articles
Browse latest Browse all 6792

Trending Articles



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