I'm writing an ENC for Puppet. Currently I have a basic template which is hooked up and working:
#!/bin/bash
if [ "$1" = beta.example.com ]; then
echo "environment: beta"
else
echo "environment: production"
fi
The value $1
is automatically sent by the agent and gives me a unique address. I'd like to send another parameter from the agent, so that I can access the device's mac address as $2
.
How can I modify the agent connection process to send extra information to my ENC?