Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only do wordpress, no mysql bits right now

  • Loading branch information...
commit 32ade210dc24d7640ee44ba086fc56bbedfba855 1 parent e159cf1
@temas temas authored
Showing with 8 additions and 5 deletions.
  1. +1 −0  attributes/default.rb
  2. +7 −5 recipes/default.rb
View
1  attributes/default.rb
@@ -24,4 +24,5 @@
default['wordpress']['dir'] = "/var/www/wordpress"
default['wordpress']['db']['database'] = "wordpressdb"
default['wordpress']['db']['user'] = "wordpressuser"
+default['wordpress']['db']['host'] = "hostname"
default['wordpress']['server_aliases'] = [node['fqdn']]
View
12 recipes/default.rb
@@ -18,7 +18,7 @@
#
include_recipe "apache2"
-include_recipe "mysql::server"
+#include_recipe "mysql::server"
include_recipe "php"
include_recipe "php::module_mysql"
include_recipe "apache2::mod_php5"
@@ -27,9 +27,9 @@
# the release of 0.10.10 and the inclusion of the new chef_gem.
# code curtesy @hectcastro
# http://tickets.opscode.com/browse/COOK-1009
-gem_package "mysql" do
- action :install
-end
+#gem_package "mysql" do
+# action :install
+#end
if node.has_key?("ec2")
server_fqdn = node['ec2']['public_hostname']
@@ -77,6 +77,7 @@
creates "#{node['wordpress']['dir']}/wp-settings.php"
end
+=begin
execute "mysql-install-wp-privileges" do
command "/usr/bin/mysql -u root -p\"#{node['mysql']['server_root_password']}\" < #{node['mysql']['conf_dir']}/wp-grants.sql"
action :nothing
@@ -121,6 +122,7 @@
log "Navigate to 'http://#{server_fqdn}/wp-admin/install.php' to complete wordpress installation" do
action :nothing
end
+=end
template "#{node['wordpress']['dir']}/wp-config.php" do
source "wp-config.php.erb"
@@ -136,7 +138,7 @@
:logged_in_key => node['wordpress']['keys']['logged_in'],
:nonce_key => node['wordpress']['keys']['nonce']
)
- notifies :write, "log[Navigate to 'http://#{server_fqdn}/wp-admin/install.php' to complete wordpress installation]"
+ #notifies :write, "log[Navigate to 'http://#{server_fqdn}/wp-admin/install.php' to complete wordpress installation]"
end
apache_site "000-default" do
Please sign in to comment.
Something went wrong with that request. Please try again.