Skip to content

Commit

Permalink
Merge pull request #37 from mjanez/dev
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
mjanez authored Dec 17, 2024
2 parents fda0644 + 821da17 commit c0aa2a4
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 18 deletions.
18 changes: 14 additions & 4 deletions playbook/inventories/development/host_vars/development_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ ckan_licenses_group_url: "file://{{ ckan_src_dir }}/ckanext-schemingdcat/ckanext
ckan_datastore_sqlsearch_enabled: false

#### Plugins
ckan_plugins: "activity stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester schemingdcat_postgres_harvester schemingdcat_open_data_statistics harvest pdf_view pages fluent openapi"
ckan_plugins: "activity stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester schemingdcat_postgres_harvester schemingdcat_csw_harvester schemingdcat_open_data_statistics harvest pdf_view pages fluent openapi"

#### Previews formats
ckan__preview__json_formats: "json jsonld"
Expand Down Expand Up @@ -223,12 +223,22 @@ ckanext__schemingdcat_social_linkedin: "https://www.linkedin.com/company/ckanpro
ckanext__schemingdcat__postgres__geojson_chars_limit: 1000
ckanext__schemingdcat__postgres__geojson_tolerance: 0.001
ckanext__schemingdcat__api__private_fields: "private_name private_email"
solr_multivalued_fields:
- endpoint_url
- serves_dataset
ckanext__schemingdcat__csw__ssl_verify: True
#### DCAT-AP Metadata enhancements
ckanext__schemingdcat__dcat_ap__publisher__name: "Catalog Publishing Organization"
ckanext__schemingdcat__dcat_ap__publisher__identifier: "http://datos.gob.es/recurso/sector-publico/org/Organismo/EA0000000"
ckanext__schemingdcat__dcat_ap__publisher__email: "[email protected]"
ckanext__schemingdcat__dcat_ap__publisher__type: "http://purl.org/adms/publishertype/NationalAuthority"
ckanext__schemingdcat__dcat_ap__publisher__url: "https://orgn.example.org/"
ckanext__schemingdcat__dcat_ap__datastore_dataservice__title: "Datastore API service"
ckanext__schemingdcat__dcat_ap__datastore_dataservice__description: "This API provides live access to the Datastore portion of the Open Data Portal. Serve data resources in a machine-readable format."
ckanext__schemingdcat__dcat_ap__datastore_dataservice__endpoint_description: "{ckan_site_url}/openapi/datastore"

#### ckanext-openapi
ckanext__openapi__endpoints: '[{"url":"https://raw.githubusercontent.com/mjanez/ckanext-openapi/refs/heads/develop/ckanext/openapi/public/static/openapi/datastore.yaml","name":"datastore","title":{"en":"CKAN - Datastore API","es":"Portal de datos abiertos de CKAN - API Datastore"},"description":{"en":"This API provides live access to the Datastore portion of the CKAN Open Data Portal.","es":"Esta API proporciona acceso en tiempo real a la parte de Datastore del Portal de Datos Abiertos CKAN."}},{"url":"https://raw.githubusercontent.com/mjanez/ckanext-openapi/refs/heads/develop/ckanext/openapi/public/static/openapi/ckan.yaml","name":"ckan","title":{"en":"CKAN Open Data Portal - CKAN API (ES)","es":"Portal de datos abiertos de CKAN - API CKAN"},"description":{"en":"This API provides live access to the CKAN portion of the CKAN Open Data Portal.","es":"Esta API proporciona acceso en tiempo real a la parte de CKAN del Portal de Datos Abiertos CKAN."}}]'
solr_multivalued_fields:
- endpoint_url
- serves_dataset

### Web Services config ############################################
### Enable all sites in ckan-ansible/playbook/roles/webserver/templates/sites-available/*.conf.j2
Expand Down
24 changes: 17 additions & 7 deletions playbook/inventories/production/host_vars/production_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ ckan_licenses_group_url: "file://{{ ckan_src_dir }}/ckanext-schemingdcat/ckanext
ckan_datastore_sqlsearch_enabled: false

#### Plugins
ckan_plugins: "activity stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester schemingdcat_postgres_harvester schemingdcat_open_data_statistics harvest pdf_view pages fluent openapi"
ckan_plugins: "activity stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester schemingdcat_postgres_harvester schemingdcat_csw_harvester schemingdcat_open_data_statistics harvest pdf_view pages fluent openapi"

