Created
December 16, 2015 22:13
-
-
Save PlagueHO/a5aeabe9928fa130ca08 to your computer and use it in GitHub Desktop.
Example DSC Configuration of an iSCSI Target
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
configuration Sample_ciSCSIInitiator | |
{ | |
Param | |
( | |
[String] $NodeName = 'LocalHost' | |
) | |
Import-DscResource -Module ciSCSI | |
Node $NodeName | |
{ | |
Service iSCSIService | |
{ | |
Name = 'MSiSCSI' | |
StartupType = 'Automatic' | |
State = 'Running' | |
} | |
ciSCSITargetPortal iSCSITargetPortal | |
{ | |
Ensure = 'Present' | |
TargetPortalAddress = '192.168.128.10' | |
InitiatorPortalAddress = '192.168.128.20' | |
DependsOn = "[WindowsFeature]iSCSIService" | |
} # End of ciSCSITargetPortal Resource | |
ciSCSITarget iSCSITarget | |
{ | |
Ensure = 'Present' | |
NodeAddress = 'iqn.1991-05.com.microsoft:fileserver01-cluster-target' | |
TargetPortalAddress = '192.168.128.10' | |
InitiatorPortalAddress = '192.168.128.20' | |
IsPersistent = $true | |
DependsOn = "[ciSCSITargetPortal]iSCSITargetPortal" | |
} # End of ciSCSITarget Resource | |
} # End of Node | |
} # End of Configuration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment