--- "file://master-36820f4e.yaml": description: 'Data Processing Cluster by Sahara Sahara cluster name: SCENATEST-c22e270c Sahara engine: heat.3.0 Node group master-36820f4e' heat_template_version: '2016-04-08' outputs: instance: value: name: get_attr: [inst, name] physical_id: {get_resource: inst} parameters: autosecgroup: {type: string} instance_index: {type: string} resources: inst: properties: admin_user: ubuntu flavor: '0' image: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx key_name: scenario_key-852f0477 name: list_join: - '-' - - scenatest-c22e270c - master-36820f4e - {get_param: instance_index} networks: - port: {get_resource: port} user_data: str_replace: params: wc_notify: get_attr: [master-36820f4e-wc-handle, curl_cli] template: "#!/bin/bash\necho \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMRJHQUrh+o1mdkZjNXj5moekwBCQwMOnb01FbSYbFvUgqGSgObmF6zstSqPwf3FN/oHS6a0Cbnl+Edj4KCwEhHW+NNKgdb3HfRomdLN+Uun6q4QjAayG+88vhttLQivAVKDy/AWfXJZ2bgDp3PgK8dRcf67oH+P4C0sDX7w91ZEgGAWVcZo+r6YWqxhQUhygMwARe0/YwYUZdmDqNjRTq9NJGkpS4f1znvZzti1mhwys2hg9xCccm3Kdsj3if+z4+UzoWbmtCFPqkmVuyXLEVf+tJGgtg3b6lmPkfL+j0sjvN4BlgOrWJr97t8PALQ2ORC4CGJD8cYUxXpHrmNBp\ \ Generated-by-Sahara\n\" >> /home/ubuntu//.ssh/authorized_keys\n\n# ======\ \ COMMENT OUT Defaults requiretty in /etc/sudoers ========\nsed '/^Defaults\ \ requiretty*/ s/^/#/' -i /etc/sudoers\n\n\necho 'xxx.xxx.xxx.xxx XXX.XXX.XXX\n\ ' | sudo tee -a /etc/hosts\n\nwhile true; do\n wc_notify --insecure\ \ --data-binary '{\"status\": \"SUCCESS\"}'\n if [ $? -eq 0 ]; then\n\ \ break\n fi\n sleep 10\ndone\n" type: OS::Nova::Server master-36820f4e-wc-handle: {type: 'OS::Heat::WaitConditionHandle'} master-36820f4e-wc-waiter: depends_on: inst properties: handle: {get_resource: master-36820f4e-wc-handle} timeout: 3600 type: OS::Heat::WaitCondition port: properties: name: list_join: - '-' - - scenatest-c22e270c - master-36820f4e - {get_param: instance_index} - port network_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx replacement_policy: AUTO security_groups: - {get_param: autosecgroup} type: OS::Neutron::Port --- "file://worker-b3cbdcd7.yaml": description: 'Data Processing Cluster by Sahara Sahara cluster name: SCENATEST-c22e270c Sahara engine: heat.3.0 Node group worker-b3cbdcd7' heat_template_version: '2016-04-08' outputs: instance: value: name: get_attr: [inst, name] physical_id: {get_resource: inst} parameters: autosecgroup: {type: string} instance_index: {type: string} resources: inst: properties: admin_user: ubuntu flavor: '0' image: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx key_name: scenario_key-852f0477 name: list_join: - '-' - - scenatest-c22e270c - worker-b3cbdcd7 - {get_param: instance_index} networks: - port: {get_resource: port} user_data: str_replace: params: wc_notify: get_attr: [worker-b3cbdcd7-wc-handle, curl_cli] template: "#!/bin/bash\necho \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMRJHQUrh+o1mdkZjNXj5moekwBCQwMOnb01FbSYbFvUgqGSgObmF6zstSqPwf3FN/oHS6a0Cbnl+Edj4KCwEhHW+NNKgdb3HfRomdLN+Uun6q4QjAayG+88vhttLQivAVKDy/AWfXJZ2bgDp3PgK8dRcf67oH+P4C0sDX7w91ZEgGAWVcZo+r6YWqxhQUhygMwARe0/YwYUZdmDqNjRTq9NJGkpS4f1znvZzti1mhwys2hg9xCccm3Kdsj3if+z4+UzoWbmtCFPqkmVuyXLEVf+tJGgtg3b6lmPkfL+j0sjvN4BlgOrWJr97t8PALQ2ORC4CGJD8cYUxXpHrmNBp\ \ Generated-by-Sahara\n\" >> /home/ubuntu//.ssh/authorized_keys\n\n# ======\ \ COMMENT OUT Defaults requiretty in /etc/sudoers ========\nsed '/^Defaults\ \ requiretty*/ s/^/#/' -i /etc/sudoers\n\n\necho 'xxx.xxx.xxx.xxx XXX.XXX.XXX\n\ ' | sudo tee -a /etc/hosts\n\nwhile true; do\n wc_notify --insecure\ \ --data-binary '{\"status\": \"SUCCESS\"}'\n if [ $? -eq 0 ]; then\n\ \ break\n fi\n sleep 10\ndone\n" type: OS::Nova::Server port: properties: name: list_join: - '-' - - scenatest-c22e270c - worker-b3cbdcd7 - {get_param: instance_index} - port network_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx replacement_policy: AUTO security_groups: - {get_param: autosecgroup} type: OS::Neutron::Port worker-b3cbdcd7-wc-handle: {type: 'OS::Heat::WaitConditionHandle'} worker-b3cbdcd7-wc-waiter: depends_on: inst properties: handle: {get_resource: worker-b3cbdcd7-wc-handle} timeout: 3600 type: OS::Heat::WaitCondition