Quantcast
Viewing latest article 5
Browse Latest Browse All 5

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

Viewing latest article 5
Browse Latest Browse All 5

Trending Articles