Compare commits
10 Commits
pkg/dev/ri
...
399bfb9ab6
Author | SHA1 | Date | |
---|---|---|---|
399bfb9ab6 | |||
234b82b459 | |||
d3a5c99e51 | |||
c9e0bcbbfe | |||
47e4976f54 | |||
dd33ea5b8f | |||
689df4ec23 | |||
223fb9aaf3 | |||
c3d25b4aff | |||
bed27a1e58 |
10
debian/control
vendored
10
debian/control
vendored
@ -2,13 +2,19 @@ Source: risotto
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Maintainer: Cadoles <contact@cadoles.com>
|
||||
Build-depends: debhelper (>=11), python3-all, python3-setuptools
|
||||
Build-depends: debhelper (>=11), python3-all, python3-setuptools, dh-python
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: https://forge.cadoles.com/Infra/risotto
|
||||
|
||||
Package: python3-risotto
|
||||
Architecture: any
|
||||
Pre-Depends: dpkg, python3, ${misc:Pre-Depends}
|
||||
Depends: ${python:Depends}, ${misc:Depends}, python3-asyncpg, python3-rougail, python3-aiohttp
|
||||
Description: configuration manager libraries
|
||||
|
||||
Package: risotto
|
||||
Architecture: any
|
||||
Pre-Depends: dpkg, python3, ${misc:Pre-Depends}
|
||||
Depends: ${python:Depends}, ${misc:Depends}, python3-asyncpg
|
||||
Depends: ${python:Depends}, ${misc:Depends}, python3-risotto
|
||||
Description: configuration manager
|
||||
|
||||
|
2
debian/risotto.install
vendored
Normal file
2
debian/risotto.install
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
script/risotto-server usr/bin/
|
||||
sql/risotto.sql usr/share/eole/db/eole-risotto/gen/
|
0
script/risotto-server
Normal file → Executable file
0
script/risotto-server
Normal file → Executable file
1
setup.py
1
setup.py
@ -4,6 +4,5 @@ setup(
|
||||
name='risotto',
|
||||
version='0.1',
|
||||
packages=['risotto' ],
|
||||
scripts=['script/risotto-server'],
|
||||
package_dir={"": "src"},
|
||||
)
|
||||
|
@ -15,6 +15,7 @@ DB_ADDRESS = environ.get('DB_ADDRESS', 'localhost')
|
||||
MESSAGE_PATH = environ.get('MESSAGE_PATH', '/root/risotto-message/messages')
|
||||
SQL_DIR = environ.get('SQL_DIR', './sql')
|
||||
CACHE_ROOT_PATH = environ.get('CACHE_ROOT_PATH', '/var/cache/risotto')
|
||||
SRV_SEED_PATH = environ.get('SRV_SEED_PATH', '/srv/seed')
|
||||
|
||||
|
||||
def dsn_factory(database, user, password, address=DB_ADDRESS):
|
||||
@ -36,7 +37,8 @@ def get_config():
|
||||
'admin_user': DEFAULT_USER,
|
||||
'sql_dir': SQL_DIR},
|
||||
'cache': {'root_path': CACHE_ROOT_PATH},
|
||||
'servermodel': {'internal_source': 'internal',
|
||||
'servermodel': {'internal_source_path': SRV_SEED_PATH,
|
||||
'internal_source': 'internal',
|
||||
'internal_distribution': 'last',
|
||||
'internal_release_name': 'none'},
|
||||
'submodule': {'allow_insecure_https': False,
|
||||
|
Reference in New Issue
Block a user