mirror of
https://github.com/ceph/ceph
synced 2024-12-20 02:13:04 +00:00
030bc7c23d
Added the ability to support multiple types of machines with --machine-type added to teuthology-lock when used with --lock-many or --machine-type with teuthology --lock (automated tests). It defaults to 'plana' and the 'vps' type is currently unused but should be in the future. Signed-off-by: Sandon Van Ness <sandon@van-ness.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
26 lines
744 B
Python
26 lines
744 B
Python
"""
|
|
This file contains database configuration.
|
|
|
|
The schema can be created with::
|
|
|
|
CREATE TABLE machine (
|
|
name varchar(255),
|
|
type enum('burnupi','plana','vps') NOT NULL DEFAULT 'plana',
|
|
up boolean NOT NULL,
|
|
locked boolean NOT NULL,
|
|
locked_since timestamp NOT NULL DEFAULT '0000-00-00T00:00:00',
|
|
locked_by varchar(32),
|
|
description text,
|
|
sshpubkey text NOT NULL,
|
|
PRIMARY KEY (name),
|
|
INDEX (locked),
|
|
INDEX (up));
|
|
|
|
If using MySQL, be sure to use an engine that supports
|
|
transactions, like InnoDB.
|
|
"""
|
|
import web
|
|
|
|
# Change these values to the connection info for your database.
|
|
DB = web.database(dbn='dbms', db='db', user='user', pw='password', host='host')
|