3 navsection: installguide
4 title: Planning and prerequisites
7 Copyright (C) The Arvados Authors. All rights reserved.
9 SPDX-License-Identifier: CC-BY-SA-3.0
12 # "Introduction":#introduction
13 # "Provisioning Arvados with Saltstack":#provisioning_arvados
14 # "The provisioning tool files and directories":#provisioning_tool_files and directories
15 # "Choose an Arvados installation configuration":#choose_configuration
16 ## "Further customization of the installation (modifying the salt pillars and states)":#further_customization
17 # "Dump the configuration files created with the provision script":#dump_provision_config
18 # "Add the Arvados formula to your Saltstack infrastructure":#add_formula_to_saltstack
20 h2(#introduction). Introduction
22 {% include 'branchname' %}
24 To ease the installation of the various Arvados components, we have developed a "Saltstack":https://www.saltstack.com/ 's "arvados-formula":https://git.arvados.org/arvados-formula.git which can help you get an Arvados cluster up and running.
26 Saltstack is a Python-based, open-source software for event-driven IT automation, remote task execution, and configuration management. It can be used in a _master/minion_ setup (where a master node orchestrates and coordinates the configuration of nodes in an infrastructure) or <i>master-less</i>, where Saltstack is run locally in a node, with no communication with a master node.
28 Similar to other configuration management tools like Puppet, Ansible or Chef, Saltstack uses files named <i>states</i> to describe the tasks that will be performed on a node to take it to a desired state, and <i>pillars</i> to configure variables passed to the states, adding flexibility to the tool.
30 You don't need to be running a Saltstack infrastructure to install Arvados: we wrote a provisioning script that will take care of setting up Saltstack in the node/s where you want to install Arvados and run a <i>master-less installer</i>. Once Arvados is installed, you can either uninstall Saltstack and its files or you can keep them, to modify/maintain your Arvados installation in the future.
32 This is a package-based installation method.
34 h2(#provisioning_arvados). Provisioning Arvados with Saltstack
36 The "tools/salt-install":https://git.arvados.org/arvados.git/tree/{{ branchname }}:/tools/salt-install directory in the Arvados git repository contains a script that you can run in the node/s where you want to install Arvados' components (the @provision.sh@ script) and a few configuration examples for different setups, that you can use to customize your installation.
38 The @provision.sh@ script will help you deploy Arvados by preparing your environment to be able to run the installer, then running it. The actual installer is located at "arvados-formula":https://git.arvados.org/arvados-formula.git/tree/refs/heads/{{ branchname }} and will be cloned during the running of the @provision.sh@ script. The installer is built using "Saltstack":https://saltproject.io/ and @provision.sh@ performs the install using master-less mode.
40 After setting up a few variables in a config file and copying a directory from the examples (see below), you'll be ready to run it and get Arvados deployed.
44 h2(#provisioning_tool_files and directories). The provisioning tool files and directories
46 The "tools/salt-install":https://git.arvados.org/arvados.git/tree/{{ branchname }}:/tools/salt-install directory contains the following elements:
48 * The @provision.sh@ script itself. You don't need to modify it.
49 * A few @local.params.*@ example files. You will need to copy one of these files to a file named @local.params@, which is the main configuration file for the @provision.sh@ script.
50 * A few @config_examples/*@ directories, with pillars and states templates. You need to copy one of these to a @local_config_dir@ directory, which will be used by the @provision.sh@ script to setup your nodes.
51 * A @tests@ directory, with a simple workflow and arvados CLI commands you can run to tests your cluster is capable of running a CWL workflow, upload files and create a user.
53 Once you decide on an Arvados architecture you want to apply, you need to copy one of the example configuration files and directory, and edit them to suit your needs.
55 Ie., for a multi-hosts / multi-hostnames in AWS, you need to do this:
57 <pre><code>cp local.params.example.multiple_hosts local.params
58 cp -r config_examples/multi_host/aws local_config_dir
62 These local files will be preserved if you upgrade the repository.
66 h2(#choose_configuration). Choose an Arvados installation configuration
68 The configuration examples provided with this installer are suitable to install Arvados with the following distribution of hosts/roles:
70 * All roles on a single host, which can be done in two fashions:
71 ** Using a single hostname, assigning <i>a different port (other than 443) for each user-facing service</i>: This choice is easier to setup, but the user will need to know the port/s for the different services she wants to connect to. See "Single host install using the provision.sh script":salt-single-host.html for more details.
72 ** Using multiple hostnames on the same IP: this setup involves a few extra steps but each service will have a meaningful hostname so it will make easier to access them later. See "Single host install using the provision.sh script":salt-single-host.html for more details.
73 * Roles distributed over multiple AWS instances, using multiple hostnames. This example can be adapted to use on-prem too. See "Multiple hosts installation":salt-multi-host.html for more details.
75 Once you decide which of these choices you prefer, copy one of the example configuration files and directory, and edit them to suit your needs.
77 Ie, if you decide to install Arvados on a single host using multiple hostnames:
79 <pre><code>cp local.params.example.single_host_multiple_hostnames local.params
80 cp -r config_examples/single_host/multiple_hostnames local_config_dir
84 Edit the variables in the <i>local.params</i> file.
88 h3(#further_customization). Further customization of the installation (modifying the salt pillars and states)
90 If you want or need further customization, you can edit the Saltstack pillars and states files. Pay particular attention to the <i>pillars/arvados.sls</i> one. Any extra <i>state</i> file you add under <i>local_config_dir/states</i> will be added to the salt run and applied to the host.
94 h2(#dump_provision_config). Dump the configuration files created with the provision script
96 As mentioned above, the @provision.sh@ script helps you create a set of configuration files to be used by the Saltstack @arvados-formula@ and other helper formulas.
98 Is it possible you want to inspect these files before deploying them or use them within your existing Saltstack environment. In order to get a rendered version of these files, the @provision.sh@ script has a option, @--dump-config@, which takes a directory as mandatory parameter. When this option it used, the script will create the specified directory and write the pillars, states and tests files so you can inspect them.
102 <pre><code>./provision.sh --dump-config ./config_dump --role workbench
106 will dump the configuration files used to install a workbench node under the @config_dump@ directory.
108 These files are also suitable to be used in your existing Saltstack environment (see below).
112 h2.(#add_formula_to_saltstack). Add the Arvados formula to your Saltstack infrastructure
114 If you already have a Saltstack environment you can add the arvados-formula to your Saltstack master and apply the corresponding states and pillars to the nodes on your infrastructure that will be used to run Arvados.
116 The @--dump-config@ option described above writes a @pillars/top.sls@ and @salt/top.sls@ files that you can use as a guide to configure your infrastructure.