examples/MariaDB.DSC.Example.ps1

# Example 1: Get credential from user
$MariaCred = Get-Credential 'root'

# Set Configuration
Configuration MariaDBInstall
{
  Import-DscResource -module MariaDB.DSC

  Node localhost{

    LocalConfigurationManager
    {
      RebootNodeIfNeeded = $true
    }

    MariaDB 'MyMariaDBInstall'
    {
      InstallerPath = 'C:\Installers\MariaDB\MariaDB_Installer.msi'
      RootPwd = $MariaCred
      ServiceName = 'MariaDB'
      Ensure = 'Present'
    }
  }
}

MariaDBInstall