Giter Site home page Giter Site logo

oae-provision's Introduction

OAE provision and deploy instructions

Project status

CodeFactor Maintainability FOSSA Status

STATUS: Currently only multi-server setup is properly configured. Single-server installation is not.

Requirements

  • Node (tested with 10.15.1)
  • Ansible

Usage

The esup.yml file mentioned below is not available publicly. It is specific to ESUP Portail deployment setup.

First, be sure to look at the hosts file and make sure you have it adapted to your environment. This includes all the hostnames for staging and production.

However, there are different settings one must adapt for each environment.

For experimental, run ansible-playbook -i hosts oae.yml --ask-become-pass -v && say "finished deploying" and it will ask for the sudo password. The say command is optional, of course.

For staging, use the correspondent configuration setup file. In the case that file is esup.yml, then run the following:

ansible-playbook -i hosts esup.yml --ask-become-pass && say "finished deploying"

if you want to run ansible with a specific user

ansible-playbook -i hosts esup.yml --ask-become-pass --user oae && say "finished deploying"

If you want to run just a specific set of tasks, use tags like this:

ansible-playbook -i hosts esup.yml --ask-become-pass --tags=cassandra && say "finished deploying"

Check out the tags on the config file (such as esup.yml).

Before you deploy

Make sure all the variables in the /roles/_EVERY_SERVER_/vars/ are accurate. For example:

In esup.yml you'll find variables such as create_cert: false that controls whether to create an SSL cert for nginx after install or create_nfs_mount: false that creates the nfs mount for 3akai-ux and Hilary to share files. You probably just need both these variables set the first time. The same is valid for the variable create_nfs_mount, which is supposed to be a first-time only setting.

Sometimes you'll see this too:

- hosts: esup-cache
  vars:
    - production: true
  roles:
  ...

Don't forget to change this as well. The production flag often means that you're setting up a multi-server environment. For elasticsearch and redis that means that we're making them exposed the remote connections by adding special configuration on the fly.

All in all, make sure you understand and review every variable in every vars/main.yml file before using this.

Upgrading node

If you need to update the node version on the hilaryX target machines, follow this:

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

This works for node 12, but you can check the instructions for other versions here

Bugs and missing features

There is this one issue with PM2 currently preventing from using cluster mode with ESM (link here). For now we need to use fork mode or just one instance.

License

FOSSA Status

oae-provision's People

Watchers

 avatar  avatar

oae-provision's Issues

Depfu Error: No dependency files found

Hello,

We've tried to activate or update your repository on Depfu and couldn't find any supported dependency files. If we were to guess, we would say that this is not actually a project Depfu supports and has probably been activated by error.

Monorepos

Please note that Depfu currently only searches for your dependency files in the root folder. We do support monorepos and non-root files, but don't auto-detect them. If that's the case with this repo, please send us a quick email with the folder you want Depfu to work on and we'll set it up right away!

How to deactivate the project

  • Go to the Settings page of either your own account or the organization you've used
  • Go to "Installed Integrations"
  • Click the "Configure" button on the Depfu integration
  • Remove this repo (oaeproject/oae-provision) from the list of accessible repos.

Please note that using the "All Repositories" setting doesn't make a lot of sense with Depfu.

If you think that this is a mistake

Please let us know by sending an email to [email protected].


This is an automated issue by Depfu. You're getting it because someone configured Depfu to automatically update dependencies on this project.

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.