|
4 | 4 | Development |
5 | 5 | *********** |
6 | 6 |
|
7 | | -In the :ref:`deploy_quickstart` section we have seen how |
8 | | -to deploy a ``manager`` virtual machine. You can also deploy |
9 | | -the whole system. For instance, to deploy a development system |
10 | | -composed of three virtual machines (``manager``, ``as`` and ``ms``), |
11 | | -pass ``discos:development`` to the ``discos-deploy`` script: |
| 7 | +Machines deployment |
| 8 | +=================== |
| 9 | +In the :ref:`deploy_quickstart` section we have seen how to deploy a |
| 10 | +``manager`` virtual machine. You can also deploy the whole control system. |
| 11 | +For instance, to deploy a development system composed of three virtual machines |
| 12 | +(``manager``, ``console`` and ``storage``), pass the ``discos`` *cluster*, |
| 13 | +followed by the ``development`` system, to the ``discos-deploy`` script: |
12 | 14 |
|
13 | 15 | .. code-block:: shell |
14 | 16 |
|
15 | 17 | $ discos-deploy discos:development |
16 | 18 |
|
17 | | -This command will connect via SSH to all development machines |
18 | | -and provision the whole system (create users, configure networking, |
19 | | -install yum packages, ACS and its dependencies, utilities, and |
20 | | -eventually the DISCOS dependencies). To get a particular |
21 | | -DISCOS branch you have two options: you can manually execute |
22 | | -the ``discos-get`` command, as we did in the :ref:`deploy_quickstart` |
23 | | -section, or you can do it by passing the ``--deploy`` argument, |
24 | | -followed by the branch you want to deploy, and, in the case of |
25 | | -development environment, the ``--station`` argument, followed |
26 | | -by the name of the station, to the ``discos-deploy`` script. |
| 19 | +This command will connect via SSH to all development machines and provision the |
| 20 | +whole system (create users, configure networking, install yum packages, |
| 21 | +configure NIS, Lustre, ACS and its dependencies, install some utilities, and |
| 22 | +finally the DISCOS dependencies). |
| 23 | + |
| 24 | + |
| 25 | +Working without Vagrant |
| 26 | +----------------------- |
| 27 | +If you wish to deploy a development environment on physical machines, or you |
| 28 | +simply want to install the virtual machines by yourself using VirtualBox or |
| 29 | +another virtual machine provider, you can still use the ``discos-deploy`` |
| 30 | +script to perform the automatic deployment procedure. You first have to setup |
| 31 | +the machines' network interfaces, in order to enable Ansible access to them via |
| 32 | +the correct IP address, and then start the deployment procedure by passing the |
| 33 | +``--no-vagrant``, ``-n`` flag to the ``discos-deploy`` script: |
| 34 | + |
| 35 | +.. code-block:: shell |
| 36 | +
|
| 37 | + $ discos-deploy discos:development --no-vagrant |
| 38 | +
|
| 39 | +This will let the script know that you do not want to create any (other) |
| 40 | +virtual machine on your system, and that you want to apply the whole |
| 41 | +configuration onto an existing, physical or virtual, set of machines. |
| 42 | + |
| 43 | + |
| 44 | +DISCOS setup |
| 45 | +============ |
| 46 | + |
| 47 | +Manual setup |
| 48 | +------------ |
| 49 | +To download the DISCOS control software, you can use the ``discos-get`` command, |
| 50 | +covered in the :ref:`get_a_discos_branch` section. |
| 51 | + |
| 52 | +.. figure:: images/discos-get.png |
| 53 | + :figwidth: 100% |
| 54 | + :align: center |
| 55 | + |
| 56 | +Once the download of the repository is completed, you have to perform the setup |
| 57 | +procedure like we have seen in the :ref:`install_discos` section. |
| 58 | + |
| 59 | +.. figure:: images/make.png |
| 60 | + |
| 61 | +Automatic setup |
| 62 | +--------------- |
| 63 | +You can let the deployment procedure perform the DISCOS control system setup |
| 64 | +for you by specifying the ``--branch`` argument to the ``discos-deploy`` |
| 65 | +script, followed by the branch name you want to deploy and install. Since the |
| 66 | +procedure will internally call the ``discos-get`` script for you, if you are |
| 67 | +deploying in a development environment, you also have to provide to the script |
| 68 | +the ``--station`` argument, followed by the name of the desired station. |
27 | 69 |
|
28 | 70 | .. code-block:: shell |
29 | 71 |
|
30 | | - $ discos-deploy discos:development --deploy latest64 --station noto |
| 72 | + $ discos-deploy discos:development --tag discos1.0-rc02 --station noto |
31 | 73 |
|
32 | 74 | You can choose a station among ``medicina``, ``noto`` and ``srt``. |
33 | | -This command executes the ``discos-get latest64 -s noto`` command on |
34 | | -all machines of the system, in parallel. |
| 75 | +The ``discos-get`` command gets executed on all machines of the system at the |
| 76 | +same time. |
0 commit comments