Skip to content

Instantly share code, notes, and snippets.

@mpontillo
Created December 19, 2016 23:10
Show Gist options
  • Save mpontillo/a837cfb6605775736f2e8dc704fbcf02 to your computer and use it in GitHub Desktop.
Save mpontillo/a837cfb6605775736f2e8dc704fbcf02 to your computer and use it in GitHub Desktop.
ubuntu@maas:~$ curl tftp://localhost/pxelinux.cfg/01-52-54-00-74-1e-ce
DEFAULT execute
LABEL execute
SAY Booting under MAAS direction...
SAY nomodeset iscsi_target_name=iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-hwe-x-xenial-daily iscsi_target_ip=127.0.0.1 iscsi_target_port=3260 iscsi_initiator=pxe1 ip=::::pxe1:BOOTIF ip6=off ro root=/dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-hwe-x-xenial-daily-lun-1 overlayroot=tmpfs cc:{'datasource_list': ['MAAS']}end_cc cloud-config-url=http://172.16.99.2:5240/MAAS/metadata/latest/by-id/nce47f/?op=get_preseed log_host=172.16.99.2 log_port=514
KERNEL ubuntu/amd64/hwe-x/xenial/daily/boot-kernel
INITRD ubuntu/amd64/hwe-x/xenial/daily/boot-initrd
APPEND nomodeset iscsi_target_name=iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-hwe-x-xenial-daily iscsi_target_ip=127.0.0.1 iscsi_target_port=3260 iscsi_initiator=pxe1 ip=::::pxe1:BOOTIF ip6=off ro root=/dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-hwe-x-xenial-daily-lun-1 overlayroot=tmpfs cc:{'datasource_list': ['MAAS']}end_cc cloud-config-url=http://172.16.99.2:5240/MAAS/metadata/latest/by-id/nce47f/?op=get_preseed log_host=172.16.99.2 log_port=514
IPAPPEND 2
ubuntu@maas:~$ curl http://172.16.99.2:5240/MAAS/metadata/latest/by-id/nce47f/?op=get_preseed
#cloud-config
apt:
preserve_sources_list: false
primary:
- arches: [default]
uri: http://192.168.122.218/ubuntu
proxy: http://172.16.99.2:8000/
security:
- arches: [default]
uri: http://192.168.122.218/ubuntu
apt_proxy: http://172.16.99.2:8000/
datasource:
MAAS: {consumer_key: fGtGmWztUZYjDb4kZA, metadata_url: 'http://172.16.99.2:5240/MAAS/metadata/curtin',
token_key: C2WPFEcwGm5CAhzcpv, token_secret: 43tar6huXX3vSj54a24HJRwxkzB875Vv}
power_state: {delay: now, mode: reboot, timeout: 1800}
reporting:
maas: {consumer_key: fGtGmWztUZYjDb4kZA, endpoint: 'http://172.16.99.2:5240/MAAS/metadata/status/nce47f',
token_key: C2WPFEcwGm5CAhzcpv, token_secret: 43tar6huXX3vSj54a24HJRwxkzB875Vv,
type: webhook}
rsyslog:
remotes: {maas: '172.16.99.2:514'}
system_info:
package_mirrors:
- arches: [i386, amd64]
failsafe: {primary: 'http://archive.ubuntu.com/ubuntu', security: 'http://security.ubuntu.com/ubuntu'}
search:
primary: ['http://192.168.122.218/ubuntu']
security: ['http://192.168.122.218/ubuntu']
- arches: [default]
failsafe: {primary: 'http://ports.ubuntu.com/ubuntu-ports', security: 'http://ports.ubuntu.com/ubuntu-ports'}
search:
primary: ['http://ports.ubuntu.com/ubuntu-ports']
security: ['http://ports.ubuntu.com/ubuntu-ports']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment