Commit 4e971de4 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Updated instruction

parent 18ce88ae
......@@ -2,33 +2,60 @@
NOC Tower is the tool for deployment and maintaining multiple
NOC ( installations.
## Preparation
### Debian
# apt-get install python-virtualenv libffi6 libffi-dev python-dev gcc
# groupadd tower
# useradd -d /home/tower -g tower -s /bin/bash -m tower
## Installation
- Create Tower directory
$ mkdir tower
$ cd tower
# mkdir /opt/tower
# cd /opt/tower
- Create virtualenv
$ virtualenv .
/opt/tower# virtualenv .
- Install tower
- Install Tower
/opt/tower# ./bin/pip install
/opt/tower# chown -R tower var/
- Generate Tower ssh keys
$ ./bin/pip install
/opt/tower# su - tower -c "ssh-keygen -t rsa -b 4096"
- Run tower
- Run Tower
$ TOWER_REPO_URL=http://<IP>:8888/hg ./bin/tower-web
/opt/tower# su - tower -c "cd /opt/tower && ./bin/tower-web"
where <IP> is external IP address of your tower server
- Enter the magical mistery tower.
Open http://IP:8888/ in your browser. Login as admin/admin
Open http://<IP>:8888/ in your browser. Login as admin/admin
- Set up Tower
Go to settings and set Tower's site URL (http://<IP>:8888/) and
Tower's repository URL, as seen by nodes (http://<IP>:8888/hg).
Do not forget to change tower's admin password
(Upper right menu > Change Password)
## Prepare nodes
On each node create ansible user (*ansible* by default),
grant it passwordless sudo privileges and copy Tower's
public ssh key (/home/tower/.ssh/ to *ansible's*
*authorized_keys* (*/home/ansible/.ssh/authorized_keys*)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment