Remco;11712 wrote:avishnyakov;11711 wrote:Looks good. Would the password value remain the same across different VMs?
Yes, the hash should be the same across environments.
Works well, thanks! Here is DSC magic for other folks who may be interested. A very minimal config with snapshot folder and password set, enough to get GridNode up and running.
I would recommend to install GridNode manually, then set a password via UI, and then grab it from the registry.
Configuration Install_NCrunchGridNodeServer
{
Import-DscResource -Module CChoco
Node localhost
{
cChocoPackageInstaller NCrunchGrid
{
Name = 'ncrunch-gridnodeserver'
Ensure = 'Present'
AutoUpgrade = $false
Version = $Node.PackageVersion
}
File NCrunchGridWorkingFolder {
DependsOn = "[cChocoPackageInstaller]NCrunchGrid"
Type = 'Directory'
DestinationPath = 'C:\_ncrunch'
Ensure = "Present"
}
Registry NCrunchGridRegPassword {
DependsOn = "[File]NCrunchGridWorkingFolder"
Ensure = "Present"
Key = "HKLM:\SOFTWARE\Remco Software\NCrunch Grid Node"
ValueName = "Password"
ValueData = "l1baZf5Srvt2UfUmYpuaBM9hGRcsqjv+An/SokCfzk8="
ValueType = "String"
}
Registry NCrunchGridRegWorkingDir {
DependsOn = "[File]NCrunchGridWorkingFolder"
Ensure = "Present"
Key = "HKLM:\SOFTWARE\Remco Software\NCrunch Grid Node"
ValueName = "SnapshotStorageDirectory"
ValueData = "C:\_ncrunch"
ValueType = "String"
}
Service NCrunchGridService
{
DependsOn = "[Registry]NCrunchGridRegPassword", "[Registry]NCrunchGridRegWorkingDir"
Name = "NCrunchGridNode"
StartupType = "Automatic"
State = "Running"
Credential = $domainUserCreds
}
}
}