Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to pass parameter value to runcmd in OS::Heat::CloudConfig resource.

I'd like to pass string type value read from environment file as an argument to runcmd in OS::Heat::CloudConfig. Below is parameter definition.

  oam_stat_routes:
    type: string
    label: oam_stat_routes
    description: List of static route destination on OAM side in CIDR notation.

Below is the CloudConfig definition with runcmd. What I want to do is to pass the value of oam_stat_routes to shell script command /usr/local/bin/set_route as an argument. Wonder if this is possible.

  dns_network:                   
    type: OS::Heat::CloudConfig 
    properties:
      cloud_config:
        runcmd:
           - /usr/local/bin/set_route oam_stat_routes