Ubuntu Pastebin

Paste from smoser at Wed, 8 Nov 2017 18:20:51 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Put this in /etc/cloud/cloud.cfg.d/99-our-nocloud.cfg

## Cloud-init would try to configure networking itself, and its fallback
## behavior is to 'dhcp on eth0' (where eth0 is some nic that looks good)
## Since we are already configuring networking in ansible, tell cloud-int
## not to do that.
network: {config: disabled}

## We have to put a single element in the datasource_list so that
## cloud-init's ds-identify will use this datasource only.
## in ubuntu this can be configured with 'dpkg-reconfigure cloud-init'
## or by editing /etc/cloud/cloud.cfg.d/90_dpkg.cfg
datasource_list: [NoCloud]

##
datasource:
  NoCloud:
    ## We have a data on a web service at the url below.  Under
    ## the 'seedfrom' url, we have /user-data and /meta-data.
    seedfrom: http://my.ip.or.dns/some/path/here/
Download as text