Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x
- Puppet >= 5.0.0 < 7.0.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'ffquintella-sqlcli', '1.1.10'
Learn more about managing modules with a PuppetfileDocumentation
sqlcli
This module acts as a SQL client to allow the execution of comands on differente databases
Table of Contents
- Description
- Setup - The basics of getting started with sqlcli
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
This module acts as a SQL client to allow the execution of comands on differente databases
Setup
What sqlcli affects
This module will install usql (https://github.com/xo/usql) to use it as it's base.
It will also install golang as it is needed.
Beginning with sqlcli
To use the module yum must firts include de base class to be shure the instalation is done then you can use the defined types avaliable.
include sqlcli
Usage
There defined types are described bellow:
Execute This type executes a command
sqlcli::command { 'select * from foo':
database_connection => {
'db_type' => 'mssql',
'db_user' => 'tuser',
'db_pwd' => '123',
'db_hostname' => 'superdb',
'db_port' => 1433,
'db_schema' => 'schm1',
},
run_once = true,
}
sqlcli::script { '/tmp/script.sql':
database_connection => {
'db_type' => 'mssql',
'db_user' => 'tuser',
'db_pwd' => '123',
'db_hostname' => 'superdb',
'db_port' => 1433,
'db_schema' => 'schm1',
},
run_once = true,
}
Reference
All the parameters are described in doc/REFERENCES.md
Limitations
TBD
Development
We try to keep our modules as tested as possible and follow the lint sugestion. So before submitting any pull request, please run the unit tests and validation
Changelog
All notable changes to this project will be documented in this file.
Release 1.1.9
Features
Bugfixes
- Fixed runonce
Release 1.1.8
Features
Bugfixes
- Fixed ccm integration
Release 1.1.6
Features
Bugfixes
- Fixed ccm integration
Release 1.1.4
Features
Bugfixes
- Fixed ccm integration
Release 1.1.3
Features
Bugfixes
- Fixed ccm integration
Known Issues
Release 1.1.1
First stable release with ccm integration
Features
Bugfixes
Known Issues
Release 1.0.9
Bugfixes
Features
Bugfixes
- Fixed command calling
Known Issues
Release 1.0.6
Bugfixes
Features
Bugfixes
- Fixed class redefinition ccm_cli
Known Issues
Release 1.0.5
New release with support for ccm integration
Features
- CCM Integration
Bugfixes
Known Issues
Release 1.0.4
Same as before
Release 1.0.3
Bug fixes
Features
Bugfixes
- Fixes a duplicated file definition preventing the use of the defined types more then once
Known Issues
Release 1.0.2
Changes in a parameter
Features
Bugfixes
- Changes db_schema to dn_name
Known Issues
Release 1.0.1
First stable release
Features
- Instalation of dependecies
- Sql command execution (every time or once)
- Sql script execution
Bugfixes
Known Issues
Release 0.X.X
These are initial development releases and are UNSTABLE. Do not use.
Features
Bugfixes
Known Issues
Dependencies
- ffquintella/ccm_cli (>= 0.1.4 < 2.0.0)
- puppetlabs/concat (>= 5.0.0 < 7.0.0)
Copyright (c) 2019 Felipe Ferreira Quintella. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.