Giter Site home page Giter Site logo

chef-zf2's Introduction

ZF2 cookbook


Build Status Version Status

Requirements

Install chef-dk from the downloads page on the Chef-DK github page

Install latest Vagrant from the Vagrant downloads page

Install the Vagrant plugins: Berkshelf, Omnibus, Hostmanager

$ vagrant plugin install vagrant-berkshelf
$ vagrant plugin install vagrant-omnibus
$ vagrant plugin install vagrant-hostmanager

Usage

Set the required project (git), database, virtualhost & users in the databags

$ vagrant up
$ vagrant halt

Use in an other cookbook

Add this cookbook as a dependency to the metadata.rb in your cookbook. check the current version in the metadata.rb

depends 'zf2', '~> 0.12.13'

Standalone (testing)

Set the required users & config in the databags.

$ kitchen create
$ kitchen converge
$ kitchen destroy

Known Issues

If the samba user setup is not done correct in the first run, to fix:

$ vagrant ssh
$ sudo su
$ smbpasswd -x developer
$ exit # (2x)
$ vagrant provision

Author

Author:: Triple-networks ([email protected])

chef-zf2's People

Contributors

bitdeli-chef avatar drecomm avatar rud5g avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chef-zf2's Issues

[Insight] Source code should not contain TODO comments - in recipes/php.rb, line 47

in recipes/php.rb, line 47

TODO comments are left in the code when a feature (or a bug) isn't completely developed (or fixed). You should complete the implementation and remove the comment.

# Chef::Node.send(:include, MysqlCookbook::Helpers)
# Chef::Resource::Mysql.send(:include, MysqlCookbook::Helpers)
# thesocketfile = socket_file
# Chef::Log.info("database helper: #{thesocketfile}")

# todo: replace with MysqlCookbook::Helpers socket_file
socket_file = "/run/mysql-default/mysqld.sock"

append_if_no_line 'set-php-apache2-mysql.default_socket' do
  path File.join(File.dirname(node['php']['conf_dir']), 'apache2', 'php.ini')
  line 'mysql.default_socket = ' + socket_file

Posted from SensioLabsInsight

[Insight] Source code should not contain XXX comments - in attributes/apache2.rb, line 34

in attributes/apache2.rb, line 34

XXX comments are left in the code when a piece of code needs refactoring. You should improve the implementation and remove the comment.

]

# custom
default['apache']['canonical_host'] = false

# XXX: apache2 cookbook 2.0.0 has bugs around changing the mpm and then attempting a graceful restart
# which fails and leaves the service down.
case node['platform']
  when 'ubuntu'
    if node['platform_version'].to_f >= 14.04
      force_override['apache']['mpm'] = 'prefork'

Posted from SensioLabsInsight

php conf.d directory does not exist

Chef::Exceptions::EnclosingDirectoryDoesNotExist
------------------------------------------------
Error executing action `create` on resource 'template[/etc/php5/conf.d/mailcatcher.ini]'

# In /tmp/vagrant-chef/9fc87ed290e5cc879fc734097fe9bc8d/cookbooks/zf2/recipes/mailcatcher.rb


 55:     template File.join(node['php']['ext_conf_dir'], 'mailcatcher.ini') do
 56:       source 'mailcatcher.ini.erb'
 57:       owner 'root'
 58:       group 'root'
 59:       mode '0644'
 60:       action :create
 61:     end
 62: 

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.