Skip to content

Instantly share code, notes, and snippets.

@mattf
Created December 28, 2011 18:33
Show Gist options
  • Save mattf/1529059 to your computer and use it in GitHub Desktop.
Save mattf/1529059 to your computer and use it in GitHub Desktop.
Custom Startd attrtibutes from facter
FACTER = /usr/libexec/condor/facter.sh
STARTD_CRON_JOBLIST = $(STARTD_CRON_JOBLIST) FACTER
STARTD_CRON_FACTER_EXECUTABLE = $(FACTER)
STARTD_CRON_FACTER_PERIOD = 300
#!/bin/sh
type facter &> /dev/null || exit 1
facter | sed 's/\([^ ]*\) => \(.*\)/facter_\1 = "\2"/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment