From 8f71fd048bf08109bd378c5061127bdeeb828852 Mon Sep 17 00:00:00 2001 From: Freibuis Date: Thu, 11 Aug 2016 22:58:36 +1000 Subject: [PATCH 1/5] use tar with --dereference to follow symlinks required if wp-content directory is a symlink --- manifests/instance/app.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/instance/app.pp b/manifests/instance/app.pp index 467c800..4eeae90 100644 --- a/manifests/instance/app.pp +++ b/manifests/instance/app.pp @@ -79,7 +79,7 @@ group => $wp_group, } -> exec { "Extract wordpress ${install_dir}": - command => "tar zxvf ./${install_file_name} --strip-components=1", + command => "tar zxvf ./${install_file_name} --dereference --strip-components=1", creates => "${install_dir}/index.php", user => $wp_owner, group => $wp_group, From d6659903e18abad06c24bdc9e9b2140ec03f2989 Mon Sep 17 00:00:00 2001 From: Freibuis Date: Wed, 16 Nov 2016 10:35:32 +1000 Subject: [PATCH 2/5] wordpress now uses SSL --- manifests/instance.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/instance.pp b/manifests/instance.pp index bd4c0a8..c9837d4 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -74,7 +74,7 @@ $db_name, $db_user, $install_dir = $title, - $install_url = 'http://wordpress.org', + $install_url = 'https://wordpress.org', $version = '3.8', $create_db = true, $create_db_user = true, From 508189a7a581c53d215e31c6c216d31a693d9bb9 Mon Sep 17 00:00:00 2001 From: Freibuis Date: Wed, 16 Nov 2016 10:55:15 +1000 Subject: [PATCH 3/5] This should be default undef not an empty string --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 4ba78c1..9f2a41b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -93,7 +93,7 @@ $db_password = 'password', $wp_owner = 'root', $wp_group = '0', - $wp_lang = '', + $wp_lang = undef, $wp_config_content = undef, $wp_plugin_dir = 'DEFAULT', $wp_additional_config = 'DEFAULT', From cba532c776d3dde4709f3163c1aaffabadd68409 Mon Sep 17 00:00:00 2001 From: Freibuis Date: Wed, 16 Nov 2016 11:39:37 +1000 Subject: [PATCH 4/5] This should be default undef not an empty string --- manifests/instance.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/instance.pp b/manifests/instance.pp index c9837d4..d4e3e20 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -82,7 +82,7 @@ $db_password = 'password', $wp_owner = 'root', $wp_group = '0', - $wp_lang = '', + $wp_lang = undef, $wp_config_content = undef, $wp_plugin_dir = 'DEFAULT', $wp_additional_config = 'DEFAULT', From 91f0621f244f4d7aa8bc0ce7739550b70b88f17b Mon Sep 17 00:00:00 2001 From: Freibuis Date: Wed, 16 Nov 2016 11:40:10 +1000 Subject: [PATCH 5/5] wordpress now uses SSL --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 9f2a41b..e84f301 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -83,7 +83,7 @@ # class wordpress ( $install_dir = '/opt/wordpress', - $install_url = 'http://wordpress.org', + $install_url = 'https://wordpress.org', $version = '3.8', $create_db = true, $create_db_user = true,