Skip to content

Instantly share code, notes, and snippets.

@danmack
Created April 12, 2019 13:42
Show Gist options
  • Save danmack/8e1b691360f4601219052bc4fd5a261b to your computer and use it in GitHub Desktop.
Save danmack/8e1b691360f4601219052bc4fd5a261b to your computer and use it in GitHub Desktop.
{
"brand": "bhyve",
"alias": "centomdano",
"hostname": "centodano",
"dns_domain": "example.com",
"vcpus": 2,
"ram": 4096,
"resolvers": ["8.8.8.8", "8.8.4.4"],
"disks": [
{
"image_uuid": "d6e56c0e-1e51-11e9-8ff1-2fecf38a5566",
"boot": true,
"model": "virtio"
}
],
"customer_metadata" : {
"ana-key": "ssh-ed25519 AAAsomesshkey",
"bob-key": "ssh-rsa somekey2 AAAsomeothersshkey",
"user-script": "/usr/sbin/mdata-get ana-key > ~root/.ssh/authorized_keys ; /usr/sbin/mdata-get bob-key >> ~root/.ssh/authorized_keys; touch /example_dir"
},
"nics": [
{
"nic_tag": "core",
"model": "virtio",
"ip": "192.168.0.14",
"netmask": "255.255.255.0",
"gateway": "192.168.0.254",
"vlan_id": 11,
"primary": true
}
]
}
@danmack
Copy link
Author

danmack commented Apr 12, 2019

the above works with 2019 smartos and the jan2019 image of centos-7.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment