Last active
December 17, 2015 07:19
-
-
Save andruby/5571940 to your computer and use it in GitHub Desktop.
Testing for EC2 cloud-init with User Data
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
#cloud-config | |
apt_upgrade: true | |
apt_update: true | |
apt_reboot_if_required: true | |
packages: | |
- build-essential | |
- libcurl4-gnutls-dev | |
- libjansson-dev | |
- git | |
- automake |
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 | |
apt-get install -y build-essential libcurl4-gnutls-dev libjansson-dev git automake screen | |
cd /root && git clone https://github.com/pooler/cpuminer.git | |
cd /root/cpuminer/ && ./autogen.sh && CFLAGS="-O3 -Wall -msse2" ./configure && make clean && make |
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 | |
echo "Hello Mister. The time is now $(date -R)! And User-Data works to load gists from github" | tee /root/output.txt | |
cd /root && git clone https://github.com/pooler/cpuminer.git | |
cd /root/cpuminer/ && ./autogen.sh && CFLAGS="-O3 -Wall -msse2" ./configure && make clean && make |
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
#include | |
https://gist.github.com/andruby/5571940/raw/cloud-config | |
https://gist.github.com/andruby/5571940/raw/remote.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment