Git Product home page Git Product logo

custom_web's Introduction

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.

custom_web's People

Contributors

tpetchel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rmiesen ghaliba3

custom_web's Issues

the custom_web_site::delete action does not remove apache2 from all supported platforms

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.

New chef_version setting for metadata.rb in Foodcritic

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.