Ask Your Question

Revision history [back]

Hi I used this example to change my template, but I dont know how the password was changed and where I can see the output.

This is my template:

heat_template_version: 2013-05-23

description: 2VCPU, 4GB RAM, 135 GB,VLAN300

resources: root_pw: type: OS::Heat::RandomString

myserver: type: OS::Nova::Server properties: image: rhel6_6x64_heat flavor: A1 Small Instance -1VCPU- 2GB RAM- 70 GB Disco key_name: key2 networks: - network : Discovered Network VLAN300_Cliente1_ICO user_data_format: RAW user_data: str_replace: template: | #!/bin/sh

        echo "$ROOT_PW"
        echo "$ROOT_PW"
        ) | passwd --stdin root
        "@ROOT_PW@": {get_resource: root_pw}

outputs: root_pw: value: {get_resource: root_pw}