Forge Home

sqlite

Installs, configures, and manages the SQLite service.

96,530 downloads

24,228 latest version

4.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.0 (latest)
  • 0.0.1
released Nov 9th 2017
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.0.0 < 5.0.0
  • , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-sqlite', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-sqlite
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-sqlite --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetlabs/sqlite — version 0.1.0 Nov 9th 2017

sqlite

Author: Carl Caum carl@puppetlabs.com Copyright (c) 2011, Puppet Labs Inc.

ABOUT

This module manages sqlite. Through declarion of the sqlite class, sqlite will be installed on the system.

The sqlite::db defined type allows for the management of a sqlite database on the node

CONFIGURATION

The main class (sqlite) only needs to be declared. No class parameters or top scope variables are needed.

The sqlite::db defined type can be used to manage a sqlite database on the system.

The following parameters are available for the resources declaration:

location        What directory the database should go in.  The presence of the directory must be managed separately of the defined type.
owner           The owner of the sqlite database file on disk
group           The group owning the sqlite database file on disk
mode            The mode of the sqlite database file on disk
ensure          Whether the database should be `present` or `absent`.  Default to `present`
sql             The path to a sqlfile you want to execute. This can be single file specified as string, or it can be an array of strings. Defaults to undef.
enforce_sql     Specify whether executing the sqlfiles should happen on every run. If set to 'false', sqlfiles only run once. Valid values are 'true', 'false'. Defaults to 'false'.
import_timeout  Timeout, in seconds, for loading the sqlfiles. Defaults to '300'.
sqlite_cmd      The sqlite command for the node's platform.  Defaults to `sqlite3`

TODO

  • Allow for sql commands to be based to sqlite::db for use during creation