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

zendserver (24) Versions 1.6.4

Installs/Configures zendserver

Policyfile
Berkshelf
Knife
cookbook 'zendserver', '= 1.6.4', :supermarket
cookbook 'zendserver', '= 1.6.4'
knife supermarket install zendserver
knife supermarket download zendserver
README
Dependencies
Changelog
Quality 0%

zendserver Cookbook

This cookbook installs and manages Zend Server

It allows bootstrapping Zend Server in single server mode or cluster mode.

IMPORTANT

By using this cookbook you agree to the Zend Server EULA. It will automatically be accepted by default in the install process.

Requirements

Platforms

  • Debian, Ubuntu
  • RHEL, CentOS, Oracle Linux

Cookbooks

  • aptitude
  • yum

Attributes

zendserver::single

Key Type Description Required Default
['zendserver']['version'] string Zend Server version to install Yes 8.0
['zendserver']['phpversion'] string PHP version to install Yes 5.6
['zendserver']['nginx'] boolean Set in you are using Nginx instead of Apache true or false boolean No false
['zendserver']['ordernumber'] string The order number part of the license information (if not provided, will bootstrap in enterprise trial) No -
['zendserver']['licensekey'] string The license key part of the license information No -
['zenserver']['acceptEula] boolean Whether or not the End User License Agreement should be accepted by default upon bootstrap No true
['zendserver']['production'] boolean Bootstrap Zend Server in production (true)/development(false) mode (See zend server <a href="http://files.zend.com/help/Zend-Server/zend-server.htm#launching_zend_server.htm">documentation</a> for more details) Yes true
['zendserver']['apikeyname'] string Name for the web API key that the installer creates. The api key is required for all management functionality Yes -
['zendserver']['apikeysecret'] string A 64 character key used for signing API requests Yes -
['zendserver']['adminpassword'] string A 4-20 character password for the admin user (use this to log into the Zend Server GUI) No p2ssw0rd1
['zendserver']['adminemail'] string An email address for the Zend Server admin No -

zendserver::cluster

Requires all the attributes listed for single, plus a valid MySQL database.

Key Type Description Required Default
['zendserver']['dbhost'] string A MySQL database server host address - required for clustering Yes -
['zendserver']['dbusername'] string The MySQL server username, must be able to create a database - required for clustering Yes -
['zendserver']['dbpassword'] string The MySQL server password - required for clustering Yes -
['zendserver']['dbname'] string The MySQL server database name - required for clustering No ZendServer

Recipes

zendserver::single

Installs Zend Server, and bootstraps in single server mode

Just include zendserver in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[zendserver::single]"
  ]
}

zendserver::cluster

Installs Zend Server, and bootstraps in cluster mode

Just include zendserver in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[zendserver::cluster]"
  ]
}

Providers

zendserver_extension - Enabling/disabling extensions

In your cookbook, in a recipe:

include_recipe "zendserver"

zendserver_extension "mongo" do
    action :enable
    notifies :restart, 'service[zend-server]'
end

To enable many extensions without repeating the code block:
```ruby
include_recipe "zendserver"

["mongo", "memcached", "mssql"].each do |ext|
zendserver_extension ext do
action :enable
notifies :restart, 'service[zend-server]'
end
end
```

Notice the notification - By default the action will not restart the server, the recommended way to restart is to add the notification (They will be queued up, and only one restart will occur at the end).

zendserver_directive - Set ini directive values

In your wrapper cookbook, use in a recipe:

include_recipe "zendserver"

zendserver_directive "error_reporting" do
  value "E_ALL"
  notifies :restart, 'service[zend-server]'
end

You probably want to set more directives, so it's reasonable to define a hash of directives in a role, environment or default attributes and set them in one go like this:

Set the attributes:

{
  ...,
  "default_attributes": {
    "zendserver": {
      "directives": {
        "error_reporting": "E_ALL",
        "display_errors": "0",
        "display_startup_errors": "0"
      }
    }
  },
  ...
}

Use the attributes hash to set the directives:

include_recipe "zendserver"

node[:zendserver][:directives].each do |d, v|
  zendserver_directive d do
    value v
    notifies :restart, 'service[zend-server]'
  end
end

Contributing

e.g.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

Dependent cookbooks

apt >= 0.0.0
yum >= 0.0.0
apache2 >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

zend-server CHANGELOG

This file is used to list changes made in each version of the zend-server cookbook.

0.1.0

  • [your_name] - Initial release of zend-server

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Foodcritic Metric
            

1.6.4 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/libraries/zendserver.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/libraries/zendserver.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/libraries/zendserver.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/libraries/zendserver.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/directive.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/directive.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/extension.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/extension.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/extension.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/extension.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/applydirectives.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/bootstrapsingle.rb:32
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:39
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:62
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:73
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:74
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/manage.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/manage.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/manage.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/manage.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/manage.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/manage.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/manage.rb:34
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/unjoincluster.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/unjoincluster.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/unjoincluster.rb:7
FC009: Resource attribute not recognised: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/default.rb:4
FC016: LWRP does not declare a default action: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/resources/default.rb:1
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/default.rb:2
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/default.rb:11
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/default.rb:20
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear.rb:33
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear.rb:51
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear.rb:62
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear.rb:73
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear_channel.rb:31
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear_channel.rb:40
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear_channel.rb:49
FC017: LWRP does not notify when updated: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear_channel.rb:69
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:1
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:2
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:5
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:6
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:7
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:9
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:10
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:13
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:16
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:19
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:24
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:25
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:26
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:30
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:31
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:33
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:35
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:36
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:37
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:38
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/attributes/default.rb:40
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/providers/pear.rb:220
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:20
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:36
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:37
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/default.rb:61
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:9
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/joincluster.rb:18
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/unjoincluster.rb:6
FC019: Access node attributes in a consistent manner: /tmp/cook/b3fa68da4ca80f1860a0de96/zendserver/recipes/unjoincluster.rb:9