Puppet Class: mssql::client::cli

Defined in:
manifests/client/cli.pp

Summary

Initializes SQLCMD

Overview

mssql::client::cli

Name of the Microsoft Command Line Utilities - has to be exact, hence enumaration

Location of the downloaded msi installer

Standard puppet ensure, e.g. present, absent, installed, etc

Examples:

include mssql::client::cli

Parameters:

  • cliname (Enum[ 'Microsoft Command Line Utilities 14 for SQL Server', 'Microsoft Command Line Utilities 15 for SQL Server' ]) (defaults to: 'Microsoft Command Line Utilities 15 for SQL Server')
  • clisource (String) (defaults to: 'c:/temp/MsSqlCmdLnUtils.msi')
  • cliensure (String) (defaults to: $mssql::client::ensure)


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/client/cli.pp', line 16

class mssql::client::cli (
  Enum[
    'Microsoft Command Line Utilities 14 for SQL Server',
    'Microsoft Command Line Utilities 15 for SQL Server'
  ] $cliname = 'Microsoft Command Line Utilities 15 for SQL Server',
  String $clisource = 'c:/temp/MsSqlCmdLnUtils.msi',
  String $cliensure = $mssql::client::ensure,
) {

  mssql::client::cli::sqlcmd { $cliname :
    ensure  => $cliensure,
    package => $cliname,
    source  => $clisource,
  }
}