Skip to content

Commit

Permalink
Merge pull request #30 from SUSE/isbm-py3-port
Browse files Browse the repository at this point in the history
Port to Py3 with the minimal refactoring
  • Loading branch information
isbm authored Apr 18, 2019
2 parents 36183b4 + 8090ac5 commit 03a8912
Show file tree
Hide file tree
Showing 12 changed files with 1,357 additions and 951 deletions.
25 changes: 0 additions & 25 deletions README

This file was deleted.

29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SMDBA

SUSE Manager Database Admin or SMDBA is a replacement for `spacewalk-dobby`.

Key features:

1. Support Oracle and PostgreSQL
2. No configuration other than just default `/etc/rhn/rhn.conf`
3. No DBI drivers at all.
4. All work is done through sudo.


In case you want to use it without SUSE Manager:

1. Change `DEFAULT_CONFIG` in class Console, which is located in
`$SOURCE/src/smdba/smdba` to something else.

2. By default it reacts to the following keys in the config (example):

db_backend = oracle
db_user = scott
db_password = tiger
db_name = test
db_host = localhost
db_port = 1521

3. At the moment `db_backend` can have only two values: `oracle` or `postgresql`.
Therefore it will load `oraclegate` or `postgresqlgate` module. Once you want
something else, like H2, you suppose to create `h2gate` module.
2 changes: 1 addition & 1 deletion build-src.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ VERSION=`grep "VERSION =" src/smdba/smdba | sed s'/^.*"\([[:digit:]\.]\+\)"/\1/'
NAME="smdba"

# Update
git pull
#git pull

# Cleanup
rm -f $NAME-*.tar.bz2
Expand Down
Loading

0 comments on commit 03a8912

Please sign in to comment.