Changes between Version 44 and Version 45 of ESGFNodeTutorial


Ignore:
Timestamp:
Nov 16, 2018 12:00:18 PM (4 years ago)
Author:
zequi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ESGFNodeTutorial

    v44 v45  
    13135. Publish CORDEX datasets
    14146. Known issues
     156. Local publication in a Data Index IdP ESGF node
    15167. References
    1617
     
    667668}}}
    668669
     670== Local publication in a Data Index IdP ESGF node ==
     671
     6721. Edit {{{/usr/local/cog/cog_install/settings.py}}} to ALLOW access from everywhere (['*'])
     6731. Add your node domain to {{{esgf_idp_static.xml}}} and {{{esgf_known_providers.xml}}}
     6741. {{{cp /etc/certs/hostcert.pem /etc/grid-security/certificates/$(openssl x509 -hash -noout < /etc/certs/hostcert.pem).0}}}
     6751. Create user permissions in postgres database as explained in https://acme-climate.atlassian.net/wiki/spaces/ESGF/pages/15073316/Guide+to+ESGF+Publishing+and+Best+Practices
     6761. You should be able to log into cog
     6771. Modify esgf_ats_static.xml, eg:
     678{{{
     679<attribute
     680        type="test_group"
     681        attributeService="https://esgf.test.es/esgf-idp/saml/soap/secure/attributeService.htm"
     682        description="Test group for test data"
     683        registrationService="https://esgf.test.es/esgf-idp/secure/registrationService.htm"/>
     684}}}
     6851. Modify esgf_policies_local.xml, eg:
     686{{{
     687   <!-- The following statements makes resources that contain '.*test.*' freely available for download -->
     688    <policy resource=".*test.*" attribute_type="ANY" attribute_value="" action="Read"/>
     689    <policy resource=".*test.*" attribute_type="test_group" attribute_value="publisher" action="Write"/>
     690
     691    <!-- The following statements makes all resources freely available for download -->
     692    <policy resource=".*" attribute_type="ANY" attribute_value="" action="Read"/>
     693}}}
     6941. You may need to change the file {{{/usr/local/conda/envs/esgf-pub/lib/python2.7/site-packages/esgcet-3.5.4-py2.7.egg/esgcet/publish/utility.py}}}
     695{{{
     696  27 UPDATE_TIMESTAMP = "/tmp/publisher-last-check"
     697  28 DEFAULT_CERTS_LOCATION_SUFFIX = "/etc/grid-security/certificates"
     698  29
     699...
     7001241         if home is not None:
     7011242             service_certs_location = DEFAULT_CERTS_LOCATION_SUFFIX
     7021243
     703}}}
     7041. Modify {{{/esg/config/esgcet/esg.ini}}}
     705{{{
     706hessian_service_certfile = %(home)s/.globus/certificate-file
     707#hessian_service_certs_location = %(home)s/.globus/certificates
     708hessian_service_certs_location = /etc/grid-security/certificates
     709hessian_service_debug = false
     710}}}
     7111. Add host and CA certificates to {{{/esg/config/tomcat/esg-truststore.ts}}}
     7121. Add host certificate to {{{/esg/config/tomcat/keystore-tomcat}}}
     7131. You should be able to publish
     714
    669715== References ==
    670716 * [https://github.com/ESGF/esgf-installer/wiki/ESGF-Installation-From-scratch ESGF Installation From Scratch]