Skip to content

danarchy85/danarchy_sys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# DanarchySys

Welcome to dAnarchy Systems! This gem will assist you in easing the setup of OpenStack instances for use of hosting various web applications.

## Installation

# Pull the gem from RubyGems.org
gem install danarchy_sys

# Run 'danarchy_sys' and a first-time setup will prompt you for your connection settings.
 ~ $ danarchy_sys
No existing configuration found!
Creating a new OpenStack connection!
OpenStack Auth URL      (Example: http://openstack-host.com:5000/v2.0/tokens)
Enter URL: http://your_openstack_host.com:5000/v2.0/tokens
OpenStack Username: your_openstack_username
OpenStack API Key: your_openstack_api_key
OpenStack Tenant ID: your_openstack_tenant_id
Configuration has been saved!


dAnarchySys config file follows a JSON format like this:

{
  "accounts": {
    "your_account": {
      "openstack_auth_url": "http://openstack-provider.com:5000/v2.0/tokens",
      "openstack_username": "openstack_username",
      "openstack_api_key": "openstack_api_key",
      "openstack_tenant": "openstack_tenant"
    },
  },
  "global_settings": {
    "ssh_key_path": "/home/dan/.danarchy_sys/ssh"
  }
}

# Once configuration finishes you will enter the main CLI for dAnarchy_sys.

## Usage

 ~ $ danarchy_sys
OpenStack -> danarchy_dreamcompute
dAnarchy_sys main menu commands:
Enter 'help' to view available commands or 'exit' to leave.
1. instance: Instance Manager
2.  keypair: Keypair Manager (Not yet implemented!)
3.     help: Outputs commands for current the menu level
4.     exit: Exit dAnarchy_sys
command ~: instance
Instance Manager: enter 'help' to view available commands or 'main' for the main menu.
Available instances:
Id Name                   State   Image    VCPUS    RAM      Disk     KeyPair
1. danarchysys_debian     ACTIVE  Debian-8 1        512      80       danarchy_sys
2. cephmnt1               SHUTOFF Debian-8 2        4096     80       danarchy_sys
Enter an instance to manage or enter a name for a new instance: 1
Instance Manager commands:
Enter 'help' to view available commands or 'back' for the main menu.
1.   status: Current running status of instance
2.  connect: Connect to instance through SSH
3.    start: Start a currently stopped instance
4.     stop: Stop a currently running instance
5.    pause: Pause instance (to RAM)
6.  unpause: Unpause instance from paused state
7.  suspend: Suspend Instance (to disk)
8.   resume: Resume instance from suspended state
9.   create: Create a new instance
10.  delete: Delete this instance
Managing instance: danarchysys_debian   Status: ACTIVE
danarchysys_debian ~: connect

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian@danarchysys-debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.8 (jessie)
Release:        8.8
Codename:       jessie

debian@danarchysys-debian:~$ exit
logout
Connection to 208.113.165.181 closed.
danarchysys_debian ~: exit
Exiting!


## Contributing

Bug reports are welcome on GitHub at https://github.com/danarchy85/danarchy_sys.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

About

An interactive CLI console for OpenStack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages