plans and nodes in config file

This commit is contained in:
jysperm
2014-11-27 07:44:36 +08:00
parent 2322d2cc7b
commit aa76676e72
3 changed files with 56 additions and 14 deletions

View File

@@ -32,19 +32,29 @@ module.exports =
t_name: 'plans.sample.name'
t_description: 'plans.sample.description'
billing_by_time:
unit: 24 * 3600 * 1000
price: 10 / 30
available_components: {}
resource_limit: {}
services: []
resources: {}
billing:
time:
interval: 24 * 3600 * 1000
price: 10 / 30
prepaid: true
test:
t_name: 'plans.test.name'
t_description: 'plans.test.description'
services: []
resources: {}
available_components: {}
resource_limit: {}
billing: {}
nodes:
master:
ip: 'localhost'
master: true
available_components: []
mongodb:
user: 'rpadmin'

View File

@@ -32,18 +32,35 @@ module.exports =
t_name: 'plugins.rpvhost.plans.all.name'
t_description: 'plugins.rpvhost.plans.all.description'
billing_by_time:
unit: 24 * 3600 * 1000
price: 10 / 30
available_components:
supervisor: {}
linux:
limit: 1
default: (account) ->
return username: account.username
ssh:
limit:1
default: (account) ->
return username: account.username
services: ['supervisor', 'linux', 'ssh']
resources:
resource_limit:
cpu: 144
storage: 520
transfer: 39
memory: 27
billing:
time:
interval: 24 * 3600 * 1000
price: 10 / 30
prepaid: true
nodes:
master:
ip: 'localhost'
master: true
available_components: []
mongodb:
user: 'rpadmin'
password: 'password'

View File

@@ -32,7 +32,22 @@ module.exports =
t_name: 'plugins.rpvhost.plans.shadowsocks.name'
t_description: 'plugins.rpvhost.plans.shadowsocks.description'
services: ['shadowsocks']
available_components:
shadowsocks:
limit: 1
resource_limit: {}
billing:
'shadowsocks.traffic':
bucket: 100 * 1000 * 1000
price: 0.06
nodes:
master:
ip: 'localhost'
master: true
available_components: []
mongodb:
user: 'rpadmin'