mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
commit
5b11dadd49
3 changed files with 36 additions and 36 deletions
|
@ -8,13 +8,14 @@
|
||||||
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
||||||
|
|
||||||
# The following soft coded variables allow testing, before pulling PR's into master
|
# The following soft coded variables allow testing, before pulling PR's into master
|
||||||
# osm_repo_url: https://raw.githubusercontent.com/iiab/maps
|
osm_repo_url: https://raw.githubusercontent.com/iiab/maps
|
||||||
osm_repo_url: https://raw.githubusercontent.com/georgejhunt/maps
|
maps_branch: 'master' # Quotes not required
|
||||||
#maps_branch: 'master' # Quotes not required
|
#osm_repo_url: https://raw.githubusercontent.com/georgejhunt/maps
|
||||||
maps_branch: 'maps7.3'
|
#maps_branch: 'maps7.3'
|
||||||
|
|
||||||
# soft code sources
|
# soft code sources
|
||||||
archive_org_url: https://archive.org/download
|
archive_org_url: https://archive.org/download
|
||||||
|
#iiab_map_url: http://download.iiab.io/content/OSM/vector-tiles/maplist/hidden
|
||||||
#map_catalog_url: http://download.iiab.io/content/OSM/vector-tiles
|
#map_catalog_url: http://download.iiab.io/content/OSM/vector-tiles
|
||||||
map_catalog_url: http://timmoody.com/iiab-files/maps
|
map_catalog_url: http://timmoody.com/iiab-files/maps
|
||||||
satellite_version: satellite_z0-z9_v3.mbtiles # 2021-12-20: Var unused, but hard-coded in 11 places within https://github.com/iiab/iiab-admin-console -- #3077 discusses map-catalog.json & adm-map-catalog.json
|
satellite_version: satellite_z0-z9_v3.mbtiles # 2021-12-20: Var unused, but hard-coded in 11 places within https://github.com/iiab/iiab-admin-console -- #3077 discusses map-catalog.json & adm-map-catalog.json
|
||||||
|
|
|
@ -10,17 +10,15 @@
|
||||||
- "{{ vector_map_path }}/viewer/tiles"
|
- "{{ vector_map_path }}/viewer/tiles"
|
||||||
- "{{ vector_map_path }}/installer"
|
- "{{ vector_map_path }}/installer"
|
||||||
|
|
||||||
- name: Download {{ map_catalog_url }}/map-catalog.json to {{ iiab_etc_path }}
|
- name: "Install packages for map installation: python3-geojson, python3-pil, python3-wget, php{{ php_version }}-sqlite3 (can also be installed by www_base/tasks/php-stem.yml)"
|
||||||
get_url:
|
package:
|
||||||
url: "{{ map_catalog_url }}/map-catalog.json" # http://download.iiab.io/content/OSM/vector-tiles
|
state: present
|
||||||
dest: "{{ iiab_etc_path }}" # /etc/iiab
|
name:
|
||||||
timeout: "{{ download_timeout }}"
|
- python3-geojson
|
||||||
|
- python3-pil
|
||||||
- name: Download {{ iiab_map_url }}/assets/regions.json to {{ iiab_etc_path }}
|
- python3-wget
|
||||||
get_url:
|
#- php{{ php_version }}-common # Auto-installed as an apt dependency. REGARDLESS: php{{ php_version }}-common superset php{{ php_version }}-cli is auto-installed by php{{ php_version }}-fpm in nginx/tasks/install.yml
|
||||||
url: "{{ iiab_map_url }}/assets/regions.json" # http://download.iiab.io/content/OSM/vector-tiles/maplist/hidden
|
- php{{ php_version }}-sqlite3
|
||||||
dest: "{{ iiab_etc_path }}"
|
|
||||||
timeout: "{{ download_timeout }}"
|
|
||||||
|
|
||||||
# - name: Does 26M cities database {{ vector_map_path }}/viewer/cities1000.sqlite exist?
|
# - name: Does 26M cities database {{ vector_map_path }}/viewer/cities1000.sqlite exist?
|
||||||
# stat:
|
# stat:
|
||||||
|
@ -28,13 +26,20 @@
|
||||||
# register: cities_installed
|
# register: cities_installed
|
||||||
|
|
||||||
# - name: If not, download {{ iiab_map_url }}/regional-resources/cities1000.sqlite to {{ vector_map_path }}/viewer/
|
# - name: If not, download {{ iiab_map_url }}/regional-resources/cities1000.sqlite to {{ vector_map_path }}/viewer/
|
||||||
- name: Download 26M {{ iiab_map_url }}/regional-resources/cities1000.sqlite to {{ vector_map_path }}/viewer/
|
# At this point, fetches from github.com/'REPO'/maps from maps_branch
|
||||||
|
- name: Download 26M {{ osm_repo_url }}/{{ maps_branch }}/2020/cities1000.sqlite to {{ vector_map_path }}/viewer/
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ iiab_map_url }}/regional-resources/cities1000.sqlite"
|
url: "{{ osm_repo_url }}/{{ maps_branch }}/2020/cities1000.sqlite"
|
||||||
dest: "{{ vector_map_path }}/viewer/"
|
dest: "{{ vector_map_path }}/viewer/"
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
# when: not cities_installed.stat.exists
|
# when: not cities_installed.stat.exists
|
||||||
|
|
||||||
|
- name: Download {{ osm_repo_url }}/{{ maps_branch }}/2020/map-catalog.json to {{ iiab_etc_path }}
|
||||||
|
get_url:
|
||||||
|
url: "{{ osm_repo_url }}/{{ maps_branch }}/2020/map-catalog.json"
|
||||||
|
dest: "{{ iiab_etc_path }}" # /etc/iiab
|
||||||
|
timeout: "{{ download_timeout }}"
|
||||||
|
|
||||||
- name: Symlink {{ doc_root }}/common/assets/map-catalog.json -> /etc/iiab/map-catalog.json
|
- name: Symlink {{ doc_root }}/common/assets/map-catalog.json -> /etc/iiab/map-catalog.json
|
||||||
file:
|
file:
|
||||||
src: /etc/iiab/map-catalog.json
|
src: /etc/iiab/map-catalog.json
|
||||||
|
@ -47,13 +52,18 @@
|
||||||
path: "{{ vector_map_path }}/test-page/assets/map-catalog.json"
|
path: "{{ vector_map_path }}/test-page/assets/map-catalog.json"
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: Symlink {{ vector_map_path }}/maplist/assets/regions.json -> /etc/iiab/regions.json
|
#- name: Download {{ osm_repo_url }}/{{ maps_branch }}/resources/regions.json to {{ iiab_etc_path }}
|
||||||
file:
|
# get_url:
|
||||||
src: /etc/iiab/regions.json
|
# url: "{{ osm_repo_url }}/{{ maps_branch }}/resources/regions.json"
|
||||||
path: "{{ vector_map_path }}/maplist/assets/regions.json"
|
# dest: "{{ iiab_etc_path }}"
|
||||||
state: link
|
# timeout: "{{ download_timeout }}"
|
||||||
|
|
||||||
|
#- name: Symlink {{ vector_map_path }}/maplist/assets/regions.json -> /etc/iiab/regions.json
|
||||||
|
# file:
|
||||||
|
# src: /etc/iiab/regions.json
|
||||||
|
# path: "{{ vector_map_path }}/maplist/assets/regions.json"
|
||||||
|
# state: link
|
||||||
|
|
||||||
# At this point, fetches from github.com/georgejhunt/maps from test branch
|
|
||||||
- name: Download OpenLayers test page stuff (JavaScript bundle etc) from {{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/* to {{ vector_map_path }}/test-page/ -- for test page http://box/osm-vector-maps/installer/
|
- name: Download OpenLayers test page stuff (JavaScript bundle etc) from {{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/* to {{ vector_map_path }}/test-page/ -- for test page http://box/osm-vector-maps/installer/
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/{{ item }}" # https://raw.githubusercontent.com/iiab/maps / master
|
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/{{ item }}" # https://raw.githubusercontent.com/iiab/maps / master
|
||||||
|
@ -166,10 +176,10 @@
|
||||||
state: link
|
state: link
|
||||||
force: yes
|
force: yes
|
||||||
|
|
||||||
- name: Copy fonts (16 files) to {{ doc_root }}/common/fonts/ for the general purpose map viewer (root:root, 0644 by default)
|
- name: Copy fonts (16 files) to {{ vector_map_path }}/viewer/assets/ for the general purpose map viewer (root:root, 0644 by default)
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ doc_root }}/common/fonts/"
|
dest: "{{ vector_map_path }}/viewer/assets/"
|
||||||
# mode: 0644
|
# mode: 0644
|
||||||
# owner: root
|
# owner: root
|
||||||
# group: root
|
# group: root
|
||||||
|
@ -183,16 +193,6 @@
|
||||||
force: yes
|
force: yes
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
|
|
||||||
- name: "Install packages for map installation: python3-geojson, python3-pil, python3-wget, php{{ php_version }}-sqlite3 (can also be installed by www_base/tasks/php-stem.yml)"
|
|
||||||
package:
|
|
||||||
state: present
|
|
||||||
name:
|
|
||||||
- python3-geojson
|
|
||||||
- python3-pil
|
|
||||||
- python3-wget
|
|
||||||
#- php{{ php_version }}-common # Auto-installed as an apt dependency. REGARDLESS: php{{ php_version }}-common superset php{{ php_version }}-cli is auto-installed by php{{ php_version }}-fpm in nginx/tasks/install.yml
|
|
||||||
- php{{ php_version }}-sqlite3
|
|
||||||
|
|
||||||
- name: Copy 6 scripts to /usr/bin, for downloading tiles (0755)
|
- name: Copy 6 scripts to /usr/bin, for downloading tiles (0755)
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/scripts/{{ item }}"
|
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/scripts/{{ item }}"
|
||||||
|
|
|
@ -488,7 +488,6 @@ osm_vector_maps_install: True
|
||||||
osm_vector_maps_enabled: False
|
osm_vector_maps_enabled: False
|
||||||
# Set to "True" to download .mbtiles files from Archive.org (might be slow!)
|
# Set to "True" to download .mbtiles files from Archive.org (might be slow!)
|
||||||
maps_from_internet_archive: False
|
maps_from_internet_archive: False
|
||||||
iiab_map_url : http://download.iiab.io/content/OSM/vector-tiles/maplist/hidden
|
|
||||||
vector_map_path: "{{ content_base }}/www/osm-vector-maps" # /library/www/osm-vector-maps
|
vector_map_path: "{{ content_base }}/www/osm-vector-maps" # /library/www/osm-vector-maps
|
||||||
|
|
||||||
# MongoDB (/library/dbdata/mongodb) greatly enhances the Sugarizer experience.
|
# MongoDB (/library/dbdata/mongodb) greatly enhances the Sugarizer experience.
|
||||||
|
|
Loading…
Reference in a new issue