dsccommunity / xwordpress Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Fails on the common test, due to that the test framework does not support composite resource at the moment.
Context DscResources\xIisWordPressSite\xIisWordPressSite.Schema.psm1
There are parse errors in C:\projects\xwordpress\DscResources\xIisWordPressSite\xIisWordPressSite.Schema.psm1:
Extent : xWebSite
ErrorId : ResourceNotDefined
Message : Undefined DSC resource 'xWebSite'. Use Import-DSCResource to import the resource.
IncompleteInput : False
Extent : xWebSite
ErrorId : ResourceNotDefined
Message : Undefined DSC resource 'xWebSite'. Use Import-DSCResource to import the resource.
IncompleteInput : False
Extent : xRemoteFile
ErrorId : ResourceNotDefined
Message : Undefined DSC resource 'xRemoteFile'. Use Import-DSCResource to import the resource.
IncompleteInput : False
Extent : xArchive
ErrorId : ResourceNotDefined
Message : Undefined DSC resource 'xArchive'. Use Import-DSCResource to import the resource.
IncompleteInput : False
[-] Module file 'DscResources\xIisWordPressSite\xIisWordPressSite.Schema.psm1' should not contain parse errors 81ms
Expected $false, but got $true.
248: $containsParseErrors | Should -Be $false
at <ScriptBlock>, C:\projects\xwordpress\DscResource.Tests\Meta.Tests.ps1: line 248
Errors from PS script analyzer are causing the tests to fail like this.
This resource module cannot be released until these errors are fixed or suppressed and the tests are passing.
'Get-DscResource -name xIisWordPressSite' doesn't discover the module.
Files associated with the resource are not formatted correctly.
Work need to be done to convert this repository to use the new CI pipeline.
https://dsccommunity.org/blog/convert-a-module-for-continuous-delivery/
When one installs the modules that are required by Wordpress configuration from powershell gallery, the resource name for xPhp has changed in the latest version of xPhp module , and the new name is xPhpProvision. The below configuration resource block needs to be updated to refer to the new resource:
Old version:
xPhp php
{
InstallMySqlExt = $true
PackageFolder = $Node.PackageFolder
DownloadUri = $Node.Php.DownloadURI
DestinationPath = $Node.Php.Path
ConfigurationPath = $Node.Php.TemplatePath
Vc2012RedistDownloadUri = $Node.Php.Vc2012RedistUri
}
Proposed version:
xPhpProvision php
{
InstallMySqlExt = $true
PackageFolder = $Node.PackageFolder
DownloadUri = $Node.Php.DownloadURI
DestinationPath = $Node.Php.Path
ConfigurationPath = $Node.Php.TemplatePath
Vc2012RedistDownloadUri = $Node.Php.Vc2012RedistUri
}
For the repro have a VM with latest WMF 5.0 and run the following script:
Write-Host "Installing required modules..."
Install-Module xWebAdministration -MinimumVersion 1.3.2 -Force
Install-Module xPSDesiredStateConfiguration -MinimumVersion 3.0.1 -Force
Install-Module xMySql -MinimumVersion 1.0 -Force
Install-Module xWordPress -MinimumVersion 1.0 -Force
Install-Module xPhp -MinimumVersion 1.0.1 -Force
In the updated 2.0 version of xMySql, 'ServiceName' is no longer needed and there are a couple new required members that need to be added in addition. (SingleNodeEndToEndWordPress.ps1, line 109)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.