Skip to content

Instantly share code, notes, and snippets.

View velocity303's full-sized avatar

James Jones velocity303

  • Chicago, IL, United States
View GitHub Profile
@velocity303
velocity303 / set_classif.sh
Last active August 29, 2015 14:20
set_classif.sh
#!/bin/bash
# simple 3.7 NC classifier commands
declare -x PE_CERT=$(/opt/puppet/bin/puppet agent --configprint hostcert)
declare -x PE_KEY=$(/opt/puppet/bin/puppet agent --configprint hostprivkey)
declare -x PE_CA=$(/opt/puppet/bin/puppet agent --configprint localcacert)
declare -x PE_CERTNAME=$(/opt/puppet/bin/puppet agent --configprint certname)
declare -x NC_CURL_OPT="-s --cacert $PE_CA --cert $PE_CERT --key $PE_KEY --insecure"