Skip to content

Instantly share code, notes, and snippets.

View sustr4's full-sized avatar

Zdeněk Šustr sustr4

View GitHub Profile
@sustr4
sustr4 / vomses.sh
Created March 24, 2014 12:46
VOMS Example
#!/bin/bash
mkdir /etc/vomses
echo '"vo.org" "emicert-voms.civ.zcu.cz" "15000" "/DC=org/DC=terena/DC=tcs/OU=Domain Control Validated/CN=emicert-voms.civ.zcu.cz" "vo.org"' > /etc/vomses/emicert-voms.civ.zcu.cz
#!/bin/sh
#Early steps, just to be sure
apt-get update
apt-get upgrade -y
#NFS Server -- Cargo Cult ;-)
apt-get install -y nfs-kernel-server
echo '/var/lib/one *(rw,sync,no_subtree_check,root_squash,anonuid=9869,anongid=9869)' >> /etc/exports
before(:each) do
require './spec/occi/api/client/auth_details.rb'
@client = Occi::Api::Client::ClientHttp.new({
:endpoint => in_endpoint,
:auth => in_auth,
:log => { :out => "/dev/null",
:level => Occi::Log::DEBUG },
:auto_connect => true,
:media_type => "text/plain,text/occi"
})