Puppet Class: sqlite

Defined in:
modules/sqlite/manifests/init.pp

Summary

install sqlite

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: 'present')

    ensurable parameter

  • default_db_path (Stdlib::Unixpath) (defaults to: '/var/lib/sqlite')

    default location for dbs

  • package (Enum['sqlite', 'sqlite3']) (defaults to: $sqlite_cmd)

    package name to install

  • sqlite_cmd (Enum['sqlite', 'sqlite3']) (defaults to: 'sqlite3')

    sqlite command to use



7
8
9
10
11
12
13
14
15
# File 'modules/sqlite/manifests/init.pp', line 7

class sqlite (
    Wmflib::Ensure            $ensure          = 'present',
    Stdlib::Unixpath          $default_db_path = '/var/lib/sqlite',
    Enum['sqlite', 'sqlite3'] $sqlite_cmd      = 'sqlite3',
    Enum['sqlite', 'sqlite3'] $package         = $sqlite_cmd,
){
    ensure_packages($package, {'ensure' => $ensure })
    ensure_resource('file', $default_db_path, {'ensure' => stdlib::ensure($ensure, 'directory')})
}