Ubuntu Pastebin

Paste from smoser at Wed, 25 May 2016 16:27:12 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#cloud-config
random_bucket_name:
 - &user_setup |
   #this is some long bit of code that i want
   #to pass off to sh -c , but do not want to deal with
   #having stuff get escaped for yaml.
   echo hi mom | tee /var/log/foo.log
   
runcmd:
 - [ sh, -c, *user_setup ]
Download as text