Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

elefant (2) Versions 0.8.1

Installs/configures the Elefant CMS

Policyfile
Berkshelf
Knife
cookbook 'elefant', '~> 0.8.1', :supermarket
cookbook 'elefant', '~> 0.8.1'
knife supermarket install elefant
knife supermarket download elefant
README
Dependencies
Quality 17%

Description

This is a Chef recipe for installing
the Elefant CMS and associated LAMP stack
(Apache2, MySQL, SQLite, and PHP).

Requirements

Platform

  • Debian, Ubuntu

Tested on:

  • Ubuntu 12.04

Cookbooks

  • mysql
  • php
  • apache2
  • openssl

Permissions

Elefant requires write permissions on certain folders such as the cache folder,
but deploying to a VirtualBox virtual machine currently has the limitation that
you can't modify synced folder permissions. The workaround is to set the :nfs => true
flag on the config.vm.synced_folder setting like this:

config.vm.synced_folder "www", "/var/www/elefant", :nfs => true

This also has the benefit of being generally faster than the default synced folders.

Unfortunately, NFS is not supported on Windows. Windows users may want to try the
Vagrant::Mirror plugin, although
I have not tested whether it will work. If you get it running, please consider
sharing the steps it took to help others.

Note that NFS support also requires root privileges on the host machine, as the
vagrant up command will request your administrative privileges in order to modify
/etc/exports and to restart the NFS server daemon.

Attributes

  • node['elefant']['version'] - Set the version to download. Using 'latest' (the default) will install from the latest master on Github. Use underscores instead of spaces in the version name (e.g., '1_3_6_beta')
  • node['elefant']['document_root'] - Set the location to place the Elefant files. Default is /var/www/elefant.
  • node['elefant']['server_aliases'] - Array of ServerAliases to add to the Apache vhost. Default is *.

Usage

Add the "elefant" recipe to your node's run list or role, or include the recipe in another cookbook.
To add this recipe, clone this repository into your cookbooks folder and name the folder 'elefant'.

Chef will also install and configure the mysql, php, and apache2 recipes in addition to Elefant.

To complete the installation, visit http://hostname/install/ (change the hostname if you change the attribute values).

Sample Vagrantfile

Here is a sample Vagrantfile you can use to quickly get Elefant running:

Vagrant.configure("2") do |config|
    config.vm.box = "precise64"

    config.vm.network :private_network, ip: "192.168.56.101"

    config.vm.synced_folder "www", "/var/www/elefant", :nfs => true

    config.vm.provision :chef_solo do |chef|
        chef.cookbooks_path = "chef/cookbooks"
        chef.roles_path = "chef/roles"
        chef.data_bags_path = "chef/data_bags"
        chef.add_recipe "apt"
        chef.add_recipe "vim"
        chef.add_recipe "postfix"
        chef.add_recipe "mysql::server"
        chef.add_recipe "sqlite"
        chef.add_recipe "php"
        chef.add_recipe "php::module_mysql"
        chef.add_recipe "php::module_curl"
        chef.add_recipe "php::module_gd"
        chef.add_recipe "php::module_memcache"
        chef.add_recipe "php::module_sqlite3"
        chef.add_recipe "apache2"
        chef.add_recipe "elefant"

        chef.json = {
            :mysql => {
                :server_debian_password => "change-me",
                :server_root_password   => "change-me",
                :server_repl_password   => "change-me"
            }
        }
    end
end

License

The MIT License

Copyright (c) 2013 Johnny Broadway

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

php >= 0.0.0
openssl >= 0.0.0
apache2 >= 0.99.4
mysql >= 1.0.5
build-essential >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.8.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.8.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.8.1 failed this metric

FC064: Ensure issues_url is set in metadata: elefant/metadata.rb:1
FC065: Ensure source_url is set in metadata: elefant/metadata.rb:1
FC066: Ensure chef_version is set in metadata: elefant/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: elefant/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: elefant/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.8.1 passed this metric

Testing File Metric
            

0.8.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.8.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