Removed ssh_ prefix in ssh transports
Closes-bug: 1537093
This commit is contained in:
parent
00648db621
commit
735e7811e1
@ -33,6 +33,7 @@ def setup_riak():
|
|||||||
ModelMeta.remove_all()
|
ModelMeta.remove_all()
|
||||||
resources = cr.create('nodes', 'templates/nodes', {'count': 3})
|
resources = cr.create('nodes', 'templates/nodes', {'count': 3})
|
||||||
nodes = resources.like('node')
|
nodes = resources.like('node')
|
||||||
|
|
||||||
hosts_services = resources.like('hosts_file')
|
hosts_services = resources.like('hosts_file')
|
||||||
node1, node2, node3 = nodes
|
node1, node2, node3 = nodes
|
||||||
|
|
||||||
@ -217,9 +218,9 @@ def add_solar_agent(i):
|
|||||||
# install solar_agent with ssh
|
# install solar_agent with ssh
|
||||||
signals.connect(transports_for_solar_agent, solar_agent_transport, {})
|
signals.connect(transports_for_solar_agent, solar_agent_transport, {})
|
||||||
|
|
||||||
signals.connect(ssh_transport, transports_for_solar_agent, {'ssh_key': 'transports:key',
|
signals.connect(ssh_transport, transports_for_solar_agent, {'key': 'transports:key',
|
||||||
'ssh_user': 'transports:user',
|
'user': 'transports:user',
|
||||||
'ssh_port': 'transports:port',
|
'port': 'transports:port',
|
||||||
'name': 'transports:name'})
|
'name': 'transports:name'})
|
||||||
|
|
||||||
# add solar_agent to transports on this node
|
# add solar_agent to transports on this node
|
||||||
|
@ -20,8 +20,8 @@ def run():
|
|||||||
transports_for_solar_agent = cr.create('transports_for_solar_agent', 'resources/transports')[0]
|
transports_for_solar_agent = cr.create('transports_for_solar_agent', 'resources/transports')[0]
|
||||||
|
|
||||||
ssh_transport = cr.create('ssh_transport', 'resources/transport_ssh',
|
ssh_transport = cr.create('ssh_transport', 'resources/transport_ssh',
|
||||||
{'ssh_key': '/vagrant/.vagrant/machines/solar-dev1/virtualbox/private_key',
|
{'key': '/vagrant/.vagrant/machines/solar-dev1/virtualbox/private_key',
|
||||||
'ssh_user': 'vagrant'})[0]
|
'user': 'vagrant'})[0]
|
||||||
|
|
||||||
solar_agent_transport = cr.create('solar_agent_transport', 'resources/transport_solar_agent',
|
solar_agent_transport = cr.create('solar_agent_transport', 'resources/transport_solar_agent',
|
||||||
{'solar_agent_user': 'vagrant',
|
{'solar_agent_user': 'vagrant',
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
input:
|
input:
|
||||||
ssh_key:
|
key:
|
||||||
schema: str
|
schema: str
|
||||||
value:
|
value:
|
||||||
ssh_password:
|
password:
|
||||||
schema: str
|
schema: str
|
||||||
value:
|
value:
|
||||||
ssh_user:
|
user:
|
||||||
schema: str!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
ssh_port:
|
port:
|
||||||
schema: int!
|
schema: int!
|
||||||
value: 22
|
value: 22
|
||||||
name:
|
name:
|
||||||
|
@ -5,9 +5,9 @@ resources:
|
|||||||
- id: ssh_transport#{j}#
|
- id: ssh_transport#{j}#
|
||||||
from: resources/transport_ssh
|
from: resources/transport_ssh
|
||||||
input:
|
input:
|
||||||
ssh_user: 'vagrant'
|
user: 'vagrant'
|
||||||
ssh_key: '/vagrant/.vagrant/machines/solar-dev#{j}#/virtualbox/private_key'
|
key: '/vagrant/.vagrant/machines/solar-dev#{j}#/virtualbox/private_key'
|
||||||
ssh_password: null
|
password: null
|
||||||
- id: rsync#{j}#
|
- id: rsync#{j}#
|
||||||
from: resources/transport_rsync
|
from: resources/transport_rsync
|
||||||
input:
|
input:
|
||||||
@ -18,11 +18,11 @@ resources:
|
|||||||
from: resources/transports
|
from: resources/transports
|
||||||
input:
|
input:
|
||||||
transports:
|
transports:
|
||||||
- key: ssh_transport#{j}#::ssh_key
|
- key: ssh_transport#{j}#::key
|
||||||
user: ssh_transport#{j}#::ssh_user
|
user: ssh_transport#{j}#::user
|
||||||
port: ssh_transport#{j}#::ssh_port
|
port: ssh_transport#{j}#::port
|
||||||
name: ssh_transport#{j}#::name
|
name: ssh_transport#{j}#::name
|
||||||
password: ssh_transport#{j}#::ssh_password
|
password: ssh_transport#{j}#::password
|
||||||
- key: rsync#{j}#::key
|
- key: rsync#{j}#::key
|
||||||
name: rsync#{j}#::name
|
name: rsync#{j}#::name
|
||||||
user: rsync#{j}#::user
|
user: rsync#{j}#::user
|
||||||
|
@ -5,14 +5,14 @@ resources:
|
|||||||
- id: ssh_transport#{ id }#
|
- id: ssh_transport#{ id }#
|
||||||
from: resources/transport_ssh
|
from: resources/transport_ssh
|
||||||
input:
|
input:
|
||||||
ssh_user: 'root'
|
user: 'root'
|
||||||
ssh_key: '/vagrant/tmp/keys/ssh_private'
|
key: '/vagrant/tmp/keys/ssh_private'
|
||||||
- id: transports#{id}#
|
- id: transports#{id}#
|
||||||
from: resources/transports
|
from: resources/transports
|
||||||
input:
|
input:
|
||||||
transports:key: ssh_transport#{id}#::ssh_key
|
transports:key: ssh_transport#{id}#::key
|
||||||
transports:user: ssh_transport#{id}#::ssh_user
|
transports:user: ssh_transport#{id}#::user
|
||||||
transports:port: ssh_transport#{id}#::ssh_port
|
transports:port: ssh_transport#{id}#::port
|
||||||
transports:name: ssh_transport#{id}#::name
|
transports:name: ssh_transport#{id}#::name
|
||||||
- id: node_#{id}#
|
- id: node_#{id}#
|
||||||
from: resources/not_provisioned_node
|
from: resources/not_provisioned_node
|
||||||
@ -26,14 +26,14 @@ resources:
|
|||||||
- id: ssh_transport_master
|
- id: ssh_transport_master
|
||||||
from: resources/transport_ssh
|
from: resources/transport_ssh
|
||||||
input:
|
input:
|
||||||
ssh_user: 'vagrant'
|
user: 'vagrant'
|
||||||
ssh_key: '/vagrant/.vagrant/machines/solar-dev/virtualbox/private_key'
|
key: '/vagrant/.vagrant/machines/solar-dev/virtualbox/private_key'
|
||||||
- id: transports_master
|
- id: transports_master
|
||||||
from: resources/transports
|
from: resources/transports
|
||||||
input:
|
input:
|
||||||
transports:key: ssh_transport_master::ssh_key
|
transports:key: ssh_transport_master::key
|
||||||
transports:user: ssh_transport_master::ssh_user
|
transports:user: ssh_transport_master::user
|
||||||
transports:port: ssh_transport_master::ssh_port
|
transports:port: ssh_transport_master::port
|
||||||
transports:name: ssh_transport_master::name
|
transports:name: ssh_transport_master::name
|
||||||
- id: node_master
|
- id: node_master
|
||||||
from: resources/ro_node
|
from: resources/ro_node
|
||||||
|
Loading…
Reference in New Issue
Block a user