[Openstack] [Heat] Any hint on using pseudo-parameters?

Qiming Teng tengqim at linux.vnet.ibm.com
Fri Mar 14 12:14:32 UTC 2014


Hi,

   Below is a snippet of a template I am debugging.  I was trying to
test HARestarter in this case, so I am supposed to provide a
configuration file for cfn-hup.

   The problem I have is that I cannot get the pseudo parameters work.
When trying the create the stack, I am getting the following errors:

ERROR: Property error : ServerConfig: cloud_config The Parameter
(OS::region) was not provided.

   I got no luck trying 'AWS::StackName' or 'AWS::Region' as well. Can
someone help out?

   Thanks.

  ServerConfig:
    type: OS::Heat::CloudConfig
    properties:
      cloud_config:
        write_files:
          - path: /etc/cfn/cfn-hup.conf
            content:
              str_replace:
                template: |
                  [main]
                  stack=P_STACKNAME
                  credential-file=/etc/cfn/cfn-credentials
                  region=P_REGION
                  interval=P_INTERVAL
                params:
                  P_STACKNAME: { get_param: 'OS::stack_name' }
                  P_REGIN: { get_param: 'OS::region' }
                  P_INTERVAL: { get_param: HupPollInterval}

 Qiming
 Research Scientist
 IBM Research - China Lab
 <tengqim at cn dot ibm dot com>





More information about the Openstack mailing list