Repository URL to install this package:
|
Version:
1.0.0b1 ▾
|
doc: {}
args:
db_type:
doc:
short_help: The type of db to use.
type: string
allowed:
- sqlite
- postgresql
- mariadb
- mysql
db_user:
doc:
short_help: The db user name.
type: string
required: false
db_password:
doc:
short_help: The db user password.
type: string
required: false
db_host_ip:
doc:
short_help: The db host.
type: string
default: 127.0.0.1
db_name:
doc:
short_help: The db name (or absolute path, in case of sqlite).
type: string
required: true
frecklets:
- file-with-content:
path: '{{:: path ::}}'
group: '{{:: group ::}}'
owner: '{{:: owner ::}}'
mode: '{{:: mode ::}}'
content: "{%:: if db_type == \"sqlite\" ::%}\nSQLALCHEMY_DATABASE_URI = 'sqlite:///{{:: db_name ::}}'\n{%:: elif db_type == \"postgresql\" ::%}\nSQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{:: db_user ::}}:{{:: db_password ::}}@{{:: db_host_ip ::}}/{{:: db_name ::}}'\n{%:: elif db_type == \"mariadb\" or db_type == \"mysql\" ::%}\nSQLALCHEMY_DATABASE_URI = 'mysql://{{:: db_user ::}}:{{:: db_password ::}}@{{:: db_host_ip ::}}/{{:: db_name ::}}'\n{%:: endif ::%}"
meta: {}