Commit 3d323e60 authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

Local installation type

parent 4e9fb7fa
Pipeline #175 failed with stages
in 65 minutes and 4 seconds
......@@ -63,6 +63,12 @@ Replace /opt/tower/ to directory of your choice
/opt/tower# su - tower -c "ssh-keygen -t rsa -b 4096"
```
## For single node installation only
Add user tower to sudo group.
* For example: `adduser tower sudo`
* Select Local installation type with local ip on Nodes screen.
- Run Tower
```
#!shell
......
0.1a62
0.1a63
\ No newline at end of file
......@@ -7,5 +7,6 @@ services:
- "8888:8888"
volumes:
- "/opt/tower/var:/opt/tower/var/"
- ./tower/migrations/022_add_local_connection.py:/opt/tower/local/lib/python2.7/site-packages/tower/migrations/022_add_local_connection.py
#https://groups.google.com/forum/#!topic/ansible-project/y8ohlv_dRi4
- "./root:/root"
from peewee import (Model, CharField, TextField, ForeignKeyField,
DateTimeField, BooleanField, IntegerField)
def migrate(migrator):
class NodeType(Model):
class Meta:
database = migrator.db
db_table = "node_type"
name = CharField(max_length=64, unique=True)
shell_type = CharField(max_length=256, default="sh")
python_interpreter = CharField(max_length=255,
default="/usr/bin/python")
ssh_extra_args = CharField(max_length=255)
ssh_pipelining = BooleanField(default=False)
ansible_connection = CharField(max_length=255, default="smart")
d = NodeType(
name="Local",
ssh_pipelining=False,
ansible_connection="local"
)
d.save()
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