-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Composite Resources: xSccmPreReqs, xSccmSqlinstall, xSccmInstall (#6)
* Initial resource * Update MOF * fixed typo * Fixed logic and update params * Added logic to check for parameters that don't work with CAS * Updated examples and fixed parameter * Fixed formatting * Added missing parameters * Fixed spacing and param * Added tests and fixed logic issues. * Fixed mof to required. * Updated tests * change hashtbale format * Updated synposis in the examples. * Added test for optional PRI params * Added comments and additonal test. * Removed results from Test * Missing space. * Updated with PR comments * Changed to Localized data * Updated Readme * Updated Verbose strings. * Updated Readme * Removed Formatting of string * Fixed line length * Added missing localized data * Removed duplicate functions. * Updated other modules with new localiazed data * Updated Readme * Removed tests from helper tests * Updated string formatting * Trying MOF file * Added prereqs and Sql Install * Added SQL module * Add sql Module Verison * Added parameter * Updated psd1 * Fixed SccmSql Issues * updated configs * Added logic for null local admins * Added Management Studio option * Added examples * Fixed examples and format * Fixed failed build issues * Change config names * fixed duplicate key * Updated examples and psd1 * Updated readmed and command help * Update command line help * Fix ini example in readme * Bug in ini file * Updated SQL parameters and defaults * Updated Readme * Added back Module Version * Fixed readme and examples * Added install windows feature option * Added Firewall option * Added SCCM Role param * Add pre reqs for features. * Added required modules * Added Module versions * Removed module * Added back * Updated fixes needed. * PR comments * fixed sapacing. * Add Features and default value * Added source Option for Windows Features. * Updated command line help with parameter * Added firewall rule * fixed typo in sql * Fixed HQRM failures * fixed domain account bug * Removed hardcoded versions * Added back module versions * typecast feature string * typecast name * added default sxs path * Modified drive letter to only be a letter * Fixed PR comments Co-authored-by: Ryan Christman <[email protected]>
- Loading branch information
1 parent
7b748e1
commit 5ed121f
Showing
16 changed files
with
1,422 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
@{ | ||
|
||
# Script module or binary module file associated with this manifest. | ||
RootModule = 'xSccmInstall.schema.psm1' | ||
|
||
# Version number of this module. | ||
ModuleVersion = '1.0.0' | ||
|
||
# Supported PSEditions | ||
# CompatiblePSEditions = @() | ||
|
||
# ID used to uniquely identify this module | ||
GUID = '6af6ba9f-8084-40e0-8fa9-8dab37296a73' | ||
|
||
# Author of this module | ||
Author = 'DSC Community' | ||
|
||
# Company or vendor of this module | ||
CompanyName = 'DSC Community' | ||
|
||
# Copyright statement for this module | ||
Copyright = 'Copyright the DSC Community contributors. All rights reserved.' | ||
|
||
# Description of the functionality provided by this module | ||
# Description = '' | ||
|
||
# Minimum version of the Windows PowerShell engine required by this module | ||
# PowerShellVersion = '' | ||
|
||
# Name of the Windows PowerShell host required by this module | ||
# PowerShellHostName = '' | ||
|
||
# Minimum version of the Windows PowerShell host required by this module | ||
# PowerShellHostVersion = '' | ||
|
||
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. | ||
# DotNetFrameworkVersion = '' | ||
|
||
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. | ||
# CLRVersion = '' | ||
|
||
# Processor architecture (None, X86, Amd64) required by this module | ||
# ProcessorArchitecture = '' | ||
|
||
# Modules that must be imported into the global environment prior to importing this module | ||
# RequiredModules = @() | ||
|
||
# Assemblies that must be loaded prior to importing this module | ||
# RequiredAssemblies = @() | ||
|
||
# Script files (.ps1) that are run in the caller's environment prior to importing this module. | ||
# ScriptsToProcess = @() | ||
|
||
# Type files (.ps1xml) to be loaded when importing this module | ||
# TypesToProcess = @() | ||
|
||
# Format files (.ps1xml) to be loaded when importing this module | ||
# FormatsToProcess = @() | ||
|
||
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess | ||
# NestedModules = @() | ||
|
||
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. | ||
FunctionsToExport = '*' | ||
|
||
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. | ||
CmdletsToExport = '*' | ||
|
||
# Variables to export from this module | ||
VariablesToExport = '*' | ||
|
||
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. | ||
AliasesToExport = '*' | ||
|
||
# DSC resources to export from this module | ||
# DscResourcesToExport = @() | ||
|
||
# List of all modules packaged with this module | ||
# ModuleList = @() | ||
|
||
# List of all files packaged with this module | ||
# FileList = @() | ||
|
||
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. | ||
PrivateData = @{ | ||
|
||
PSData = @{ | ||
|
||
# Tags applied to this module. These help with module discovery in online galleries. | ||
# Tags = @() | ||
|
||
# A URL to the license for this module. | ||
# LicenseUri = '' | ||
|
||
# A URL to the main website for this project. | ||
# ProjectUri = '' | ||
|
||
# A URL to an icon representing this module. | ||
# IconUri = '' | ||
|
||
# ReleaseNotes of this module | ||
# ReleaseNotes = '' | ||
|
||
} # End of PSData hashtable | ||
|
||
} # End of PrivateData hashtable | ||
|
||
# HelpInfo URI of this module | ||
# HelpInfoURI = '' | ||
|
||
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. | ||
# DefaultCommandPrefix = '' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<# | ||
.SYNOPSIS | ||
A DSC composite resource to install SCCM. | ||
.PARAMETER SetupExePath | ||
Specifies the path to the setup.exe for SCCM. | ||
.PARAMETER IniFile | ||
Specifies the path of the ini file, to include the filename. | ||
.PARAMETER SccmServerType | ||
Specifies the SCCM Server type install, CAS or Primary. | ||
.PARAMETER SccmInstallAccount | ||
Specifies the credentials to use for the SCCM install. | ||
#> | ||
Configuration xSCCMInstall | ||
{ | ||
[CmdletBinding()] | ||
param | ||
( | ||
[Parameter(Mandatory = $true)] | ||
[System.String] | ||
$SetupExePath, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[System.String] | ||
$IniFile, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[ValidateSet('CAS', 'Primary')] | ||
[System.String] | ||
$SccmServerType, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[System.Management.Automation.PSCredential] | ||
$SccmInstallAccount | ||
) | ||
|
||
Import-DscResource -ModuleName PSDesiredStateConfiguration | ||
|
||
if ($SccmServerType -eq 'CAS') | ||
{ | ||
$productName = 'System Center Configuration Manager Central Administration Site Setup' | ||
} | ||
if ($SccmServerType -eq 'Primary') | ||
{ | ||
$productName = 'System Center Configuration Manager Primary Site Setup' | ||
} | ||
|
||
Package SCCM | ||
{ | ||
Ensure = 'Present' | ||
Path = "$SetupExePath\Setup.exe" | ||
Name = $productName | ||
ProductId = '' | ||
Arguments = "/SCRIPT $IniFile" | ||
DependsOn = $dependsOnChain | ||
PsDscRunAsCredential = $SccmInstallAccount | ||
} | ||
} |
Oops, something went wrong.