instance-mariadb-schema.json 4.37 KB
Newer Older
1 2
{
  "$schema": "http://json-schema.org/draft-04/schema#",
3 4 5
  "required": [
    "tcpv4-port"
  ],
6
  "type": "object",
7 8
  "properties": {
    "tcpv4-port": {
9 10 11 12 13 14 15 16
      "allOf": [
        {
          "$ref": "#/definitions/tcpv4port"
        },
        {
          "description": "Start allocating ports at this value, going downward"
        }
      ]
17 18 19
    },
    "database-list": {
      "description": "Databases to create and respective user credentials getting all privileges on it",
20 21 22 23 24 25 26
      "default": [
        {
          "name": "erp5",
          "user": "user",
          "password": "insecure"
        }
      ],
27 28
      "minItems": 1,
      "items": {
29 30 31 32 33
        "required": [
          "name",
          "user",
          "password"
        ],
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
        "properties": {
          "name": {
            "description": "Database name",
            "type": "string"
          },
          "user": {
            "description": "User name",
            "type": "string"
          },
          "password": {
            "description": "User password",
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "catalog-backup": {
      "description": "Backup control knobs",
      "properties": {
        "full-retention-days": {
          "description": "How many days full backups must be retained, -1 meaning full backups are disabled and 0 meaning no expiration",
          "default": 7,
          "minimum": -1,
          "type": "integer"
        },
        "incremental-retention-days": {
62
          "description": "How many days incremental backups (binlogs) must be retained, -1 meaning incremental backups are disabled and 0 meaning no expiration, defaulting to full-retention-days' value",
63 64 65 66 67 68
          "minimum": -1,
          "type": "integer"
        }
      },
      "type": "object"
    },
69 70 71
    "backup-periodicity": {
      "description": "When to backup, specified in the same format as for systemd.time(7) calendar events (years & seconds not supported, DoW & DoM can not be combined).",
      "default": "daily",
72
      "type": "string"
73
    },
74
    "innodb-buffer-pool-size": {
75 76 77 78
      "description": "See MariaDB documentation on innodb_buffer_pool_size",
      "minimum": 0,
      "type": "integer"
    },
79 80 81 82 83
    "innodb-buffer-pool-instances": {
      "description": "See MariaDB documentation on innodb_buffer_pool_instances",
      "minimum": 1,
      "type": "integer"
    },
84 85 86 87 88 89 90 91 92 93
    "innodb-log-file-size": {
      "description": "See MariaDB documentation on innodb_log_file_size",
      "minimum": 0,
      "type": "integer"
    },
    "innodb-log-buffer-size": {
      "description": "See MariaDB documentation on innodb_log_buffer_size",
      "minimum": 0,
      "type": "integer"
    },
94 95 96 97 98 99
    "long-query-time": {
      "description": "Number of seconds above which long queries are logged",
      "minimum": 0,
      "default": 1,
      "type": "number"
    },
100
    "relaxed-writes": {
101 102 103
      "description": "When enabled, sets innodb_flush_log_at_trx_commit = 0, innodb_flush_method = nosync, innodb_doublewrite = 0 and sync_frm = 0 - RTFM, those options are dangerous",
      "default": false,
      "type": "boolean"
104 105 106 107 108 109 110
    },
    "ssl": {
      "description": "Enable and define SSL support for network connections",
      "default": {},
      "properties": {
        "ca-crt": {
          "description": "Certificate Authority's certificate, in PEM format",
111
          "type": "string"
112 113 114 115 116 117 118 119
        },
        "crt": {
          "description": "Server's certificate, in PEM format (mandatory to enable SSL support)",
          "type": "string"
        },
        "key": {
          "description": "Server's key, in PEM format (mandatory to enable SSL support)",
          "type": "string"
120 121 122 123 124 125 126 127
        },
        "crl": {
          "description": "Server's certificate revocation list, in PEM format",
          "type": "string"
        },
        "cipher": {
          "description": "Permissible cipher specifications, separated by colons",
          "type": "string"
128 129 130
        }
      },
      "type": "object"
131 132 133 134 135
    },
    "odbc-ini": {
      "description": "Contents of odbc.ini file, see unixodbc document",
      "default": "",
      "type": "string"
136 137 138 139 140 141 142
    },
    "environment-variables": {
      "description": "Extra environment variables for mysqld may be required to use third party ODBC libraries for CONNECT storage engine.",
      "items": {
        "type": "string"
      },
      "type": "array"
143
    }
144 145
  }
}