#### Previews formats
ckan__preview__json_formats: "json jsonld"
Expand Down Expand Up @@ -222,12 +222,22 @@ ckanext__schemingdcat_social_linkedin: "https://www.linkedin.com/company/ckanpro
ckanext__schemingdcat__postgres__geojson_chars_limit: 1000
ckanext__schemingdcat__postgres__geojson_tolerance: 0.001
ckanext__schemingdcat__api__private_fields: "private_name private_email"
solr_multivalued_fields:
- endpoint_url
- serves_dataset
ckanext__schemingdcat__csw__ssl_verify: True
#### DCAT-AP Metadata enhancements
ckanext__schemingdcat__dcat_ap__publisher__name: "Catalog Publishing Organization"
ckanext__schemingdcat__dcat_ap__publisher__identifier: "http://datos.gob.es/recurso/sector-publico/org/Organismo/EA0000000"
ckanext__schemingdcat__dcat_ap__publisher__email: "[email protected]"
ckanext__schemingdcat__dcat_ap__publisher__type: "http://purl.org/adms/publishertype/NationalAuthority"
ckanext__schemingdcat__dcat_ap__publisher__url: "https://orgn.example.org/"
ckanext__schemingdcat__dcat_ap__datastore_dataservice__title: "Datastore API service"
ckanext__schemingdcat__dcat_ap__datastore_dataservice__description: "This API provides live access to the Datastore portion of the Open Data Portal. Serve data resources in a machine-readable format."
ckanext__schemingdcat__dcat_ap__datastore_dataservice__endpoint_description: "{ckan_site_url}/openapi/datastore"

#### ckanext-openapi
ckanext__openapi__endpoints: '[{"url":"https://raw.githubusercontent.com/mjanez/ckanext-openapi/refs/heads/develop/ckanext/openapi/public/static/openapi/datastore.yaml","name":"datastore","title":{"en":"CKAN - Datastore API","es":"Portal de datos abiertos de CKAN - API Datastore"},"description":{"en":"This API provides live access to the Datastore portion of the CKAN Open Data Portal.","es":"Esta API proporciona acceso en tiempo real a la parte de Datastore del Portal de Datos Abiertos CKAN."}},{"url":"https://raw.githubusercontent.com/mjanez/ckanext-openapi/refs/heads/develop/ckanext/openapi/public/static/openapi/ckan.yaml","name":"ckan","title":{"en":"CKAN Open Data Portal - CKAN API (ES)","es":"Portal de datos abiertos de CKAN - API CKAN"},"description":{"en":"This API provides live access to the CKAN portion of the CKAN Open Data Portal.","es":"Esta API proporciona acceso en tiempo real a la parte de CKAN del Portal de Datos Abiertos CKAN."}}]'
solr_multivalued_fields:
- endpoint_url
- serves_dataset

### Web Services config ############################################
### Enable all sites in ckan-ansible/playbook/roles/webserver/templates/sites-available/*.conf.j2
Expand Down Expand Up @@ -266,8 +276,8 @@ ckanext_versions:
ckanext_xloader: 1.0.1-stable
ckanext_harvest: v1.5.6
ckanext_geoview: v0.2.2
ckanext_spatial: v2.1.1
ckanext_dcat: v1.8.0
ckanext_spatial: v2.2.0
ckanext_dcat: v2.1.0
ckanext_scheming: release-3.0.0
ckanext_resourcedictionary: v1.0.2
ckanext_pages: v0.5.2
Expand All @@ -278,7 +288,7 @@ ckanext_versions:
### CKAN custom plugins #########################################
# This is a dictionary of custom plugins to install. The key is the github user/repo and the value is the version to install.
ckanext_custom_plugins:
mjanez/ckanext-schemingdcat: v4.2.3
mjanez/ckanext-schemingdcat: v4.3.0
mjanez/ckanext-openapi: v1.0.0

### Solr Service #########################################
Expand Down
24 changes: 17 additions & 7 deletions playbook/inventories/staging/host_vars/staging_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ ckan_licenses_group_url: "file://{{ ckan_src_dir }}/ckanext-schemingdcat/ckanext
ckan_datastore_sqlsearch_enabled: false

#### Plugins
ckan_plugins: "activity stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester schemingdcat_postgres_harvester schemingdcat_open_data_statistics harvest pdf_view pages fluent openapi"
ckan_plugins: "activity stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester schemingdcat_postgres_harvester schemingdcat_csw_harvester schemingdcat_open_data_statistics harvest pdf_view pages fluent openapi"

#### Previews formats
ckan__preview__json_formats: "json jsonld"
Expand Down Expand Up @@ -222,12 +222,22 @@ ckanext__schemingdcat_social_linkedin: "https://www.linkedin.com/company/ckanpro
ckanext__schemingdcat__postgres__geojson_chars_limit: 1000
ckanext__schemingdcat__postgres__geojson_tolerance: 0.001
ckanext__schemingdcat__api__private_fields: "private_name private_email"
solr_multivalued_fields:
- endpoint_url
- serves_dataset
ckanext__schemingdcat__csw__ssl_verify: True
#### DCAT-AP Metadata enhancements
ckanext__schemingdcat__dcat_ap__publisher__name: "Catalog Publishing Organization"
ckanext__schemingdcat__dcat_ap__publisher__identifier: "http://datos.gob.es/recurso/sector-publico/org/Organismo/EA0000000"
ckanext__schemingdcat__dcat_ap__publisher__email: "[email protected]"
ckanext__schemingdcat__dcat_ap__publisher__type: "http://purl.org/adms/publishertype/NationalAuthority"
ckanext__schemingdcat__dcat_ap__publisher__url: "https://orgn.example.org/"
ckanext__schemingdcat__dcat_ap__datastore_dataservice__title: "Datastore API service"
ckanext__schemingdcat__dcat_ap__datastore_dataservice__description: "This API provides live access to the Datastore portion of the Open Data Portal. Serve data resources in a machine-readable format."
ckanext__schemingdcat__dcat_ap__datastore_dataservice__endpoint_description: "{ckan_site_url}/openapi/datastore"

