
{
    "xsede-virt-clust"     : {
        "enabled"            : false,
        "description"        : "XSEDE OSG Virtual Cluster is a Condor pool overlay on top of OSG resources. (https://portal.xsede.org/OSG-User-Guide).",
        "notes"              : "Always set the ``project`` attribute in the ComputePilotDescription or the pilot will fail.",
        "schemas"            : ["ssh", "gsissh"],
        "mandatory_args"     : ["project"],
        "ssh"                : {
            "job_manager_endpoint": "condor+ssh://xd-login.opensciencegrid.org",
            "filesystem_endpoint" : "sftp://xd-login.opensciencegrid.org/"
        },
        "gsissh"             : {
            "job_manager_endpoint": "condor+gsissh://xd-login.opensciencegrid.org",
            "filesystem_endpoint" : "gsisftp://xd-login.opensciencegrid.org/"
        },
        "lrms"               : "FORK",
        "agent_type"         : "multicore",
        "shared_filesystem"  : false,
        "health_check"       : false,
        "agent_scheduler"    : "CONTINUOUS",
        "agent_spawner"      : "POPEN",
        "agent_config"       : "osg",
        "agent_launch_method": "FORK",
        "task_launch_method" : "FORK",
        "pre_bootstrap_0"    : [
            # Allow to load modules
            "source /cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/current/init/bash",

            # Unset env var otherwise tempfile conflicts with other VO
            "unset GLOBUS_TCP_PORT_RANGE_STATE_FILE",

            # Load the OASIS CVMFS config if it is available
            "SETUPSH=/cvmfs/oasis.opensciencegrid.org/osg-software/osg-wn-client/3.3/current/el6-x86_64/setup.sh",
            "if test -r $SETUPSH; then source $SETUPSH; fi",

            # Make sure the GFAL directories are setup
            "if test -z $GFAL_CONFIG_DIR; then export GFAL_CONFIG_DIR=$OSG_LOCATION/etc/gfal2.d/; fi",
            "if test -z $GFAL_PLUGIN_DIR; then export GFAL_PLUGIN_DIR=$OSG_LOCATION/usr/lib64/gfal2-plugins/; fi",

            # Export this path here to be loaded for PB2
            "export PB2PATH=$PATH",
            "module load python/2.7",
            "module load gcc"
        ],
        "pre_bootstrap_1"    : [
            "export HOME=$HOME",
            "export PATH=$PB2PATH",
            "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
        ],
        "rp_version"         : "local",
        "virtenv"            : "./ve_xd-login",
        "virtenv_mode"       : "create",
        "python_dist"        : "default"
    },

    "connect": {
        "enabled"            : false,
        "description"        : "OSG Connect. (https://osgconnect.net).",
        "notes"              : "Always set the ``project`` attribute in the ComputePilotDescription or the pilot will fail.",
        "schemas"            : ["ssh", "gsissh"],
        "mandatory_args"     : ["project"],
        "ssh"                : {
            "job_manager_endpoint": "condor+ssh://login.osgconnect.net",
            "filesystem_endpoint" : "sftp://login.osgconnect.net/"
        },
        "gsissh"             : {
            "job_manager_endpoint": "condor+gsissh://login.osgconnect.net",
            "filesystem_endpoint" : "gsisftp://login.osgconnect.net/"
        },
        "lrms"               : "FORK",
        "agent_type"         : "multicore",
        "shared_filesystem"  : false,
        "health_check"       : false,
        "agent_scheduler"    : "CONTINUOUS",
        "agent_spawner"      : "POPEN",
        "agent_config"       : "osg",
        "agent_launch_method": "FORK",
        "task_launch_method" : "FORK",
        "pre_bootstrap_0"    : [
            "source /cvmfs/oasis.opensciencegrid.org/osg/modules/lmod/current/init/bash",
            "module load python/2.7"
        ],
        "rp_version"         : "local",
        "virtenv"            : "./ve_osgconnect",
        "virtenv_mode"       : "create",
        "python_dist"        : "default"
    }
}

