Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Cookbook Name:: bluepill
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright 2010, Opscode, Inc.
|
||||
# Copyright 2010-2015, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -17,32 +17,29 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
gem_package "i18n" do
|
||||
action :install
|
||||
end
|
||||
gem_package 'i18n'
|
||||
|
||||
gem_package "bluepill" do
|
||||
version node["bluepill"]["version"] if node["bluepill"]["version"]
|
||||
action :install
|
||||
gem_package 'bluepill' do
|
||||
version node['bluepill']['version'] if node['bluepill']['version']
|
||||
end
|
||||
|
||||
[
|
||||
node["bluepill"]["conf_dir"],
|
||||
node["bluepill"]["pid_dir"],
|
||||
node["bluepill"]["state_dir"]
|
||||
node['bluepill']['conf_dir'],
|
||||
node['bluepill']['pid_dir'],
|
||||
node['bluepill']['state_dir']
|
||||
].each do |dir|
|
||||
directory dir do
|
||||
recursive true
|
||||
owner "root"
|
||||
group node["bluepill"]["group"]
|
||||
owner 'root'
|
||||
group node['bluepill']['group']
|
||||
end
|
||||
end
|
||||
|
||||
file node["bluepill"]["logfile"] do
|
||||
owner "root"
|
||||
group node["bluepill"]["group"]
|
||||
mode "0755"
|
||||
file node['bluepill']['logfile'] do
|
||||
owner 'root'
|
||||
group node['bluepill']['group']
|
||||
mode '0755'
|
||||
action :create_if_missing
|
||||
end
|
||||
|
||||
include_recipe "bluepill::rsyslog" if node['bluepill']['use_rsyslog']
|
||||
include_recipe 'bluepill::rsyslog' if node['bluepill']['use_rsyslog']
|
||||
|
||||
Reference in New Issue
Block a user