solar-resources/templates/not_provisioned_nodes/1.0.0/not_provisioned_nodes.yaml
Łukasz Oleś 25dc2685f5 Refactor VirtualResources
- rename VirtualResource to Composer
- rename event parameter depend_action to child_action
- rename values parameter to input

Closes-bug: #1526780

Change-Id: Ib974e14ff4bda44c2d7d991f62aa4a06dea160ea
2015-12-29 16:50:46 +01:00

44 lines
1.3 KiB
YAML

id: not_provisioned_nodes
resources:
#% for node in nodes %#
#% set id = node.id | replace(':', '_') %#
- id: ssh_transport#{ id }#
from: resources/transport_ssh
input:
ssh_user: 'root'
ssh_key: '/vagrant/tmp/keys/ssh_private'
- id: transports#{id}#
from: resources/transports
input:
transports:key: ssh_transport#{id}#::ssh_key
transports:user: ssh_transport#{id}#::ssh_user
transports:port: ssh_transport#{id}#::ssh_port
transports:name: ssh_transport#{id}#::name
- id: node_#{id}#
from: resources/not_provisioned_node
input:
ip: #{node.ip}#
transports_id: transports#{id}#::transports_id
name: node_#{id}#
admin_mac: #{node.mac}#
#% endfor %#
- id: ssh_transport_master
from: resources/transport_ssh
input:
ssh_user: 'vagrant'
ssh_key: '/vagrant/.vagrant/machines/solar-dev/virtualbox/private_key'
- id: transports_master
from: resources/transports
input:
transports:key: ssh_transport_master::ssh_key
transports:user: ssh_transport_master::ssh_user
transports:port: ssh_transport_master::ssh_port
transports:name: ssh_transport_master::name
- id: node_master
from: resources/ro_node
input:
name: node_master
ip: '10.0.2.15'
transports_id: transports_master::transports_id