GithubHelp home page GithubHelp logo

jeremymcgee / puppet-sqltable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from javiplx/puppet-sqltable

0.0 2.0 0.0 556 KB

Puppet native type to manage table data in SQL Server

Ruby 95.81% Puppet 4.19%

puppet-sqltable's Introduction

sqltable puppet module

Javier Palacios [email protected]

Overview

The purpose of this module is to manage simple sql tables that store configuration as name/value pairs. The use case is managing configuration of tomcat based applications, which commonly store configuration parameters on database instead of using a properties file.

Limitations

The module only works with mysql.

Resource definition

If the title has the form database.table.keyname, it is parsed to fill other parameters, but only table has a default value (Configuration). An error is raised if the parameters are explicitly declared and do not match those coming from title.

Resource description to create and delete a parameter looks like

sqltable { 'parameter':
  ensure      => 'present',
  key         => 'parameter_name',
  value       => 'parameter-value',
  description => 'Description of the parameter',
  database    => 'example',
  table       => 'Config'
}

sqltable { 'example.Configuration.obsolete_parameter':
  ensure      => 'absent'
}

There are also parameters to specify host, user and password required to connect to the database server.

Resource discovering

The module is able to list existing resources, but only if locally run on the mysql server, and only searchs for tables named Configuration

puppet-sqltable's People

Contributors

javiplx avatar

Watchers

James Cloos avatar Jeremy McGee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.