5 # Copyright:: 2021, OpenStreetMap Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # https://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
20 include_recipe "docker"
24 ssl_certificate "community.openstreetmap.org" do
25 domains ["community.openstreetmap.org", "community.osm.org"]
28 # passwords = data_bag_item("community", "passwords")
30 # postgresql_user "community_user" do
31 # cluster node[:db][:cluster]
32 # password passwords["database"]
35 # postgresql_database "community_db" do
36 # cluster node[:db][:cluster]
37 # owner "community_user"
40 # postgresql_extension "hstore" do
41 # cluster node[:db][:cluster]
42 # database "community_db"
45 # postgresql_extension "pg_trgm" do
46 # cluster node[:db][:cluster]
47 # database "community_db"
50 directory "/srv/community.openstreetmap.org" do
56 directory "/srv/community.openstreetmap.org/shared" do
62 git "/srv/community.openstreetmap.org/docker" do
64 repository "https://github.com/discourse/discourse_docker.git"
71 # TBC: discourse docker templates
72 # web.ssl.template.yml
74 # TBC: discourse launcher rebuild