Ubuntu Pastebin

Paste from smoser at Wed, 13 Sep 2017 13:16:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## This file defines the datasource_list to include only NoCloud.
## And then configures the NoCloud datasource to include its necessary
## bits of information (user-data, meta-data). If user-data and meta-data
## were not provided here, then NoCloud would go looking in other
## places (/var/lib/cloud/seed/nocloud).
datasource_list: [NoCloud]
datasource:
  NoCloud:
    # default seedfrom is None
    # if found, then it should contain a url with:
    #    <url>/user-data and <url>/meta-data
    # seedfrom: http://my.example.com/i-abcde
    seedfrom: None

    # fs_label: the label on filesystems to be searched for NoCloud source
    fs_label: cidata

    # these are optional, but allow you to basically provide a datasource
    # right here
    user-data: |
       # This is the user-data verbatum
    meta-data:
       instance-id: i-87018aed
       local-hostname: myhost.internal


## We can put other stuff here too:
packages: [cowsay]
runcmd:
  - [sh, -c, "echo 'Hi Mom, how are you?' | tee /run/greet.txt"]
Download as text