Puppet Class: sqlite

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

Overview

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: 'present')
  • default_db_path (Stdlib::Unixpath) (defaults to: '/var/lib/sqlite')
  • sqlite_cmd (Enum['sqlite', 'sqlite3']) (defaults to: 'sqlite3')


2
3
4
5
6
7
8
9
# File 'modules/sqlite/manifests/init.pp', line 2

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