Skip to content

Instantly share code, notes, and snippets.

View dciangot's full-sized avatar

Diego Ciangottini dciangot

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
c.SlurmSpawner.batch_script = """#!/bin/bash
#SBATCH --output={{homedir}}/jupyterhub_slurmspawner_%j.log
#SBATCH --job-name=spawner-jupyterhub
#SBATCH --chdir={{homedir}}
#SBATCH --export={{keepvars}}
#SBATCH --get-user-env=L
#SBATCH --partition={{partition}}
#SBATCH --time={{runtime}}
#SBATCH --mem={{memory}}
#SBATCH --gres={{gres}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-myservice
annotations:
kubernetes.io/ingress.class: "nginx"
# uncomment this to use cert-manager self signed certs
# cert-manager.io/cluter-issuer: "self-issuer"
spec:
rules:
#cloud-config
# vim: syntax=yaml
write_files:
- encoding: ""
content: |-
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system
---
tosca_definitions_version: tosca_simple_yaml_1_0
metadata:
template_author: INDIGO/DEEP
template_name: indigo_custom_types
template_version: 4.0.0
description: Contains the custom types definition as defined by the INDIGO & DEEP team
data_types:
---
- hosts: localhost
connection: local
vars:
vnode_prefix: vnode-
pre_tasks:
- name: Create auth file dir
file: path=/etc/kubernetes/pki state=directory mode=755 recurse=yes
- name: Create auth data file with an admin user
copy: content='{{kube_admin_token}},{{kube_admin_username}},100,"users,system:masters"' dest=/etc/kubernetes/pki/auth mode=600
import boto3
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session
import requests
import xmltodict
import liboidcagent as agent
from boto3 import Session
def assumed_session(session=None):
tosca_definitions_version: tosca_simple_yaml_1_0
metadata:
template_author: INDIGO/DEEP
template_name: indigo_custom_types
template_version: 4.0.0
description: Contains the custom types definition as defined by the INDIGO & DEEP team
capability_types:
sudo -u xrootd bash -c "eosfusebind krb5 /tmp/krb5cc_7910 && xrootd -d -c /opt/eos_xcache/config/xrootd-xcache.cfg -s /var/log/xrootd/xrootd.pid -l /var/log/xrootd/xrootd.log" &
FROM dodasts/dodas-x509 as GETCERTS
#FROM centos:7
FROM opensciencegrid/software-base:fresh
ENV XRD_VERSION=4.12.5
ENV XRD_HOST=localhost
ENV REDIR_HOST=localhost
ENV REDIR_CMSD_PORT=3113