#### ckanext-openapi
ckanext__openapi__endpoints: '[{"url":"https://raw.githubusercontent.com/mjanez/ckanext-openapi/refs/heads/develop/ckanext/openapi/public/static/openapi/datastore.yaml","name":"datastore","title":{"en":"CKAN - Datastore API","es":"Portal de datos abiertos de CKAN - API Datastore"},"description":{"en":"This API provides live access to the Datastore portion of the CKAN Open Data Portal.","es":"Esta API proporciona acceso en tiempo real a la parte de Datastore del Portal de Datos Abiertos CKAN."}},{"url":"https://raw.githubusercontent.com/mjanez/ckanext-openapi/refs/heads/develop/ckanext/openapi/public/static/openapi/ckan.yaml","name":"ckan","title":{"en":"CKAN Open Data Portal - CKAN API (ES)","es":"Portal de datos abiertos de CKAN - API CKAN"},"description":{"en":"This API provides live access to the CKAN portion of the CKAN Open Data Portal.","es":"Esta API proporciona acceso en tiempo real a la parte de CKAN del Portal de Datos Abiertos CKAN."}}]'
solr_multivalued_fields:
- endpoint_url
- serves_dataset

### Web Services config ############################################
### Enable all sites in ckan-ansible/playbook/roles/webserver/templates/sites-available/*.conf.j2
Expand Down Expand Up @@ -266,8 +276,8 @@ ckanext_versions:
ckanext_xloader: 1.0.1-stable
ckanext_harvest: v1.5.6
ckanext_geoview: v0.2.2
ckanext_spatial: v2.1.1
ckanext_dcat: v1.8.0
ckanext_spatial: v2.2.0
ckanext_dcat: v2.1.0
ckanext_scheming: release-3.0.0
ckanext_resourcedictionary: v1.0.2
ckanext_pages: v0.5.2
Expand All @@ -278,7 +288,7 @@ ckanext_versions:
### CKAN custom plugins #########################################
# This is a dictionary of custom plugins to install. The key is the github user/repo and the value is the version to install.
ckanext_custom_plugins:
mjanez/ckanext-schemingdcat: v4.2.3
mjanez/ckanext-schemingdcat: v4.3.0
mjanez/ckanext-openapi: v1.0.0

### Solr Service #########################################
Expand Down
9 changes: 9 additions & 0 deletions playbook/roles/ckan/templates/ckan.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ ckanext.schemingdcat.postgres.geojson_chars_limit = {{ ckanext__schemingdcat__po
ckanext.schemingdcat.postgres.geojson_tolerance = {{ ckanext__schemingdcat__postgres__geojson_tolerance }}
ckanext.schemingdcat.api.private_fields = {{ ckanext__schemingdcat__api__private_fields }}
ckanext.schemingdcat.csw.ssl_verify = {{ ckanext__schemingdcat__csw__ssl_verify }}
#### DCAT-AP Metadata enhancements
ckanext.schemingdcat.dcat_ap.publisher.name = {{ ckanext__schemingdcat__dcat_ap__publisher__name }}
ckanext.schemingdcat.dcat_ap.publisher.identifier = {{ ckanext__schemingdcat__dcat_ap__publisher__identifier }}
ckanext.schemingdcat.dcat_ap.publisher.email = {{ ckanext__schemingdcat__dcat_ap__publisher__email }}
ckanext.schemingdcat.dcat_ap.publisher.type = {{ ckanext__schemingdcat__dcat_ap__publisher__type }}
ckanext.schemingdcat.dcat_ap.publisher.url = {{ ckanext__schemingdcat__dcat_ap__publisher__url }}
ckanext.schemingdcat.dcat_ap.datastore_dataservice.title = {{ ckanext__schemingdcat__dcat_ap__datastore_dataservice__title }}
ckanext.schemingdcat.dcat_ap.datastore_dataservice.description = {{ ckanext__schemingdcat__dcat_ap__datastore_dataservice__description }}
ckanext.schemingdcat.dcat_ap.datastore_dataservice.endpoint_description = {{ ckanext__schemingdcat__dcat_ap__datastore_dataservice__endpoint_description }}

### ckanext-openapi
ckanext.openapi.endpoints = {{ ckanext__openapi__endpoints }}
Expand Down

0 comments on commit c0aa2a4

Please sign in to comment.