mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-27 22:44:32 +08:00
fix test of Node
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
{config, logger} = app
|
||||
{available_plugins} = config.plugin
|
||||
|
||||
id_key = fs.readFileSync config.ssh.id_key
|
||||
|
||||
module.exports = class Node
|
||||
name: ''
|
||||
master: false
|
||||
@@ -117,7 +119,7 @@ module.exports = class Node
|
||||
connection.connect
|
||||
host: @info.host
|
||||
username: 'rpadmin'
|
||||
privateKey: fs.readFileSync '/home/rpadmin/.ssh/id_rsa'
|
||||
privateKey: id_key
|
||||
|
||||
runCommandRemote: (command, callback) ->
|
||||
@execRemote command, {}, callback
|
||||
|
||||
@@ -49,6 +49,9 @@ module.exports =
|
||||
|
||||
billing: {}
|
||||
|
||||
ssh:
|
||||
id_key: '/home/rpadmin/.ssh/id_rsa'
|
||||
|
||||
nodes:
|
||||
master:
|
||||
host: 'localhost'
|
||||
|
||||
@@ -58,6 +58,9 @@ module.exports =
|
||||
price: 10 / 30
|
||||
prepaid: true
|
||||
|
||||
ssh:
|
||||
id_key: '/home/rpadmin/.ssh/id_rsa'
|
||||
|
||||
nodes:
|
||||
master:
|
||||
host: 'localhost'
|
||||
|
||||
@@ -46,6 +46,9 @@ module.exports =
|
||||
bucket: 100 * 1000 * 1000
|
||||
price: 0.06
|
||||
|
||||
ssh:
|
||||
id_key: '/home/rpadmin/.ssh/id_rsa'
|
||||
|
||||
nodes:
|
||||
master:
|
||||
host: 'localhost'
|
||||
|
||||
@@ -40,8 +40,8 @@ config.web.listen = 12558
|
||||
if process.env.TRAVIS == 'true'
|
||||
config.mongodb.user = undefined
|
||||
config.mongodb.password = undefined
|
||||
|
||||
config.redis.password = undefined
|
||||
config.ssh.id_key = '/home/travis-ci/.ssh/id_rsa'
|
||||
|
||||
global.isPluginEnable = (name) ->
|
||||
return name in config.plugin.available_plugins
|
||||
|
||||
Reference in New Issue
Block a user