{"id":18498644,"url":"https://github.com/zircote/chef-zend","last_synced_at":"2025-07-14T01:08:49.847Z","repository":{"id":4510409,"uuid":"5650061","full_name":"zircote/chef-zend","owner":"zircote","description":"an opscode chef cookbook for Zend Server","archived":false,"fork":false,"pushed_at":"2013-03-22T14:46:53.000Z","size":168,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T00:45:29.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zircote.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-02T17:03:48.000Z","updated_at":"2015-12-22T10:51:05.000Z","dependencies_parsed_at":"2022-08-30T06:11:10.702Z","dependency_job_id":null,"html_url":"https://github.com/zircote/chef-zend","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fchef-zend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fchef-zend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fchef-zend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Fchef-zend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zircote","download_url":"https://codeload.github.com/zircote/chef-zend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076977,"owners_count":22010630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:41:51.289Z","updated_at":"2025-05-14T05:30:48.665Z","avatar_url":"https://github.com/zircote.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Description\n===========\n\nInstalls and configures\n - [Zend Server Community Edition](http://www.zend.com/en/products/server-ce/)\n - [Zend Server](http://www.zend.com/en/products/server/)\n - [Zend Server Cluster Manager](http://www.zend.com/en/products/server/multi-server-support)\n\nRequirements\n============\n\n#### `zend` cookbook\n\nTested on\n - Ubuntu 12.04LTS x86_64\n - Centos 6.3 x86_64\n\n\nAttributes\n==========\n\n```ruby\n# zend-server: Zend Server\n# zend-ce: Zend Server Community Edition\n# zend-cluster-manager: Zend Server Cluster Manager\ndefault[:zend][:install] = \"zend-server\" # zs|ce|zcm\n# 5.2|5.3\ndefault[:zend][:php][:version] = \"5.3\"\n```\n\n### Zend Server Settings\n\nCluster manager settings, license, order id, password and eula acceptance.\n\n```ruby\n# Cluster Manager Membership Provisioning.\ndefault[:zend][:cluster_manager][:add_server] = false\n# name to give new server (required)\ndefault[:zend][:cluster_manager][:name] = nil\n# new server's GUI password (required)\ndefault[:zend][:cluster_manager][:password] = nil\n# Web API key name (required)\ndefault[:zend][:cluster_manager][:key_name] = nil\n# Web API secret key (required)\ndefault[:zend][:cluster_manager][:secret_key] = nil\n# https://zcm_host:10082/ZendServerManager\n# http://zcm_host:10081/ZendServerManager\n# new server's full ZS GUI URL (required)\ndefault[:zend][:cluster_manager][:url] = \"http://localhost:10081/ZendServerManager\"\n# do not restart PHP after adding this server (PHP is restarted by default)\ndefault[:zend][:cluster_manager][:restart] = true\n# propagate the new server's settings to the entire cluster\ndefault[:zend][:cluster_manager][:propagate] = true\n# retry action \u003cvalue\u003e times if server is locked; default is 3\ndefault[:zend][:cluster_manager][:server_retry] = 3\n# wait \u003cvalue\u003e seconds between retires; default is 5\ndefault[:zend][:cluster_manager][:wait] = 5\n\n```\n\n### Optional package selections\n\n```ruby\n# To install the package(s)\ndefault[:zend][:packages]['ssh2'] = [:install]\n# To remove the package(s)\ndefault[:zend][:packages]['ssh2'] = [:remove]\n# to install and/or upgrade the package(s)\ndefault[:zend][:packages]['ssh2'] = [:install, :upgrade]\n```\n\n## Resources\n\n`zend_cluster`\n\n```ruby\nzend_cluster \"my-zend-server-name\" do\n  zs_url \"http://localhost:10081/ZendServer\" # optional\n  password \"vagrant\"\n  server_retry 10 # optional\n  wait 5 # optional\n  restart false # optional\n  propagate false # optional\n  zcm_url \"http://zcm.localhost.local:10081/ZendServerManager\"\n  key_name \"zircote-api-key\"\n  secret_key node[:zend][:cluster_manager][:secret_key]\nend\n```\n\n`zend_eula`\n\n```ruby\nzend_eula \"accept-my-eula\"\n```\n\n`zend_license`\n\n```ruby\nzend_license \"#{node[:zend][:order_id]} do\n  license_key node[:zend][:license_key]\n  # optionally you may specify the order_id\n  order_id node[:zend][:order_id]\nend\n```\n\n`zend_password`\n\n```ruby\nzend_password \"#{node[:zend][:gui_passwd]}\"\n```\n\n\n### Using with vagrant\n\n```ruby\nVagrant::Config.run do |config|\n    config.vm.box = \"precise64\"\n    config.vm.provision :chef_solo do |chef|\n      chef.cookbooks_path = \"cookbooks\"\n      chef.roles_path = \"roles\"\n      chef.data_bags_path = \"bags\"\n      chef.add_recipe \"zend\"\n      chef.json = {\n          :zend =\u003e {\n              :install =\u003e \"zend-server\",\n              :packages =\u003e {\n                  'pdo-mysql' =\u003e :install,\n                  'mysqli' =\u003e :install,\n                  'curl' =\u003e :install,\n                  'ssh2' =\u003e :install,\n                  'xdebug' =\u003e :install,\n                  'mongo' =\u003e :install,\n                  'xsl' =\u003e :install,\n                  'json' =\u003e :install,\n                  'sockets' =\u003e :install,\n                  'phar' =\u003e :install\n              },\n              :php =\u003e {\n                  :version =\u003e \"5.3\"\n              },\n              :accept_eula =\u003e true,\n              :gui_passwd =\u003e \"vagrant\",\n              :order_id =\u003e \"US-9999-99\",\n              :license_key =\u003e \"xxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n          }\n      }\n    end\n  end\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fchef-zend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzircote%2Fchef-zend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fchef-zend/lists"}