cookbook 'dsc2', '~> 0.1.4'
dsc2 (5) Versions 0.1.4 Follow1
Installs dsc modules
cookbook 'dsc2', '~> 0.1.4', :supermarket
knife supermarket install dsc2
knife supermarket download dsc2
dsc Cookbook
Install DSC Modules from powershellgallery.com
Requirements
Platforms (tested)
- Windows Server 2012 (R2)
Chef
- Chef 12.8.1+
Package
- All tested platforms must have WMF 5.0 installed (
DSCResource
only works on Powershell>= 5.0
) and .NET 4.6.1
Cookbooks
-
windows
,~> 1.39.2
-
powershell
,~> 3.2.3
-
ms_dotnet
,~> 2.6.1
Usage
dsc2::default
Add include_recipe dsc2::default
in your recipe to make sure that WFM 5.0 and .NET 4.6.1 are installed.
Example
Example recipe that checks if PowerShell 5.0 and .NET 4.6.1 are installed first before running the dsc
custom resource
chk_posh = powershell_out!("$PSVersionTable.PSVersion.Major -ge '5'")
chk_reg = powershell_out!('(Get-ItemProperty -Path Registry::\'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\').Release')
if !chk_posh.stdout.include?('True')
include_recipe 'dsc2'
else
Chef::Log.info('WFM 5.0 and .NET 4.6.1 or above are installed, skipping')
end
dsc 'OctopusProjectsDSC' do
action :install
end
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Author(s)
- Author: Eugene Narciso (eugene.narciso@itaas.dimensiondata.com)
Copyright:: 2016, Dimension Data Cloud Solutions, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
windows ~> 1.43.0 |
powershell ~> 3.3.2 |
ms_dotnet ~> 2.6.1 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Change Log
* This Change Log was automatically generated by github_changelog_generator
Collaborator Number Metric
0.1.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.4 failed this metric
FC066: Ensure chef_version is set in metadata: dsc2/metadata.rb:1
FC069: Ensure standardized license defined in metadata: dsc2/metadata.rb:1
FC092: Custom resources should not define actions: dsc2/resources/dsc.rb:26
FC108: Resource should not define a property named 'name': dsc2/resources/dsc.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.4 passed this metric
Testing File Metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.4 failed this metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.4 failed this metric
FC066: Ensure chef_version is set in metadata: dsc2/metadata.rb:1
FC069: Ensure standardized license defined in metadata: dsc2/metadata.rb:1
FC092: Custom resources should not define actions: dsc2/resources/dsc.rb:26
FC108: Resource should not define a property named 'name': dsc2/resources/dsc.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.4 passed this metric
Testing File Metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.4 failed this metric
FC069: Ensure standardized license defined in metadata: dsc2/metadata.rb:1
FC092: Custom resources should not define actions: dsc2/resources/dsc.rb:26
FC108: Resource should not define a property named 'name': dsc2/resources/dsc.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.4 passed this metric
Testing File Metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.4 failed this metric
0.1.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number