This file contains 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/ | |
FOO=x | |
echo $FOO | |
This file contains 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/ | |
FOO=x | |
echo $FOO | |
# THIS FAILS AS YOU FORGOT $BAR | |
# No it does not. |
This file contains 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
@user{'steve': | |
uid => 3001 | |
} | |
@user{'owen': | |
uid => 6001, | |
} | |
@user{'tim': | |
uid => 6002 | |
} |
This file contains 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/puppet apply | |
class {'grid_users':} | |
class grid_users { | |
#group { "cmsusr": | |
# ensure => present, | |
# gid => 4050 | |
#} | |
#group { "cmssgm": |
This file contains 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
augeas{'xyz': | |
lens => 'Properties.lns', | |
incl => "/tmp/voms.service.properties", | |
changes => ['set "abc.def" "2345"'] | |
} |
This file contains 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/ruby | |
ref = 'lxplus6.cern.ch' | |
target = 'i130215090503.cern.ch' | |
refrpms = %x"ssh root@#{ref} \"package-cleanup -q --all --leaves | xargs -i rpm --queryformat '%{name}.%{arch}\n' -q {}\" ".split | |
targetrpms = %x"ssh root@#{target} \"package-cleanup -q --all --leaves | xargs -i rpm --queryformat '%{name}.%{arch}\n' -q {}\" ".split | |
puts "### Missing leaves on target machine" |
This file contains 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
# LSF Information | |
# Rus lsid to determin the name of the LSF master. | |
if Facter.value(:id) == "root" and File.exists?('/usr/bin/lsid') | |
Facter.add("lsf_lsid_master") do | |
setcode do | |
output = Facter::Util::Resolution.exec('/usr/bin/lsid') | |
if not output.nil? | |
output.grep(/My master name is \S+$/)[0].split.last | |
end |
This file contains 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
/* | |
# whitespace | |
We need a site.pp to define global class paramerters | |
basically. | |
*/ | |
/* Set hostgroup variables in top scope. We need | |
to set anything that hiera needs very early, in | |
particular this will win over any facts present | |
on the box. */ |
This file contains 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 | |
export OS_AUTH_URL=https://openstack.cern.ch:5000/v2.0 | |
export OS_TENANT_ID=cd6c149a-d4e2-471d-98a3-b32b6797f009 | |
export OS_TENANT_NAME="IT FTS" | |
export OS_CACERT=/etc/pki/tls/certs/CERN-bundle.pem | |
export OS_USERNAME=straylen | |
nova list > /dev/null 2>&1 | |
if [ $? != "0" ] ; then |
This file contains 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 *:80> | |
ServerName stratum-zero-lbp.cern.ch | |
## Vhost docroot | |
DocumentRoot /var/www/html | |
## Alias declarations for resources outside the DocumentRoot | |
Alias /opt/ams /srv/cvmfs2/ams/pub/catalogs | |
Alias /cvmfs/ams.cern.ch /srv/cvmfs2/ams/pub/catalogs | |
Alias /opt/atlas /srv/cvmfs2/atlas/pub/catalogs | |
Alias /opt/atlas-condb /srv/cvmfs/atlas-condb/pub/catalogs |
OlderNewer