简体   繁体   中英

Two package resource is not installing continuously in Powershell DSC

I am using Package Resource to install the MSIs and EXEs in PowerShell DSC. I am using pull modal. I am triggering the Consistency Job to check the configurations is applied or not for testing.(Unable to wait 30 mins for single testing :) ) Here is My code.

   Package OpenDeploy
        {
         Name = "Interwoven OpenDeploy 6.2.0 Receiver"
         Path = "D:\Deployments\Prerequisites\IWOVopendeployRcvr.exe"
         ProductId = ''
         DependsOn = "[File]CopyPrerequisites"
         Ensure = "Present"
         Arguments = '/s /f1"D:\Deployments\Prerequisites\setup.iss"'
        }
       Package InstallMSXML
        {
         Name = "MSXML4.0"
         Path = "D:\Deployments\Prerequisites\msxml4.0_SP3.msi"
         ProductId = "XXXX67F1-C11F-4F76-858B-5812ADC83B94"
         DependsOn = "[File]CopyPrerequisites"
         Ensure = "Present"
        }
        Package Install_WebSite
        {
         Name = " Install_WebSite"
         Path = "D:\Deployments\Prerequisites\Install_WebSite.msi"
         ProductId = "XXXX3F53-982D-470C-9036-1DDFF81EC8B3"
         DependsOn = "[File]CopyPrerequisites"
         Ensure = "Present"
        }  

When I run the Job, one package is installing at time. The another package is installing next time and so on. We need to install 10+ installers. If one at time then configuration will take more than a day to configure completely if one installation happen on every 30 Mins.

Is this there anyway to install all packages at once?

Thanks in advance.

Since you're installing MSI's, DSC isn't your limitation ( How to run multiple msi files ). Don't look at DSC as a "performance" improvement. It is more about ensuring once the server is created/configured you know the precise state (versus a manual install) and you can keep the server in the desired state.

If your provisioning VM's or using a Docker-like technology, consider creating on instance and then saving and ami or container to provision additional instances from...if you're not virtualized, you need to be...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM