Created
December 28, 2011 18:33
-
-
Save mattf/1529059 to your computer and use it in GitHub Desktop.
Custom Startd attrtibutes from facter
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
FACTER = /usr/libexec/condor/facter.sh | |
STARTD_CRON_JOBLIST = $(STARTD_CRON_JOBLIST) FACTER | |
STARTD_CRON_FACTER_EXECUTABLE = $(FACTER) | |
STARTD_CRON_FACTER_PERIOD = 300 |
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/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