Update cookbooks and add wordpress cookbook

This commit is contained in:
Greg Karékinian
2016-02-19 18:09:49 +01:00
parent 9ba973e3ac
commit 820b0ab3f8
606 changed files with 22421 additions and 14084 deletions

View File

@@ -0,0 +1,34 @@
#
# Author:: Chris Marchesi <cmarchesi@paybyphone.com>
# Cookbook Name:: php
# Resource:: fpm_pool
#
# Copyright:: 2015, Opscode, Inc <legal@opscode.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
default_action :install
actions :install, :uninstall
attribute :pool_name, :kind_of => String, :name_attribute => true
attribute :listen, :default => '/var/run/php5-fpm.sock'
attribute :user, :kind_of => String, :default => node['php']['fpm_user']
attribute :group, :kind_of => String, :default => node['php']['fpm_user']
attribute :process_manager, :kind_of => String, :default => 'dynamic'
attribute :max_children, :kind_of => Integer, :default => 5
attribute :start_servers, :kind_of => Integer, :default => 2
attribute :min_spare_servers, :kind_of => Integer, :default => 1
attribute :max_spare_servers, :kind_of => Integer, :default => 3
attribute :chdir, :kind_of => String, :default => '/'
attribute :additional_config, :kind_of => Hash, :default => {}

View File

@@ -1,9 +1,9 @@
#
# Author:: Seth Chisamore <schisamo@opscode.com>
# Author:: Seth Chisamore <schisamo@getchef.com>
# Cookbook Name:: php
# Resource:: pear_package
#
# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
# Copyright:: 2011-2014, Chef Software, Inc <legal@getchef.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,6 +21,14 @@
default_action :install
actions :install, :upgrade, :remove, :purge
state_attrs :channel,
:directives,
:options,
:package_name,
:preferred_state,
:version,
:zend_extensions
attribute :package_name, :kind_of => String, :name_attribute => true
attribute :version, :default => nil
attribute :channel, :kind_of => String

View File

@@ -1,9 +1,9 @@
#
# Author:: Seth Chisamore <schisamo@opscode.com>
# Author:: Seth Chisamore <schisamo@getchef.com>
# Cookbook Name:: php
# Resource:: pear_channel
#
# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
# Copyright:: 2011-2014, Chef Software, Inc <legal@getchef.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,6 +21,9 @@
default_action :discover
actions :discover, :add, :update, :remove
state_attrs :channel_name,
:channel_xml
attribute :channel_name, :kind_of => String, :name_attribute => true
attribute :channel_xml, :kind_of => String