Skip to content

Instantly share code, notes, and snippets.

@sombrafam
Created May 19, 2022 18:13
Show Gist options
  • Save sombrafam/f85ed367ff6eabf8741fe2d47dd125bb to your computer and use it in GitHub Desktop.
Save sombrafam/f85ed367ff6eabf8741fe2d47dd125bb to your computer and use it in GitHub Desktop.
config:
limits.cpu: "4"
limits.memory: 8GB
user.network-config: |
ethernets:
admin:
addresses:
- 10.10.10.2/24
dhcp4: false
match:
macaddress: 0a:0b:0c:0d:00:02
ext:
addresses:
- 10.10.30.2/24
dhcp4: false
match:
macaddress: 0a:0b:0c:0d:02:02
internal:
addresses:
- 10.10.40.2/24
dhcp4: false
match:
macaddress: 0a:0b:0c:0d:03:02
oam:
addresses:
- 10.10.20.2/24
dhcp4: false
gateway4: 10.10.20.1
match:
macaddress: 0a:0b:0c:0d:01:02
nameservers:
addresses:
- 8.8.8.8
search:
- segmaas.1ss
public:
addresses:
- 10.10.50.2/24
dhcp4: false
match:
macaddress: 0a:0b:0c:0d:04:02
version: 2
user.user-data: |
#cloud-config
ssh_pwauth: 'yes'
users:
- name: ubuntu
primary_group: ubuntu
gecos: Automaas
lock_passwd: 'false'
groups: lxd
shell: /bin/bash
sudo: 'ALL = (ALL) NOPASSWD: ALL'
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBZNSEkkkawPaeuwjJ6zn9z32i2t61OqGFwNnhrW5lRFPnMiHO0Dj6tYnAfvcVQYrXR/MaFV90oAHAzgClvGeB7RrUsT0YFOloCJTL86mu2lITymKGUqS8m1Uu+H5rdQXE6lf9fJNVJ2bzFPi+dJLLjE+GZmLRzi7XAJljVDgRfUFAMmMQySjAsTM908Zd9UeD3PO7oSnkJpw2N9gKg/Z8VXfrC1NQrGLLDEhuC9plsmxmTOoCp/GrRALX3ldTDwiARpnBSXondqqqP0GSDsE/xfq3+3MVO/+/hGK8zuIjsBgGWNErnmYdsgOttY2IHxXa77aF124eIkDavQdehWTX
erlon@thinktad-t400
growpart:
mode: auto
devices:
- /
ignore_growroot_disabled: false
packages:
- python3
- ssh-import-id
description: MAAS Server Profile
devices:
admin:
hwaddr: 0a:0b:0c:0d:00:02
name: admin
network: admin
type: nic
ext:
hwaddr: 0a:0b:0c:0d:02:02
name: ext
network: ext
type: nic
internal:
hwaddr: 0a:0b:0c:0d:03:02
name: internal
network: internal
type: nic
oam:
hwaddr: 0a:0b:0c:0d:01:02
name: oam
network: oam
type: nic
public:
hwaddr: 0a:0b:0c:0d:04:02
name: public
network: public
type: nic
root:
path: /
pool: automaas
type: disk
name: maas_server_profile
used_by:
- /1.0/instances/automaas-test-03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment