-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
46 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# Copy top.sls and tm.sls to /srv/pillar, then change the settings below. | ||
|
||
# Indentation matters! | ||
|
||
base: | ||
'*': | ||
- tm | ||
- tm | ||
# - workshops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This settings file is used for "Mapping for academics" workshops. | ||
tm_osmsourceurl: http://gis.researchmaps.net/australia-latest.osm.pbf | ||
|
||
tm_projects: # Sample projects to unzip in /usr/share/mapbox/project. | ||
- { name: mapstarter, source: "http://gis.researchmaps.net/sample/map-starter.zip" } | ||
- { name: melbourne, source: "http://gis.researchmaps.net/sample/melbourne.zip" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Install water polygon shapefile. This is needed for working with OpenStreetMap data extracts. | ||
# TODO: figure out how to make the shapefile a 'favourite' | ||
extrafiles: | ||
pkg.installed: | ||
- names: | ||
- unzip | ||
- wget | ||
cmd.run: | ||
- cwd: /usr/share/mapbox | ||
- user: mapbox | ||
- group: mapbox | ||
- require: | ||
- pkg: unzip | ||
- name: | | ||
{% for f in pillar.tm_extrafiles %} | ||
wget -nv {{ f }} | ||
{% endfor %} | ||
sleep 5 | ||
yes no | unzip '*.zip' # Don't overwrite any existing files | ||
unzip -f '*.zip' # Freshen existing files if needed | ||
# - unless: test -d /usr/share/mapbox/water-polygons-split-3857 # should we bother trying to not repeat? | ||
extrafiles_logdone: | ||
cmd.wait_script: | ||
- source: salt://log.sh | ||
- args: "'Extra tilemill files downloaded and unzipped.'" | ||
- watch: [ { cmd: extrafiles } ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.