resources:
+ wait_condition:
+ type: OS::Heat::WaitCondition
+ properties:
+ handle: {get_resource: wait_handle}
+ count: 1
+ timeout: 300
+
+ wait_handle:
+ type: OS::Heat::WaitConditionHandle
+
public_port:
type: OS::Neutron::Port
properties:
floating_network_id: { get_param: public_net }
port_id: { get_resource: public_port }
- jenkins-slave:
+ node:
type: OS::Nova::Server
properties:
image: { get_param: image }
mkdir -p /etc/jenkins-agent/
echo "$FLAVOR $LABELS" > /etc/jenkins-agent/labels
echo "127.0.0.1 $(hostname)" >> /etc/hosts
+ wc_notify --data-binary '{"status": "SUCCESS"}'
params:
$FLAVOR: {get_param: flavor}
$LABELS: {get_param: jenkins_labels}
+ wc_notify: { get_attr: [wait_handle, curl_cli] }
+
outputs:
floating_ip: