vlead / ovpl

ADS - Automated Deployment Service
MIT License
0 stars 22 forks source link

** Edit the =ovpl/config/= directory Copy =ovpl/config/sample_config.json= to =ovpl/config/config.json= and make the following changes:

+begin_src example

"COOKIE_SECRET": "",

+end_src

+begin_src example

"ADAPTER_TO_USE" : {"POOLID" : 1, "ADAPTERID" : 2}

+end_src

** Settings for =base_config=

  1. Copy =config/adapters/sample_base_config.py= to =config/adapters/base_config.py=. For =aws_adapter=, no change in this file has to be done. For =centos_openvz_adapter= and =centos_bridged_adapter= make the following changes in the file:

    1. If the services are running on the base machine, set =ADS_ON_CONTAINER= to False and copy public key (id_rsa.pub) to authorized_keys

    2. If the services are running on a container, set =ADS_ON_CONTAINER= to True and copy the public key of the container to the authorized_keys of the base machine.

    3. Set BASE_IP_ADDRESS = "root@" where IP is the ip address of base machine on which containers are created.

    4. Set ADS_SERVER_VM_ID to CTID of container running ADS. ADS_SERVER_VM_ID = ""

    5. SUBNET field to match with the subnet of your base machine If the ip address of your base machine is 10.2.58.XXX, SUBNET = ["10.2.58.12/28"]

    6. =ADAPTER_NAME_SERVER=, set the field to a specific nameserver that is used in the cluster or leave it as 'inherit' to use the nameserver configuration from the base machine.

    7. =SECRET_KEY=, used to authenticate the ADS WEB APP.

** Settings for =centos_bridged_adapter= Copy =config/adapters/sample_centos_bridged_config.py= to =config/adapters/centos_bridged_config.py=, and change the =SUBNET_BRIDGE= in the file.

** Settings for =centos_openvz_adapter=

** Commands to Manage the Service

+begin_example

$ cd ovpl $ ./manage_services.sh start LOGGER

+end_example

** Setting up ADS-web-app *** Install dependencies This assumes apache server is installed. If not, please install the apache server.

+BEGIN_EXAMPLE

sudo su - yum update -y yum install epel-release yum install "mod_wsgi" -y yum install python-pip cd /root/ovpl/src/ads-web-app python setup.py install

rsync -avz --progress /root/ovpl/src/ads-web-app /var/www/html/ chmod -R 777 /var/www/html/ads-web-app

+END_EXAMPLE

*** Setup Google Oauth credentials

+END_SRC

*** Setup ADS credentials

+END_SRC

- Add emails ids to =AUTHORIZED_USERS=

+BEGIN_SRC

AUTHORIZED_USERS = [ "heregoesemail@gmail.com" ]

+END_SRC

*** Access =ADS= from browser

** Other related documentation: Steps to manually create a container

  1. vzctl create 101 --ostemplate ubuntu-12.04-custom-x86_64 --ipadd 10.2.58.3 --diskspace 10G:15.0G --hostname cse02.vlabs.ac.in
  2. vzctl start 101
  3. vzctl set 101 --nameserver inherit --ram 256M --swap 512M --onboot yes --save