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 (http://nocproject.org/) installations.
## Preparation
### Debian
```
#!shell
# 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
```
#!shell
$ mkdir tower
$ cd tower
# mkdir /opt/tower
# cd /opt/tower
```
- Create virtualenv
```
#!shell
$ virtualenv .
/opt/tower# virtualenv .
```
- Install tower
- Install Tower
```
#!shell
/opt/tower# ./bin/pip install https://cdn.nocproject.org/tower/noc-tower-0.1a9.tar.gz
/opt/tower# chown -R tower var/
```
- Generate Tower ssh keys
```
#!shell
$ ./bin/pip install https://cdn.nocproject.org/tower/noc-tower-0.1a8.tar.gz
/opt/tower# su - tower -c "ssh-keygen -t rsa -b 4096"
```
- Run tower
- Run Tower
```
#!shell
$ 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/id_rsa.pub) 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