Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Latest commit

 

History

History
103 lines (64 loc) · 3.88 KB

mirror-mode.mkd

File metadata and controls

103 lines (64 loc) · 3.88 KB

Mirror mode allows you to deploy your OBM infrastructure without internet access on remote hosts.

It can also help you to work on obm-deploy without internet access (eg. in the train).

Be careful ! Currently, mirror mode only supports OBM 2.x.

Table of contents


How it works [▲](#top-page "back to top") ============

The main goal of mirror-mode is to make a copy of all packages and files involved in the installation process on you own computer.

Then, it redirects remote hosts repositories to your computer by modifying their /etc/hosts file and by updating download URLs when needed.


Install the source system [▲](#top-page "back to top") =========================

First, you need to install an obmfull system on a remote host with Internet access.

It will be used to copy all needed packages to your local computer.

It's required to use the default obmfull-example without any customization.

For more information about this step, please refer to our quickstart guide.

$ ansible-playbook -i obmfull-example obm.yml


Ensure your remote hosts have access to your computer [▲](#top-page "back to top") =====================================================

We can't help you at this point.


Build ressources directory [▲](#top-page "back to top") ==========================

To build your ressources directory, you need to use the provided shell script.


Install a fully fonctionnal web server [▲](#top-page "back to top") ======================================

We can't help you at this point.


Configure needed virtualhosts [▲](#top-page "back to top") =============================

A sample nginx configuration file can be found [here].

An Apache configuration will be provided as soon as possible.


Manually install libselinux-python on remote hosts [▲](#top-page "back to top") ==================================================

The most important limitation of mirror-mode is that it can't deploy libselinux-python by itself on remote hosts.

You need to install it manually using your favorite package manager or integrate it into your VM templates.


Sync time using your own computer (optional) [▲](#top-page "back to top") ============================================

If you have a functionnal NTP server on your computer and want to keep remote hosts in sync with it, you can specify your own IP address in config.yml using the ntp_server variable.

Otherwise, remote hosts will be synced only once, when you install them.