Building an IIAB server requires a number of steps, and there is usually some configuration required at each step:
Choice of OS (operating system), keyboard layout, disk format, and partitioning. IIAB has partitioning requirements.
IIAB takes over after the OS is functioning on the target hardware. This step is usually done at a terminal console or via a ssh remote connection to the newly installed OS. (If all the requirements are in place, this step can be as simple as typing “cd /opt/iiab/iiab” then “./iiab-install”, formerly “./runansible”).
There is some automatic configuration built into IIAB, during this text mode phase. There will almost always be a network connection to the internet left over from the first step. If a second Ethernet or Wi-Fi adapter is discovered, “Gateway” mode will be chosen. If not, the mode selected will be “Appliance”. See the Networking document which reviews three possible modes of operation.
There is also the option of setting a large array of variables that govern the detailed installation process. In most cases, the supplied defaults will be sufficient. Any changes to defaults should be placed in /etc/iiab/local_vars.yml
within /opt/iiab/iiab (See details of variable precedence below).
By default, most software required by the IIAB server is installed during the text mode (step #2), but not enabled. Then the enabling of services, and loading of content, is done during step #3.
Please see the IIAB Variables document, for a more comprehensive take than the 2 sections below.
The ./vars/default_vars.yml (typically within /opt/iiab/iiab) is the first place to look for variables that might control the install process. But the place to make any changes is in /etc/iiab/local_vars.yml. Any variable assignments you make in local_vars.yml will override values in default_vars.yml
In general, there is a <role name>_install
and a <role name>_enabled
variable for each role. (The roles can be found in the directories under /opt/iiab/iiab/roles/). For most roles, during the text mode install phase, the install variable is set to True
, and the enabled variable is set to False
.
There is a hierarchy of places to define variables in Ansible, progressing from lowest precedence to highest:
<role name>/defaults/main.yml
file../vars/default_vars.yml
which gives initial values for repo wide settings, and also many role specific ones. Note: this file may be overwritten by later releases, and should not be modified by the end user./etc/iiab/local_vars.yml
in /opt/iiab/iiab using a text editor such as vi, nano, or emacs. Remember to then run “cd /opt/iiab/iiab” followed by “./iiab-install –reinstall”, formerly “./runansible” (takes ~30min to complete on RPi3, done!) Or, the essential 6 “post-install” roles of Ansible’s 9 overall roles can be run from Admin Console (http://box/admin) -> Configure menu -> Install Configured Options button. Then monitor the progress (~25min on RPi3) within Utilities menu -> Display Job Status.A growing collection of Internet-in-a-Box technical support docs (and eventually videos) are being made available for offline users as well, at http://box/info