Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
hostname=$1
cern-get-certificate --autoenroll --grid
echo "$(date) ::::RECAST:::: done setting up cern keytab/cert"
usermod -aG docker recast
@lukasheinrich
lukasheinrich / compose.yml
Created March 28, 2016 07:33
recast worker compose tesst
version: '2'
services:
plugin:
image: lukasheinrich/recast-cap-demo
command: bash -c 'cd /workdirsdata && celery worker -A recastbackend.fromenvapp:app -l debug -Q $$RECAST_QUEUE'
environment:
- C_FORCE_ROOT=yes
- CELERY_REDIS_HOST=lheinric-newcc
- CELERY_REDIS_PORT=6379
- CELERY_REDIS_DB=0
@lukasheinrich
lukasheinrich / gist:bf4baa94a410bfdec093
Created February 3, 2015 20:04
repo spec to install shibboleth from yum. save in /etc/yum.repos.d/shibboleth.repo
[security_shibboleth]
name=Shibboleth (RHEL_6)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/security:/shibboleth/RHEL_6/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/security:/shibboleth/RHEL_6/repodata/repomd.xml.key
enabled=1
# Apache server configuration for apssotest.
# This sets up a Flask application over SSL with CERN SSO authentication via
# Shibboleth.
# Load the SSL and Shibboleth modules
LoadModule ssl_module modules/mod_ssl.so
LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_22.so
# Disable TRACE HTTP requests on CERN advice
TraceEnable Off