Commit fc109b5c authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

update Readme.md

parent 0be8c04d
......@@ -7,7 +7,6 @@ NOC (http://nocproject.org/) installations.
## Preparation
### Debian based Linux
```
#!shell
# apt-get install python-virtualenv libffi6 libffi-dev python-dev gcc libssl-dev
# groupadd tower
# useradd -d /home/tower -g tower -s /bin/bash -m tower
......@@ -15,25 +14,24 @@ NOC (http://nocproject.org/) installations.
## Debian only
```
#!shell
/opt/tower# apt-get install dbus
/opt/tower# apt-get install dbus git
/opt/tower# apt install --no-install-recommends git
```
### Rhel based Linux
```
#!shell
# yum install python-virtualenv libffi libffi-devel python-devel gcc openssl-devel
# groupadd tower
# useradd -d /home/tower -g tower -s /bin/bash -m tower
You need set 'SELINUX=disabled' in /etc/sysconfig/selinux and reboot system
You have to check if 'SELINUX=disabled' in /etc/sysconfig/selinux and reboot system after changes
```
### FreeBSD
```
#!shell
# pkg install -y python2 libffi py27-pip py27-virtualenv py27-sqlite3 ca_root_nss
# pkg install -y python2 libffi py27-pip py27-virtualenv py27-sqlite3 ca_root_nss git
# pw groupadd -n tower
# pw useradd -g tower -s /bin/csh -d /home/tower -n tower -m
```
......@@ -47,7 +45,6 @@ Replace /opt/tower/ to directory of your choice
- Create Tower directory
```
#!shell
# mkdir /opt/tower
# cd /opt/tower
```
......@@ -55,14 +52,12 @@ Replace /opt/tower/ to directory of your choice
- Create virtualenv
```
#!shell
/opt/tower# virtualenv .
```
- Install Tower
```
#!shell
/opt/tower# ./bin/pip install --upgrade pip
/opt/tower# ./bin/pip install https://cdn.getnoc.com/tower/noc-tower-latest.zip
/opt/tower# chown -R tower var/
......@@ -70,7 +65,6 @@ Replace /opt/tower/ to directory of your choice
- Generate Tower ssh keys
```
#!shell
/opt/tower# su - tower -c "ssh-keygen -t rsa -b 4096"
```
......@@ -81,7 +75,6 @@ Add user tower to sudo group.
* Run Tower
```
#!shell
/opt/tower# su - tower -c "cd /opt/tower && ./bin/tower-web"
```
......@@ -90,10 +83,6 @@ Add user tower to sudo group.
- Enter the magical mistery tower.
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)
......@@ -103,7 +92,6 @@ On each node
* grant it passwordless `sudo` privileges and copy Tower's public ssh key (*/home/tower/.ssh/id_rsa.pub*) to *ansible's*
```
#!shell
/opt/tower# su - tower -c "ssh-copy-id node_ip"
```
......@@ -115,13 +103,4 @@ On each node
```
rhel_subscription_username: ""
rhel_subscription_password: ""
```
## Proxy
In cause of using proxy for internet acces you should set proxy settings to `/home/tower/.hgrc` that way
```
[http_proxy]
host=192.168.1.1:3128
```
\ No newline at end of file
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