Giter Site home page Giter Site logo

misc-online-whatif-install's Introduction

whatif_install

Launches an Online WhatIf server using the automatic installation script.

Terms

In the doco below:  
* ENV = dev | test | prod
* ORG = asu | cityfutures

Installing WhatIf

Clone this repo to an Ansible control server.

Set variables

Check and edit variable values in the inventory file ENV_ORG and corresponding group vars group_vars/ORG and group_vars/ENV_ORG.

Create a new admin password and encrypt it before saving to group_vars/ENV_ORG. The password may contain only lower case letters and digits, judging from the example passwords in the /etc/aurin/envision-combined.properties file:

ansible-vault encrypt_string 'PASSWORD' where PASSWORD is the new password.

Key pair

Use the AWS Console to create a key pair called 'WhatIf' in your AWS EC2 VPN.

Save the key file and copy it to your Ansible control server as ~/.ssh/WhatIf_ORG_ENV.pem.

Make it read-only with chmod 0600 ~/.ssh/WhatIf_ORG_ENV.pem.

Security certificate

Generate a security certificate or request it from your network service provider.

Once available, copy the certificate and private key files to the Ansible Control server, into the sub-directory roles/install_certificate/files.

Build whatif server

Launch the playbook to create and install the whatif server:

ansible_playbook -i ENV_ORG playbook.yml --ask-vault-pass

This will run a collection of playbooks:

  • stack.yml: Create server
  • prep.yml: Prepare server
  • whatif.yml: Install whatif
  • cert.yml: Install security certificate
  • check.yml: Check site is up before exiting

The install process takes about 45 minutes. Most of this is running mvn clean package ... within the installation script install.sh called from the task:

TASK [install_whatif : Install whatif]

You may SSH to the server to check progress on the install. To confirm it is still running:

ps -ef | grep 'clean package'

You should see output like:

root     31761  7899  1 17:08 pts/1    00:00:06 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dmaven.home=/usr/share/maven org.codehaus.plexus.classworlds.launcher.Launcher clean package -Ddeployment=development -Dsystem=ali-dev -Daurin.dir=/etc/aurin

Configuration

Once completed you may login to the workbench:

URL: https://SERVER/workbenchauth
Username: aurin
Password: admin password as set above

Where SERVER is the fully qualified domain name of the server.

Register new users. They will receive an email with instructions for resetting their temporary password and logging in.

User login is at https://SERVER which redirects to https://SERVER/whatif/login.

Troubleshooting

Use view /var/log/tomcat7/catalina.out to check the Tomcat logs for errors.

misc-online-whatif-install's People

Contributors

jondoig avatar

Watchers

James Cloos avatar  avatar Murad Jamal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.