Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
terryfilch
tower
Commits
3d323e60
Commit
3d323e60
authored
Dec 20, 2016
by
Aleksey Shirokih
Browse files
Local installation type
parent
4e9fb7fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Readme.md
View file @
3d323e60
...
...
@@ -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
...
...
VERSION
View file @
3d323e60
0.1a6
2
0.1a6
3
\ No newline at end of file
docker-compose.yml
View file @
3d323e60
...
...
@@ -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"
tower/migrations/022_add_local_connection.py
0 → 100644
View file @
3d323e60
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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment