Quantcast
Channel: VMware Communities : All Content - VMware vCenter™
Viewing all articles
Browse latest Browse all 24426

vmware vCO complex data types

$
0
0

Hello,

 

I am developing a workflow (made of more workflows) to create a vm and then provision it with "Chef". To provision the newly created vm, for instance with Apache, I'm adding as input parameters some questions as:

  • DocumentRoot? Default value: /var/www
  • Add virtualhosts? Yes or No
  • If Yes:
    • Listen Port? Default 80
    • SSL?
    • mod_rewrite? Yes or No
    • If Yes loop
      • RewriteCond: String
      • RewriteRule: String
  • etc...

The problem comes with the virtualhosts question. If the user wants to add more than one virtualhosts, the type of this input parameter is an "array of" composite types. Each composite type has port, ssl, mod_rewrite... The latter (mod_rewrite) can have more than one pair Cond-Rule, which means is also an array....

The first problem is that the composite type can't make validation, and the second is that the array for mod_rewrite data is uneditable.

Obviously I'm not taking the right approach but I don't know which one it is. Can anyone help me? I'm using vCO 5.5

 

Regards!


Viewing all articles
Browse latest Browse all 24426

Trending Articles



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