Ubuntu Pastebin

Paste from smoser at Tue, 10 May 2016 15:27:55 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
$ cat /tmp/my.userdata 
#cloud-config
apt_sources:
 - source: "ppa:smoser/ppa"

$ userdata=$(cat /tmp/my.userdata)
$ lxc launch xenial x2 "--config=user.user-data=$userdata"

$ sleep 10
$ lxc exec x2 -- find /etc/apt/sources.list.d/ -type f
/etc/apt/sources.list.d/smoser-ubuntu-ppa-xenial.list

$ lxc exec x2 -- cat /etc/apt/sources.list.d/smoser-ubuntu-ppa-xenial.list
deb http://ppa.launchpad.net/smoser/ppa/ubuntu xenial main
# deb-src http://ppa.launchpad.net/smoser/ppa/ubuntu xenial main
Download as text