Setting up environment

Important

All commands are executed only from superuser.

Mode superuser:

sudo -i

Configured environment is needed for correct installing and setting of modules. Follow below points for configuring:

  1. Packages installing:

    # Debian:
    apt-get install -y python3-pip python3-dev gcc
    

    To install packages on Astra Linux (Smolensk) run the following:

    sudo apt-get install -y python3-pip python3-dev gettext python3-pbr python3-setuptools crudini
    
  2. Setting environment variables:

    export PIP_INDEX_URL=http://pypi.accentos.ru/simple/
    export PIP_TRUSTED_HOST=pypi.accentos.ru
    

    For AccentOS for Astra Linux (Smolensk), connect the repository provided to you with AccentOS packages.

  3. License installation:

    Place provided license file to /etc/aos folder.

  4. Packages installing:

    pip3 install python-subunit
    pip3 install packaging
    pip3 install requestsexceptions
    pip3 install sqlalchemy-migrate
    pip3 install jsonpath-rw-ext
    

    AccentOS for Astra Linux (Smolensk) does not require installation of packages.

  5. Services restarting:

    # Debian, Astra Linux:
    systemctl restart nova-api.service
    systemctl restart apache2
    
  6. Assigning a database password for the root user:

    mysqladmin -u root password 123456
    

    Important

    It is not allowed to use non ASCII characters in logins/passwords for the database.

  7. You can start installing modules after environment setting. We recommend the following installation order for modules when installing without using the Autosetup module:

    1. CloudManager;
    2. Scheduler;
    3. RSserver;
    4. RSclient;
    5. Monitor;
    6. Journal;
    7. Dashboard;
    8. Clouds;
    9. OTPsender.

Note

Also it is needed installed and configured Redis for modules to work correctly. You can get acquainted with description of installation and configuration in appropriate section of documentation.

Absence of access to internet

You need do next steps in case of installing modules to server without access to internet:

  • Download modules and their dependencies on server with access to internet (prerequisite set up environment variables):

    mkdir packages
    pip3 download dashboard monitor cloud-manager scheduler rs-server dashboard-theme pip -d packages
    
  • Copy the packages directory to the server.

Important

On a server without Internet access, it is necessary to ensure the presence of the packages listed in the file: system_packages.txt.