# limitations under the License.
#
+node.default[:ssl][:certificates] = node[:ssl][:certificates] | ["crm.osmfoundation"]
+
include_recipe "wordpress"
include_recipe "mysql"
+package "wkhtmltopdf"
+
passwords = data_bag_item("civicrm", "passwords")
database_password = passwords["database"]
-admin_password = passwords["admin"]
site_key = passwords["key"]
mysql_user "civicrm@localhost" do
end
wordpress_site "crm.osmfoundation.org" do
- ssl_enabled false
+ ssl_enabled true
+ ssl_certificate "crm.osmfoundation"
database_name "civicrm"
database_user "civicrm"
database_password database_password
end
+wordpress_theme "osmblog-wp-theme" do
+ site "crm.osmfoundation.org"
+ repository "git://github.com/harry-wood/osmblog-wp-theme.git"
+end
+
civicrm_version = node[:civicrm][:version]
civicrm_directory = "/srv/crm.osmfoundation.org/wp-content/plugins/civicrm"
source "cron.erb"
owner "root"
group "root"
- mode 0644
+ mode 0600
variables :directory => civicrm_directory, :passwords => passwords
end