Giter Site home page Giter Site logo

tiagocamargo / i-educar-ansible-install Goto Github PK

View Code? Open in Web Editor NEW

This project forked from msoares94/i-educar-ansible-playbook

0.0 0.0 0.0 31 KB

Project to automate the installation of Public Software i-Educar - https://ieducar.org

License: GNU General Public License v3.0

HTML 25.58% Jinja 74.42%

i-educar-ansible-install's Introduction

In Portuguese

Install i-Educar with Ansible

Project to automate the installation of Public Software i-Educar.

Project Status: Under development โš ๏ธ

Table of Contents


Project description

Project to automate the installation of Public Software i-Educar.


Prerequisites

  • The command cannot be executed on the installation target server as during the installation process the server is restarted.

Authentication mode on the target server

  • SSH keys

    SSH Generate Key

    • ssh-keygen -t rsa

    Set key permission

    • chmod 400 ~/.ssh/id_rsa

    Add key in server

    • ansible-playbook add-key.yml -i inventory --key-file ~/.ssh/id_rsa --extra-vars "key=~/.ssh/id_rsa.pub"
  • Password

    There are no steps to be performed!


Running the playbook

  • Server target with ssh keys

    ansible-playbook playbook.yml -i inventory --key-file ~/.ssh/id_rsa

  • Server target with password

    ansible-playbook playbook.yml -i inventory --ask-pass


Role variables

# System
system_locale: pt_BR.UTF-8
system_language: pt_BR.UTF-8
system_time_zone: America/Sao_Paulo

# Composer
composer_version: 2.2.11

# PHP
php_version: 7.4

# i-Educar
ieducar_version: 2.6.9

# Postgresql
postgresql_version: 13
postgresql_encoding: 'UTF-8'
postgresql_locale: 'pt_BR.UTF-8'
postgresql_recreate_cluster: true

# pg_hba.conf
    postgresql__pg_hba_entries:
    - { type: local, database: all, user: postgres, address: '', auth_method: peer }
    - { type: local, database: all, user: all, address: '', auth_method: peer }
    - { type: host, database: all, user: all, address: '127.0.0.1/32', auth_method: md5 }
    - { type: host, database: all, user: all, address: all, auth_method: md5 }
    - { type: host, database: all, user: all, address: '::1/128', auth_method: md5 }
    # starting version 10 there is replication role
    - { type: local, database: replication, user: all, address: '', auth_method: peer }
    - { type: host, database: replication, user: all, address: '127.0.0.1/32', auth_method: md5 }
    - { type: host, database: replication, user: all, address: '::1/128', auth_method: md5 }

# postgresql.conf
    postgresql__global_conf_options:
    - option: listen_addresses
        value: '*'
    - option: log_min_duration_statement
        value: 1000
    - option: max_connections
        value: 250
    - option: shared_buffers
        value: 256MB
    - option: effective_cache_size
        value: 768MB
    - option: maintenance_work_mem
        value: 64MB
    - option: checkpoint_completion_target
        value: 0.9
    - option: wal_buffers
        value: 7864kB
    - option: default_statistics_target
        value: 100
    - option: random_page_cost
        value: 1.1
    - option: effective_io_concurrency
        value: 200
    - option: work_mem
        value: 524kB
    - option: min_wal_size
        value: 1GB
    - option: max_wal_size
        value: 4GB

Dependencies

  • Ansible Core 2.12.4
  • Python 3.8.10

License

GNU GENERAL PUBLIC LICENSE v3

Author information

Marcos Oliveira Soares

Donate

Help keep this project going!

Key PIX: 1d60a324-d92f-400e-b3df-40a427288b4b

i-educar-ansible-install's People

Contributors

msoares94 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.