Using DSC to Install Apache on CentOS 6.7

Welcome Forums DSC (Desired State Configuration) Using DSC to Install Apache on CentOS 6.7

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
2 years, 12 months ago.

  • Author
    Posts
  • #38350

    Participant
    Topics: 4
    Replies: 3
    Points: 0
    Rank: Member

    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

    Participant
    Topics: 0
    Replies: 2
    Points: 0
    Rank: Member

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

The topic ‘Using DSC to Install Apache on CentOS 6.7’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort