| 670 | == Local publication in a Data Index IdP ESGF node == |
| 671 | |
| 672 | 1. Edit {{{/usr/local/cog/cog_install/settings.py}}} to ALLOW access from everywhere (['*']) |
| 673 | 1. Add your node domain to {{{esgf_idp_static.xml}}} and {{{esgf_known_providers.xml}}} |
| 674 | 1. {{{cp /etc/certs/hostcert.pem /etc/grid-security/certificates/$(openssl x509 -hash -noout < /etc/certs/hostcert.pem).0}}} |
| 675 | 1. 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 |
| 676 | 1. You should be able to log into cog |
| 677 | 1. 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 | }}} |
| 685 | 1. 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 | }}} |
| 694 | 1. 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 | ... |
| 700 | 1241 if home is not None: |
| 701 | 1242 service_certs_location = DEFAULT_CERTS_LOCATION_SUFFIX |
| 702 | 1243 |
| 703 | }}} |
| 704 | 1. Modify {{{/esg/config/esgcet/esg.ini}}} |
| 705 | {{{ |
| 706 | hessian_service_certfile = %(home)s/.globus/certificate-file |
| 707 | #hessian_service_certs_location = %(home)s/.globus/certificates |
| 708 | hessian_service_certs_location = /etc/grid-security/certificates |
| 709 | hessian_service_debug = false |
| 710 | }}} |
| 711 | 1. Add host and CA certificates to {{{/esg/config/tomcat/esg-truststore.ts}}} |
| 712 | 1. Add host certificate to {{{/esg/config/tomcat/keystore-tomcat}}} |
| 713 | 1. You should be able to publish |
| 714 | |