From dfb383f817b7e20396f70dd9a98e628bc597b40a Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 12:24:38 -0500 Subject: [PATCH 01/19] Update main.yml --- roles/nextcloud/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 20363d0df..0b7d6b595 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -9,10 +9,10 @@ include_tasks: install.yml when: nextcloud_install and (not nextcloud_installed is defined or not nextcloud_page.stat.exists) -- name: Provision NextCloud's Mysql DB +- name: Provision Nextcloud's MySQL DB, run Nextcloud's install wizard, etc include_tasks: setup.yml when: nextcloud_install and not installing -- name: Enables or disable Nextcloud! +- name: Enable or disable Nextcloud include_tasks: enable_or_disable.yml when: nextcloud_install or nextcloud_installed is defined From 0f2c126249b7a0aa05a46813b5cee4ba868f9565 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 12:26:55 -0500 Subject: [PATCH 02/19] Update setup.yml --- roles/nextcloud/tasks/setup.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/nextcloud/tasks/setup.yml b/roles/nextcloud/tasks/setup.yml index cc178957a..dda083f15 100644 --- a/roles/nextcloud/tasks/setup.yml +++ b/roles/nextcloud/tasks/setup.yml @@ -14,7 +14,7 @@ - ::1 - localhost -# the install wizard does not succeed if already installed +# The install wizard fails if already installed. - name: Determine if Nextcloud is installed shell: > php {{ nextcloud_prefix }}/nextcloud/occ status | @@ -37,7 +37,9 @@ become_user: "{{ apache_user }}" when: nextcloud_enabled and returned.stdout == "false" -- name: Allow access from all hosts and ips +# RELATED: /etc/apache2/sites-available/nextcloud.conf sourced from +# https://github.com/iiab/iiab/blob/master/roles/nextcloud/templates/nextcloud.conf.j2 +- name: 'Allow Nextcloud access from all hosts and IP addresses (SEE ALSO: /etc/apache2/sites-available/nextcloud.conf)' command: php {{ nextcloud_prefix }}/nextcloud/occ config:system:set trusted_domains 1 --value=* become: yes become_user: "{{ apache_user }}" From e75df9587b1e619b1b45ad7088cb3e690e4230d4 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 12:27:03 -0500 Subject: [PATCH 03/19] Update enable_or_disable.yml --- roles/nextcloud/tasks/enable_or_disable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nextcloud/tasks/enable_or_disable.yml b/roles/nextcloud/tasks/enable_or_disable.yml index 03e477080..a16f7ad49 100644 --- a/roles/nextcloud/tasks/enable_or_disable.yml +++ b/roles/nextcloud/tasks/enable_or_disable.yml @@ -23,7 +23,7 @@ state: absent when: not nextcloud_enabled and is_redhat -- name: Restart Apache, enabling/disabling http://box/nextcloud +- name: Restart {{ apache_service }}, enabling/disabling http://box/nextcloud systemd: name: "{{ apache_service }}" daemon-reload: yes From 80b8fbbcb720a3c8194b46d6fb144b4e61d255ab Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 16:31:43 -0500 Subject: [PATCH 04/19] Download the very latest Nextcloud: latest.tar.bz2 --- roles/nextcloud/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nextcloud/defaults/main.yml b/roles/nextcloud/defaults/main.yml index 996567e4e..61252b507 100644 --- a/roles/nextcloud/defaults/main.yml +++ b/roles/nextcloud/defaults/main.yml @@ -23,7 +23,7 @@ nextcloud_dl_url: https://download.nextcloud.com/server/releases nextcloud_orig_src_file_old: latest-15.tar.bz2 nextcloud_src_file_old: nextcloud_{{ nextcloud_orig_src_file_old }} # For NEW OS's where PHP 7.1+ is auto-detected -- e.g. Raspbian 10, Debian 10 & Ubuntu 18.04 -nextcloud_orig_src_file: latest-17.tar.bz2 +nextcloud_orig_src_file: latest.tar.bz2 nextcloud_src_file: nextcloud_{{ nextcloud_orig_src_file }} # We install on MySQL with these settings: From 18a10e940df45570a52960fac8f51e631370b20e Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:31:18 -0500 Subject: [PATCH 05/19] Update default_vars.yml --- vars/default_vars.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vars/default_vars.yml b/vars/default_vars.yml index a9351635c..7ae053b28 100644 --- a/vars/default_vars.yml +++ b/vars/default_vars.yml @@ -387,6 +387,11 @@ nextcloud_enabled: False nextcloud_allow_public_ips: False # Configuration tips for IPv4 access controls and tuning RAM/resources: # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md +# +# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# you to 100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# Uncomment the following line to avoid that: (might install an older Nextcloud) +# nextcloud_dl_url: http://d.iiab.io/packages # A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX. # Works on Ubuntu 18.04, Debian 9. Experimental on Rasp/RPi 3. Uses Node.js 10.x From b201255e1e4b6c23d2f543929ff6506a01a90d3e Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:31:23 -0500 Subject: [PATCH 06/19] Update local_vars_min.yml --- vars/local_vars_min.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vars/local_vars_min.yml b/vars/local_vars_min.yml index c1e0f6ae6..4a57fdc92 100644 --- a/vars/local_vars_min.yml +++ b/vars/local_vars_min.yml @@ -243,6 +243,11 @@ nextcloud_enabled: False nextcloud_allow_public_ips: False # Configuration tips for IPv4 access controls and tuning RAM/resources: # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md +# +# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# you to 100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# Uncomment the following line to avoid that: (might install an older Nextcloud) +# nextcloud_dl_url: http://d.iiab.io/packages # A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX. # Works on Ubuntu 18.04, Debian 9. Experimental on Rasp/RPi 3. Uses Node.js 10.x From 8bf42cb962e9527f8e02142e533836d613cca896 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:31:28 -0500 Subject: [PATCH 07/19] Update local_vars_medium.yml --- vars/local_vars_medium.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vars/local_vars_medium.yml b/vars/local_vars_medium.yml index 9e0a8affe..fe008a98d 100644 --- a/vars/local_vars_medium.yml +++ b/vars/local_vars_medium.yml @@ -243,6 +243,11 @@ nextcloud_enabled: True nextcloud_allow_public_ips: False # Configuration tips for IPv4 access controls and tuning RAM/resources: # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md +# +# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# you to 100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# Uncomment the following line to avoid that: (might install an older Nextcloud) +# nextcloud_dl_url: http://d.iiab.io/packages # A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX. # Works on Ubuntu 18.04, Debian 9. Experimental on Rasp/RPi 3. Uses Node.js 10.x From b6be1916f24768ff723712b0d93961edd8852635 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:31:33 -0500 Subject: [PATCH 08/19] Update local_vars_big.yml --- vars/local_vars_big.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vars/local_vars_big.yml b/vars/local_vars_big.yml index 238a33487..1e9a093b2 100644 --- a/vars/local_vars_big.yml +++ b/vars/local_vars_big.yml @@ -243,6 +243,11 @@ nextcloud_enabled: True nextcloud_allow_public_ips: False # Configuration tips for IPv4 access controls and tuning RAM/resources: # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md +# +# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# you to 100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# Uncomment the following line to avoid that: (might install an older Nextcloud) +# nextcloud_dl_url: http://d.iiab.io/packages # A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX. # Works on Ubuntu 18.04, Debian 9. Experimental on Rasp/RPi 3. Uses Node.js 10.x From 6be49b13a900685bde8d24e1636d23a584b4cc5c Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:38:34 -0500 Subject: [PATCH 09/19] Update local_vars_big.yml --- vars/local_vars_big.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/local_vars_big.yml b/vars/local_vars_big.yml index 1e9a093b2..837429064 100644 --- a/vars/local_vars_big.yml +++ b/vars/local_vars_big.yml @@ -245,7 +245,7 @@ nextcloud_allow_public_ips: False # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md # # 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle -# you to 100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). # Uncomment the following line to avoid that: (might install an older Nextcloud) # nextcloud_dl_url: http://d.iiab.io/packages From b1f7935ab5d74ef870c215196f615ef8ebd7c49d Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:38:54 -0500 Subject: [PATCH 10/19] Update local_vars_medium.yml --- vars/local_vars_medium.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/local_vars_medium.yml b/vars/local_vars_medium.yml index fe008a98d..9ecc8fbe0 100644 --- a/vars/local_vars_medium.yml +++ b/vars/local_vars_medium.yml @@ -245,7 +245,7 @@ nextcloud_allow_public_ips: False # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md # # 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle -# you to 100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). # Uncomment the following line to avoid that: (might install an older Nextcloud) # nextcloud_dl_url: http://d.iiab.io/packages From 730af93a3bbf1e99df3e1497df4147b79beda3cc Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:39:15 -0500 Subject: [PATCH 11/19] Update local_vars_min.yml --- vars/local_vars_min.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/local_vars_min.yml b/vars/local_vars_min.yml index 4a57fdc92..74ab7bd4e 100644 --- a/vars/local_vars_min.yml +++ b/vars/local_vars_min.yml @@ -245,7 +245,7 @@ nextcloud_allow_public_ips: False # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md # # 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle -# you to 100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). # Uncomment the following line to avoid that: (might install an older Nextcloud) # nextcloud_dl_url: http://d.iiab.io/packages From 140553611bd2926b02aa281ace3e11ba6370a964 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:39:39 -0500 Subject: [PATCH 12/19] Update default_vars.yml --- vars/default_vars.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/default_vars.yml b/vars/default_vars.yml index 7ae053b28..7d8b590c4 100644 --- a/vars/default_vars.yml +++ b/vars/default_vars.yml @@ -389,7 +389,7 @@ nextcloud_allow_public_ips: False # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md # # 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle -# you to 100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). # Uncomment the following line to avoid that: (might install an older Nextcloud) # nextcloud_dl_url: http://d.iiab.io/packages From bea127726f55b4ce69e79bb33718b824d99a82c8 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 18:51:53 -0500 Subject: [PATCH 13/19] Doc fast d/l option in nextcloud/defaults/main.yml --- roles/nextcloud/defaults/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/nextcloud/defaults/main.yml b/roles/nextcloud/defaults/main.yml index 61252b507..e5be03a1d 100644 --- a/roles/nextcloud/defaults/main.yml +++ b/roles/nextcloud/defaults/main.yml @@ -17,6 +17,11 @@ nextcloud_url: /nextcloud nextcloud_prefix: /opt nextcloud_data_dir: "{{ content_base }}/nextcloud/data" # /library/nextcloud/data + +# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). +# The following line can avoid that: (but might install an older Nextcloud) +# nextcloud_dl_url: http://d.iiab.io/packages nextcloud_dl_url: https://download.nextcloud.com/server/releases # For OLD OS's where PHP 7.1+ isn't detected -- e.g. Raspbian 9, Debian 9, Ubuntu 16.04 From e4554ce629d57d25ca7a024ab0929704a5743f96 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 19:11:33 -0500 Subject: [PATCH 14/19] Doc Nextcloud d/l workaround in < 80 chars --- vars/default_vars.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/default_vars.yml b/vars/default_vars.yml index 7d8b590c4..d4c4d04bb 100644 --- a/vars/default_vars.yml +++ b/vars/default_vars.yml @@ -388,9 +388,9 @@ nextcloud_allow_public_ips: False # Configuration tips for IPv4 access controls and tuning RAM/resources: # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md # -# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# 2020-01-07: If installing IIAB often, download.nextcloud.com may throttle # you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). -# Uncomment the following line to avoid that: (might install an older Nextcloud) +# Uncomment the following line to end that: (might install an older Nextcloud!) # nextcloud_dl_url: http://d.iiab.io/packages # A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX. From 151e4077b2c906c20c2a32b94c2b9eb8a9d2e9d6 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 19:11:43 -0500 Subject: [PATCH 15/19] Doc Nextcloud d/l workaround in < 80 chars --- vars/local_vars_min.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/local_vars_min.yml b/vars/local_vars_min.yml index 74ab7bd4e..5087ba947 100644 --- a/vars/local_vars_min.yml +++ b/vars/local_vars_min.yml @@ -244,9 +244,9 @@ nextcloud_allow_public_ips: False # Configuration tips for IPv4 access controls and tuning RAM/resources: # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md # -# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# 2020-01-07: If installing IIAB often, download.nextcloud.com may throttle # you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). -# Uncomment the following line to avoid that: (might install an older Nextcloud) +# Uncomment the following line to end that: (might install an older Nextcloud!) # nextcloud_dl_url: http://d.iiab.io/packages # A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX. From a69a87671efcb58f29738ab18837a00a90fe9f61 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 19:11:54 -0500 Subject: [PATCH 16/19] Doc Nextcloud d/l workaround in < 80 chars --- vars/local_vars_medium.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/local_vars_medium.yml b/vars/local_vars_medium.yml index 9ecc8fbe0..3a84c1e86 100644 --- a/vars/local_vars_medium.yml +++ b/vars/local_vars_medium.yml @@ -244,9 +244,9 @@ nextcloud_allow_public_ips: False # Configuration tips for IPv4 access controls and tuning RAM/resources: # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md # -# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# 2020-01-07: If installing IIAB often, download.nextcloud.com may throttle # you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). -# Uncomment the following line to avoid that: (might install an older Nextcloud) +# Uncomment the following line to end that: (might install an older Nextcloud!) # nextcloud_dl_url: http://d.iiab.io/packages # A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX. From 7871c6dd3772d7515966c5bb6f5d669dab3fd4a4 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 19:12:06 -0500 Subject: [PATCH 17/19] Doc Nextcloud d/l workaround in < 80 chars --- vars/local_vars_big.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/local_vars_big.yml b/vars/local_vars_big.yml index 837429064..1e2355f7c 100644 --- a/vars/local_vars_big.yml +++ b/vars/local_vars_big.yml @@ -244,9 +244,9 @@ nextcloud_allow_public_ips: False # Configuration tips for IPv4 access controls and tuning RAM/resources: # https://github.com/iiab/iiab/blob/master/roles/nextcloud/README.md # -# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# 2020-01-07: If installing IIAB often, download.nextcloud.com may throttle # you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). -# Uncomment the following line to avoid that: (might install an older Nextcloud) +# Uncomment the following line to end that: (might install an older Nextcloud!) # nextcloud_dl_url: http://d.iiab.io/packages # A full-featured PBX (for rural telephony, etc) based on Asterisk and FreePBX. From 5fc5bd3e525a2a44e5137bf5b2e5f514310080b2 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 19:12:21 -0500 Subject: [PATCH 18/19] Doc Nextcloud d/l workaround in < 80 chars --- roles/nextcloud/defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nextcloud/defaults/main.yml b/roles/nextcloud/defaults/main.yml index e5be03a1d..102319cb1 100644 --- a/roles/nextcloud/defaults/main.yml +++ b/roles/nextcloud/defaults/main.yml @@ -18,9 +18,9 @@ nextcloud_url: /nextcloud nextcloud_prefix: /opt nextcloud_data_dir: "{{ content_base }}/nextcloud/data" # /library/nextcloud/data -# 2020-01-07: If installing IIAB frequently, download.nextcloud.com may throttle +# 2020-01-07: If installing IIAB often, download.nextcloud.com may throttle # you to ~100 kbit/sec, delaying your IIAB install by an hour or more (#2112). -# The following line can avoid that: (but might install an older Nextcloud) +# The following line can avoid that: (but might install an older Nextcloud!) # nextcloud_dl_url: http://d.iiab.io/packages nextcloud_dl_url: https://download.nextcloud.com/server/releases From 794204672bc765aaae343a1fc19f62889665a83b Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 7 Jan 2020 21:48:22 -0500 Subject: [PATCH 19/19] phpMyAdmin 5.0.0 -> 5.0.1 --- roles/phpmyadmin/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/phpmyadmin/defaults/main.yml b/roles/phpmyadmin/defaults/main.yml index db0f197d0..fd4ea4b5e 100644 --- a/roles/phpmyadmin/defaults/main.yml +++ b/roles/phpmyadmin/defaults/main.yml @@ -4,5 +4,5 @@ # All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml # If nec, change them by editing /etc/iiab/local_vars.yml prior to installing! -phpmyadmin_name: "phpMyAdmin-5.0.0-all-languages" +phpmyadmin_name: "phpMyAdmin-5.0.1-all-languages" phpmyadmin_name_zip: "{{ phpmyadmin_name }}.zip"