|
1 | 1 | tosca_definitions_version: cloudify_dsl_1_3 |
2 | 2 |
|
3 | 3 | imports: |
4 | | - - http://www.getcloudify.org/spec/cloudify/4.3.1/types.yaml |
5 | | - - https://raw.githubusercontent.com/cloudify-incubator/cloudify-utilities-plugin/1.9.2/plugin.yaml |
6 | | - - https://raw.githubusercontent.com/cloudify-incubator/cloudify-libvirt-plugin/0.5.0/plugin.yaml |
| 4 | + - http://www.getcloudify.org/spec/cloudify/4.4/types.yaml |
| 5 | + - https://raw.githubusercontent.com/cloudify-incubator/cloudify-utilities-plugin/1.9.5/plugin.yaml |
| 6 | + - https://raw.githubusercontent.com/cloudify-incubator/cloudify-libvirt-plugin/0.6.0/plugin.yaml |
7 | 7 |
|
8 | 8 | inputs: |
9 | 9 |
|
@@ -111,3 +111,39 @@ node_templates: |
111 | 111 | type: cloudify.libvirt.relationships.connected_to |
112 | 112 | - target: disk_clone |
113 | 113 | type: vm_connected_to_storage |
| 114 | + |
| 115 | + example_node: |
| 116 | + type: cloudify.nodes.WebServer |
| 117 | + interfaces: |
| 118 | + cloudify.interfaces.lifecycle: |
| 119 | + create: |
| 120 | + implementation: terminal.cloudify_terminal.tasks.run |
| 121 | + inputs: |
| 122 | + terminal_auth: |
| 123 | + user: centos |
| 124 | + password: { get_input: agent_password } |
| 125 | + ip: { get_attribute: [qemu_vm, ip] } |
| 126 | + calls: |
| 127 | + - action: uname -a |
| 128 | + cloudify.interfaces.freeze: |
| 129 | + fs_prepare: |
| 130 | + implementation: terminal.cloudify_terminal.tasks.run |
| 131 | + inputs: |
| 132 | + terminal_auth: |
| 133 | + user: centos |
| 134 | + password: { get_input: agent_password } |
| 135 | + ip: { get_attribute: [qemu_vm, ip] } |
| 136 | + calls: |
| 137 | + - action: sudo sync |
| 138 | + fs_finalize: |
| 139 | + implementation: terminal.cloudify_terminal.tasks.run |
| 140 | + inputs: |
| 141 | + terminal_auth: |
| 142 | + user: centos |
| 143 | + password: { get_input: agent_password } |
| 144 | + ip: { get_attribute: [qemu_vm, ip] } |
| 145 | + calls: |
| 146 | + - action: sudo sync |
| 147 | + relationships: |
| 148 | + - target: qemu_vm |
| 149 | + type: cloudify.relationships.contained_in |
0 commit comments