cookbook 'virtual_hosts', '~> 0.1.1'
virtual_hosts (2) Versions 0.1.1 Follow1
Configures Apache virtual hosts
cookbook 'virtual_hosts', '~> 0.1.1', :supermarket
knife supermarket install virtual_hosts
knife supermarket download virtual_hosts
Virtual Hosts Cookbook
This cookbook makes configuring Apache virtual hosts.
Especially useful for Vagrant.
Usage
Vagrant::Config.run do |config|
chef.add_recipe "apache2"
chef.add_recipe "virtual_hosts"
config.vm.provision :chef_solo do |chef|
chef.json = {
:virtual_hosts => [{
"web1" => {
"docroot" => "/home/vagrant/web2",
"server_name" => "web1.local",
"server_aliases" => ["*.webapp1"],
},
"web2" => {
"docroot" => "/home/vagrant/web2",
"server_name" => "web2.local",
"server_aliases" => ["*.webapp2"],
}
}]
}
end
end
Contributing
- Fork the repository on Github
- Create a named feature branch
- Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License
The MIT License
Copyright (c) 2013 Andrey Deryabin
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Dependent cookbooks
apache2 >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.1 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.1 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.1 failed this metric
FC064: Ensure issues_url is set in metadata: virtual_hosts/metadata.rb:1
FC065: Ensure source_url is set in metadata: virtual_hosts/metadata.rb:1
FC066: Ensure chef_version is set in metadata: virtual_hosts/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: virtual_hosts/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1 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.1 failed this metric
0.1.1 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.1 failed this metric
FC064: Ensure issues_url is set in metadata: virtual_hosts/metadata.rb:1
FC065: Ensure source_url is set in metadata: virtual_hosts/metadata.rb:1
FC066: Ensure chef_version is set in metadata: virtual_hosts/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: virtual_hosts/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1 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.1 failed this metric
FC065: Ensure source_url is set in metadata: virtual_hosts/metadata.rb:1
FC066: Ensure chef_version is set in metadata: virtual_hosts/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: virtual_hosts/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1 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.1 failed this metric
0.1.1 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