custom_web
This cookbook is a reference implementation for the Learn Chef module Build a custom resource.
This cookbook defines a custom resource type that configures Apache HTTP Server on CentOS and Ubuntu.
Reference cookbook for the Learn Chef module
Home Page: https://learn.chef.io/modules/build-a-custom-resource/
License: Apache License 2.0
This cookbook is a reference implementation for the Learn Chef module Build a custom resource.
This cookbook defines a custom resource type that configures Apache HTTP Server on CentOS and Ubuntu.
While I was going through the Configure Apache web server on Linux module on http://learn.chef.io, I noticed that the :delete
action in resources/site.rb hard-codes the package name of apache2:
action :delete do
package 'httpd' do
action :delete
end
end
In doing so, (1) the apache2 package will not be removed on the Ubuntu platform and (2) the :delete
action might cause a chef run to fail on Ubuntu, depending on how the package resource responds to attempts to uninstall a package that doesn't even exist in repos known to the OS.
Hi!
In the "Quickstart" parts of this tutorial page:
https://learn.chef.io/modules/build-a-custom-resource/linux/virtualbox#/
the tasks are to check that this custom_web cookbook is clean.
A rule was added to foodcritic earlier this year, FC066, that is enabled by default and reports an error:
[custom_web]$ foodcritic .
Checking 4 files
x...
FC066: Ensure chef_version is set in metadata: ./metadata.rb:1
I'm not sure what the best version setting would be for this cookbook. The change was made in foodcritic here: Foodcritic/foodcritic#528
thanks!
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.