Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.44 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.44 KB

This project is a template for igloo application deployment

Initialize a new project

  • checkout a raw igloo-ansible project. Rename project folder as it is named to initialize virtualenv (bootstrap.sh script).

  • delete .gitmodules and dependencies/igloo-ansible-playbooks and add it as a submodule

    • git submodule add [email protected]:igloo-project/igloo-ansible-playbooks
    • git submodule update --init --remote
  • rename boostrap/igloo_ansible to bootstrap/myproject.

  • in bootstrap/pyproject.toml, rename igloo-ansible (2 occurrences) to myproject.

  • run ./bootstrap/bootstrap.sh:

    • this script installs a miniconda environment with myproject command.
    • myproject command is handled by clickables.py file.
    • run the provided command at the end for the script for environment activation: source ....
  • update inventory/hosts for vagrant hostnames and your deployment hostnames

  • add debian hosts in debian group

  • copy 01-igloo-minimal.yml and rename it to minimal.yml and update configuration.

  • 01-igloo-extra.yml and 01-igloo-private.yml can be used to customize more items.

  • rename folders/files in group_vars and host_vars and override values when needed

    • update ssl certificates' related values
    • update ansible_user used for ssh connection

Migration for old project

  • renamed: playbook_environment -> playbook_maven_environment and playbook_profile
  • try to minimize overrided configurations