Last active
August 29, 2015 14:05
-
-
Save hackzilla/36fe841a129c9a863f83 to your computer and use it in GitHub Desktop.
CoreOS
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/bash | |
MAC=`ifconfig enp0s33 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'` | |
URL="http://192.168.0.2/config/web-backend/${MAC}" | |
coreos-cloudinit --from-url="${URL}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment