| 932 | |
| 933 | == VOMS Server == |
| 934 | |
| 935 | __Base template__ : `machine-types/voms`. |
| 936 | |
| 937 | VOMS server default configuration can be customized with the following variables: |
| 938 | * `VOMS_VOS`: this variable describe each VO managed by the VOMS server. This is a nlist where the key is the VO name and the value a nlist specifiying the VO parameters. A typical entry is: |
| 939 | {{{ |
| 940 | 'vo.lal.in2p3.fr', nlist('port', '20000', |
| 941 | 'host', 'grid12.lal.in2p3.fr', |
| 942 | 'dbName', 'voms_lal', |
| 943 | 'dbUser', 'root', |
| 944 | 'dbPassword', 'clrtxtpwd', |
| 945 | 'adminEmail', 'vomsadmins@example.com', |
| 946 | 'adminCert', '/etc/grid-security/vomsadmin.pem', |
| 947 | ), |
| 948 | }}} |
| 949 | * `VOMS_DB_TYPE`: can be `mysql` or `oracle`. |
| 950 | * `VOMS_MYSQL_ADMINPWD`: password of the MySQL administrator account (MySQL account). Required if DB type is `mysql` (no default). |
| 951 | * `VOMS_MYSQL_ADMINUSER`: username of the MySQL administrator account (MySQL account). Ignored if DB type is not `mysql`. Default: `root`. |
| 952 | * `VOMS_ADMIN_SMTP_HOST`: STMP host used by VOMS admin when sending emails. Default: `localhost`. |
| 953 | * `VOMS_CRON_EMAIL`: user to notify in case of problems during cron jobs. Default: `root@localhost`. |
| 954 | |
| 955 | In addition to configuring the previous variable, it is generally necessary to install the certificate of the initial administrator of the VO. This certificate is passed in paramater `adminCert` in VO parameters (`VOMS_VOS`). This is typically done with Quattor configuration module `filecopy` in the site-specific configuration of the VOMS server. A typical sequence to do this is: |
| 956 | {{{ |
| 957 | include { 'components/filecopy/config' }; |
| 958 | variable CONTENTS = <<EOF; |
| 959 | -----BEGIN CERTIFICATE----- |
| 960 | ... Copy certificate from the PEM file ... |
| 961 | -----END CERTIFICATE----- |
| 962 | EOF |
| 963 | |
| 964 | # Now actually add the file to the configuration. |
| 965 | '/software/components/filecopy/services' = |
| 966 | npush(escape('/etc/grid-security/vomsadmin.pem'), |
| 967 | nlist('config',CONTENTS, |
| 968 | 'perms','0755')); |
| 969 | }}} |
| 970 | |