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.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 ruby | |
| # If copying this template by hand, replace the settings below including the angle brackets | |
| SETTINGS = { | |
| :url => "https://foreman", # e.g. https://foreman.example.com | |
| :puppetdir => "/var/lib/puppet", # e.g. /var/lib/puppet | |
| :puppetuser => "puppet", # e.g. puppet | |
| :facts => true, # true/false to upload facts | |
| :timeout => 10, | |
| :threads => nil, |
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
| -- -*- lua -*- | |
| -- vim:ft=lua:et:ts=4 | |
| require("sandbox") | |
| require("strict") | |
| local Dbg = require("Dbg") | |
| local dbg = Dbg:dbg() | |
| local unpack = unpack or table.unpack | |
| local hook = require("Hook") |
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
| #PBS -l walltime=02:00:00 | |
| #PBS -q academy | |
| #PBS -j oe | |
| [ -z "$MODE" ] && MODE="all" | |
| [ -z "$BTL" ] && MPIRUN_MCA_ARGS="" || MPIRUN_MCA_ARGS="-mca btl ${BTL},self" | |
| MDTEST_ROOT="${HOME}/mdtest" | |
| MDTEST_TEST_DIR="/fdata/scratch/${USER}/mdtest" |
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 | |
| NAME="qemu-kvm" | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| RPMBUILD_OPTS="--define '_topdir ${DIR}' --define 'dist .el6_5' --define 'rhel 6'" | |
| # Default variables that have command line flags | |
| QUIET=0 | |
| DEBUG=0 | |
| TRACE=0 |
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 ruby | |
| require 'rubygems' | |
| require 'pp' | |
| require 'optparse' | |
| def parse(args) | |
| @options = {} | |
| @options['debug'] = false |
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
| Debug: Puppet::Type::User::ProviderLdap: true value when expecting false | |
| Debug: Puppet::Type::User::ProviderPw: file pw does not exist | |
| Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist | |
| Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist | |
| Debug: Puppet::Type::Group::ProviderLdap: true value when expecting false | |
| Debug: Puppet::Type::Group::ProviderPw: file pw does not exist | |
| Debug: Puppet::Type::Group::ProviderDirectoryservice: file /usr/bin/dscl does not exist | |
| Debug: Using settings: adding file resource 'reportdir': 'File[/var/lib/puppet/reports]{:links=>:follow, :group=>"puppet", :backup=>false, :owner=>"puppet", :mode=>"750", :ensure=>:directory, :path=>"/var/lib/puppet/reports", :loglevel=>:debug}' | |
| Debug: Using settings: adding file resource 'vardir': 'File[/var/lib/puppet]{:links=>:follow, :backup=>false, :ensure=>:directory, :path=>"/var/lib/puppet", :loglevel=>:debug}' | |
| Debug: Using settings: adding file resource 'ssldir': 'File[/var/lib/pup |
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
| Debug: Puppet::Type::User::ProviderLdap: true value when expecting false | |
| Debug: Puppet::Type::User::ProviderPw: file pw does not exist | |
| Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist | |
| Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist | |
| Debug: Puppet::Type::Group::ProviderLdap: true value when expecting false | |
| Debug: Puppet::Type::Group::ProviderPw: file pw does not exist | |
| Debug: Puppet::Type::Group::ProviderDirectoryservice: file /usr/bin/dscl does not exist | |
| Debug: Using settings: adding file resource 'reportdir': 'File[/var/lib/puppet/reports]{:links=>:follow, :group=>"puppet", :backup=>false, :owner=>"puppet", :mode=>"750", :ensure=>:directory, :path=>"/var/lib/puppet/reports", :loglevel=>:debug}' | |
| Debug: Using settings: adding file resource 'vardir': 'File[/var/lib/puppet]{:links=>:follow, :backup=>false, :ensure=>:directory, :path=>"/var/lib/puppet", :loglevel=>:debug}' | |
| Debug: Using settings: adding file resource 'ssldir': 'File[/var/lib/pup |
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/share/foreman/script/rails runner -e production | |
| Host.all.each do |host| | |
| next unless host.dhcp? | |
| print "#{host}..." | |
| dhcp_record = host.dhcp_record | |
| print "#{dhcp_record}..." |
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/share/foreman/script/rails runner -e production | |
| Host.all.each do |host| | |
| next unless host.dns? | |
| print "#{host}..." | |
| dns_a_record = host.dns_a_record | |
| print "#{dns_a_record}..." | |