Skip to content

HostYourCreeper/hyc-nw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HostYourCreeper Node Worker

Install

npm install
npm start

Configuration

npm config set hyc-nw:amqp_host "localhost"
npm config set hyc-nw:amqp_user "myuser"
npm config set hyc-nw:amqp_pass "mypass"
npm config set hyc-nw:amqp_vhost "/myapp"
npm config set hyc-nw:amqp_cons_queue "myapp-cons"
npm config set hyc-nw:amqp_prod_queue "myapp-cons"
npm config set hyc-nw:creeper 1

Message formating

Install

{
  command : 'create',
  id : $commande_id,
  vm_number : 11,
  memory : '1024',
  options : {
    backup : 0,
    disk : 0,
    ip: '',
  }
}

Result:

{ 
  command: 'create',
  id: message.id,
  root: passwd[0],
  mc: passwd[1],
  db: passwd[2],
  murmur: passwd[3]
}

Delete

{
  command : 'delete',
  vm_number : 11
}

Start

{
  command : 'start',
  vm_number : 11
}

Stop

{
  command : 'stop',
  vm_number : 11
}

Password

{
  command : 'password',
  id : $commande_id,
  vm_number : 11
}

Result:

{
  command : 'password',
  id: message.id,
  passwd : passwd
}

Dedicated IP

{
  command : 'dedicated_ip',
  vm_number : 11,
  ip: '127.0.0.1',
}
{
  command : 'dedicated_ip',
  vm_number : 11,
  ip: '',
}

About

Daemon for managing Xen VM creation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published