File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed
DSCResources/xUnityLicense Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 3
3
[OutputType ([System.Collections.Hashtable ])]
4
4
param
5
5
(
6
+ [parameter (Mandatory = $true )]
6
7
[System.Management.Automation.PSCredential ]
7
8
$Credential ,
8
9
10
+ [parameter (Mandatory = $true )]
9
11
[System.Management.Automation.PSCredential ]
10
12
$Serial ,
11
13
14
+ [parameter (Mandatory = $false )]
12
15
[System.String ]
13
16
$UnityVersion ,
14
17
18
+ [parameter (Mandatory = $true )]
15
19
[System.String ]
16
20
$Name
17
21
)
@@ -64,6 +68,7 @@ function Test-TargetResource {
64
68
[OutputType ([System.Boolean ])]
65
69
param
66
70
(
71
+ [parameter (Mandatory = $true )]
67
72
[System.Management.Automation.PSCredential ]
68
73
$Credential ,
69
74
@@ -75,6 +80,7 @@ function Test-TargetResource {
75
80
[System.Management.Automation.PSCredential ]
76
81
$Serial ,
77
82
83
+ [parameter (Mandatory = $false )]
78
84
[System.String ]
79
85
$UnityVersion ,
80
86
Original file line number Diff line number Diff line change 1
1
<#
2
2
Create a custom configuration by passing in necessary values
3
3
#>
4
- Configuration Sample_xUnitySetupInstance {
4
+ Configuration Sample_xUnity {
5
5
param
6
6
(
7
7
[System.String ]
8
- $Versions = ' 2017.4.2f2'
8
+ $Version = ' 2017.4.2f2' ,
9
9
10
10
[ValidateSet (' Present' , ' Absent' )]
11
11
[System.String ]
@@ -26,18 +26,19 @@ Configuration Sample_xUnitySetupInstance {
26
26
Node ' localhost' {
27
27
28
28
xUnitySetupInstance Unity {
29
- Versions = $Versions
29
+ Versions = $Version
30
30
Components = $Components
31
31
Ensure = $Ensure
32
- DependsOn = if ( $Ensure -eq ' Absent' ) { ' [xUnityLicense]UnityLicense' }
32
+ DependsOn = if ( $Ensure -eq ' Absent' ) { ' [xUnityLicense]UnityLicense' } else { $null }
33
33
}
34
34
35
35
xUnityLicense UnityLicense {
36
36
Name = ' UL01'
37
37
Credential = $UnityCredential
38
38
Serial = $UnitySerial
39
39
Ensure = $Ensure
40
- DependsOn = if ( $Ensure -eq ' Present' ) { ' [xUnitySetupInstance]Unity' }
40
+ UnityVersion = $Version
41
+ DependsOn = if ( $Ensure -eq ' Present' ) { ' [xUnitySetupInstance]Unity' } else { $null }
41
42
}
42
43
}
43
44
}
Original file line number Diff line number Diff line change 1
1
<#
2
2
Install multiple versions of Unity and several components
3
3
#>
4
- Configuration Sample_xUnitySetupInstance_Install {
4
+ Configuration Sample_xUnity_Install {
5
5
6
6
param (
7
7
[PSCredential ]$UnityCredential ,
Original file line number Diff line number Diff line change 1
1
<#
2
2
Uninstall multiple versions of Unity
3
3
#>
4
- Configuration Sample_xUnitySetupInstance_Install {
4
+ Configuration Sample_xUnity_Install {
5
5
6
6
param (
7
7
[PSCredential ]$UnityCredential ,
You can’t perform that action at this time.
0 commit comments