Using DSC to Install Apache on CentOS 6.7

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Kristopher Bash Kristopher Bash 7 months, 1 week ago.

  • Author
    Posts
  • #38350
    Profile photo of Steve Ayers
    Steve Ayers
    Participant

    My configuration file is:

    Configuration DSCLinux02
    {
        Import-DSCResource -Module nx
        
        Node "10.0.0.7" {
            nxPackage httpdInstall
            {
                Name = "httpd"
                Ensure = "Present"
                PackageManager = "Yum"
            }
     
        }
    }
    

    My MOF is:

    /*
    @TargetNode='10.0.0.7'
    @GeneratedBy=DomainAdmin
    @GenerationDate=04/28/2016 16:55:03
    @GenerationHost=SA-DSC-SRV1
    */
    
    instance of MSFT_nxPackageResource as $MSFT_nxPackageResource1ref
    {
    ResourceID = "[nxPackage]httpdInstall";
     Ensure = "Present";
     SourceInfo = "::6::9::nxPackage";
     Name = "httpd";
     ModuleName = "nx";
     PackageManager = "Yum";
     ModuleVersion = "1.0";
    
    };
    
    instance of OMI_ConfigurationDocument
    {
     Version="1.0.0";
     Author="DomainAdmin";
     GenerationDate="04/28/2016 16:55:03";
     GenerationHost="SA-DSC-SRV1";
    };
    
    

    My Error is:

    Loading the instance document from the pending location did not succeed.
        + CategoryInfo          : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
        + FullyQualifiedErrorId : OMI:MI_Result:1
        + PSComputerName        : 10.0.0.7
    
  • #38395
    Profile photo of Kristopher Bash
    Kristopher Bash
    Participant

    What version of the DSC for Linux agent are you using?

You must be logged in to reply to this topic.