This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readonly ENVIRONMENTPATH="/apps/puppet/environments" | |
readonly DEF_ENV="production" | |
readonly PROGNAME=$(basename $0) | |
usage () { | |
cat << EOF | |
usage: ${PROGNAME} [OPTIONS] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
SLURM job submit filter for QOS | |
Some code and ideas pulled from https://github.com/edf-hpc/slurm-llnl-misc-plugins/blob/master/job_submit/job_submit.lua | |
--]] | |
--########################################################################-- | |
-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import argparse | |
import subprocess | |
import time | |
import datetime | |
import pytz | |
import filelock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import os | |
from osc.stdlib import exec_cmd | |
log = logging.getLogger(__name__) | |
# Needed to support Python 2.6 | |
from osc.logs import logging_null_handler | |
log.addHandler(logging_null_handler) | |
class GPFS(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"regexp" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
"regexp" | |
"time" | |
expect "github.com/google/goexpect" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Configuration settings for job data input | |
// The database configuration below assumes everything on the same host and | |
// XDMoD is installed on the host too. | |
// | |
// It is not necessary for all databases to run locally. A more complex | |
// configuration could have multiple hosts and different credentials for | |
// each DB. | |
"xdmodroot": "/etc/xdmod", | |
"datawarehouse": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resources": [ | |
{ | |
"resource": "owens", | |
"resource_id": 1, | |
"enabled": true, | |
"datasetmap": "prometheus-osc", | |
"hardware": { | |
"gpfs": "scratch", | |
"network": "eth0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app_ident = require('../app_ident.js'); | |
var map_helpers = require('../map_helpers.js'); | |
module.exports = function(config) { | |
var appident = app_ident(config.applicationDefn); | |
var getHardwareConfig = function (setting, default_val) { | |
var val = config.hardware; | |
var props = setting.split('.'); | |
for (let i = 0; i < props.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:443> | |
ServerName prometheus.DOMAIN | |
<Location "/"> | |
<RequireAny> | |
Require claim groups:oscall | |
</RequireAny> | |
AuthType openid-connect | |
</Location> |