Advertisement
ioggstream

Untitled

May 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.54 KB | None | 0 0
  1. heat_template_version: newton
  2.  
  3. parameters:
  4.   env_type:
  5.     type: string
  6.     default: 'prod'
  7.  
  8. conditions:
  9.   is_prod: {equals : [{get_param: env_type}, "prod"]}
  10.   is_test: {equals : [{get_param: env_type}, "test"]}
  11.  
  12. resources:
  13.   deployment_type:
  14.     condition: is_test
  15.     type: OS::Heat::Value
  16.     properties:
  17.         value: Test
  18.  
  19.   deployment_type:
  20.     condition: is_prod
  21.     type: OS::Heat::Value
  22.     properties:
  23.         value: Prod
  24.  
  25. outputs:
  26.   deployment:
  27.     value:
  28.       get_attr:
  29.      - deployment_type
  30.       - value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement