Puppet Type: mysql_sql

Defined in:
lib/puppet/type/mysql_sql.rb

Overview

execute arbitrary SQL queries

Parameter Summary

  • name (Parameter) (Namevar) -

    An arbitrary tag for your own reference

  • command (Property) Default value: { @resource[:name] } -

    The SQL command to execute via mysql.

  • cwd (Parameter) Default value: ("/tmp") -

    The working directory under which the mysql command should be executed.

  • db (Parameter) -

    The name of the database to execute the SQL command against

  • instance_name (Parameter) -

    instance name to connect to

  • mysql_path (Parameter) Default value: ("mysql") -

    The path to mysql executable.

  • onlyif (Parameter) -

    An optional SQL command to execute prior to the main :command;

  • password (Parameter) -

    password to connect

  • refreshonly (Parameter) Default value: (:false) -

    If 'true', then the SQL will only be executed via a notify/subscribe event.

    Allowed Values:
    • :true
    • :false
  • socket (Parameter) -

    The name of the socked to use

  • unless (Parameter) -

    An optional SQL command to execute prior to the main :command;

Features

Available Providers