-
-
Save tdooner/85febab03eed25967d2a to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
require 'yaml' | |
require 'base64' | |
contents = "#cloud-config\n" + { | |
'bootcmd' => [ | |
'yum remove zsh -y', | |
'yum install zsh -y' | |
] | |
}.to_yaml | |
puts "==========================" | |
puts contents | |
puts "==========================" | |
puts Base64.encode64(contents).gsub("\n", '') | |
puts "==========================" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment