/
usr
/
share
/
doc
/
cloud-init
/
examples
/
/usr/share/doc/cloud-init/examples
mkdir
upload
Name
Size
Mode
Actions
seed/
-
0755
rm
boothook.txt
80
0644
edit
dl
rm
cloud-config-add-apt-repos.txt
1573
0644
edit
dl
rm
cloud-config-ansible-controller.txt
7363
0644
edit
dl
rm
cloud-config-ansible-managed.txt
3823
0644
edit
dl
rm
cloud-config-ansible-pull.txt
341
0644
edit
dl
rm
cloud-config-apt.txt
12994
0644
edit
dl
rm
cloud-config-archive-launch-index.txt
802
0644
edit
dl
rm
cloud-config-archive.txt
239
0644
edit
dl
rm
cloud-config-boot-cmds.txt
406
0644
edit
dl
rm
cloud-config-ca-certs.txt
1184
0644
edit
dl
rm
cloud-config-chef-oneiric.txt
3455
0644
edit
dl
rm
cloud-config-chef.txt
4203
0644
edit
dl
rm
cloud-config-datasources.txt
2322
0644
edit
dl
rm
cloud-config-disk-setup.txt
9084
0644
edit
dl
rm
cloud-config-gluster.txt
456
0644
edit
dl
rm
cloud-config-install-packages.txt
383
0644
edit
dl
rm
cloud-config-launch-index.txt
570
0644
edit
dl
rm
cloud-config-lxd.txt
1814
0644
edit
dl
rm
cloud-config-mount-points.txt
1504
0644
edit
dl
rm
cloud-config-ntp.txt
835
0644
edit
dl
rm
cloud-config-reporting.txt
335
0644
edit
dl
rm
cloud-config-run-cmds.txt
963
0644
edit
dl
rm
cloud-config-ssh-keys.txt
2289
0644
edit
dl
rm
cloud-config-update-apt.txt
229
0644
edit
dl
rm
cloud-config-update-packages.txt
93
0644
edit
dl
rm
cloud-config-user-groups.txt
6823
0644
edit
dl
rm
cloud-config-wireguard.txt
1183
0644
edit
dl
rm
cloud-config-write-files.txt
1078
0644
edit
dl
rm
cloud-config-yum-repo.txt
897
0644
edit
dl
rm
cloud-config.txt
16559
0644
edit
dl
rm
include-once.txt
353
0644
edit
dl
rm
include.txt
434
0644
edit
dl
rm
kernel-command-line.txt
1029
0644
edit
dl
rm
network-config-v1-bonded-pair.yaml
428
0644
edit
dl
rm
network-config-v1-bonded-vlan.yaml
508
0644
edit
dl
rm
network-config-v1-bridge.yaml
638
0644
edit
dl
rm
network-config-v1-multiple-vlan.yaml
1208
0644
edit
dl
rm
network-config-v1-nameserver.yaml
403
0644
edit
dl
rm
network-config-v1-physical-3-nic.yaml
443
0644
edit
dl
rm
network-config-v1-physical-dhcp.yaml
100
0644
edit
dl
rm
network-config-v1-route.yaml
321
0644
edit
dl
rm
network-config-v1-subnet-dhcp.yaml
151
0644
edit
dl
rm
network-config-v1-subnet-multiple.yaml
364
0644
edit
dl
rm
network-config-v1-subnet-routes.yaml
527
0644
edit
dl
rm
network-config-v1-subnet-static.yaml
348
0644
edit
dl
rm
network-config-v1-vlan.yaml
253
0644
edit
dl
rm
part-handler-v2.txt
1562
0644
edit
dl
rm
part-handler.txt
2081
0644
edit
dl
rm
plain-ignored.txt
68
0644
edit
dl
rm
user-script.txt
125
0644
edit
dl
rm
Edit:
/usr/share/doc/cloud-init/examples/cloud-config-add-apt-repos.txt
(1573B)
#cloud-config # Add primary apt repositories # # To add 3rd party repositories, see cloud-config-apt.txt or the # Additional apt configuration and repositories section. # # # Default: auto select based on instance-data # in ec2, the default is <region>.archive.ubuntu.com # apt: # primary: # - arches: [default] # uri: # use the provided mirror # search: # search the list for the first mirror. # this is currently very limited, only verifying that # the mirror is dns resolvable or an IP address # # if neither mirror is set (the default) # then use the mirror provided by the DataSource found. # In EC2, that means using <region>.ec2.archive.ubuntu.com # # if no mirror is provided by the DataSource, but 'search_dns' is # true, then search for dns names '<distro>-mirror' in each of # - fqdn of this host per meta-data # - localdomain # - no domain (which would search domains listed in /etc/resolv.conf) # If there is a dns entry for <distro>-mirror, then it is assumed that there # is a distro mirror at http://<distro>-mirror.<domain>/<distro> # # That gives the cloud provider the opportunity to set mirrors of a distro # up and expose them only by creating dns entries. # # if none of that is found, then the default distro mirror is used apt: primary: - arches: [default] uri: http://us.archive.ubuntu.com/ubuntu/ # or apt: primary: - arches: [default] search: - http://local-mirror.mydomain - http://archive.ubuntu.com # or apt: primary: - arches: [default] search_dns: True
Save
cmd:
run