summaryrefslogtreecommitdiff
path: root/doc/source/howtos/ubuntu_setup.rst
blob: bd9b683785dd6c2c541b0c5065ad5548759d5ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
:orphan:

Ubuntu
======

We're going to be using Ubuntu on a cloud server for this installation.

Prerequisites
-------------

- Port 9000 must be open and accessible from the Internet so that
  GitHub can communicate with the Zuul web service.

Login to your environment
-------------------------

Since we'll be using a cloud image for Ubuntu, our login user will
be ``ubuntu`` which will also be the staging user for installation of
Zuul and Nodepool.

To get started, ssh to your machine as the ``ubuntu`` user.

.. code-block:: shell

   ssh ubuntu@<ip_address>

Environment Setup
-----------------

First, make sure the system packages are up to date, and then install
some packages which will be required later.  Most of Zuul's binary
dependencies are handled by the bindep program, but a few additional
dependencies are needed to install bindep, and for other commands
which we will use in these instructions.

.. code-block:: shell

   sudo apt-get update
   sudo apt-get install python3-pip git

   # install bindep, the --user setting will install bindep only in
   # the user profile not global.
   pip3 install --user bindep

Install Zookeeper
-----------------

Nodepool uses Zookeeper to keep track of information about the
resources it manages, and it's also how Zuul makes requests to
Nodepool for nodes.

.. code-block:: console

   sudo apt-get install -y zookeeper zookeeperd