Skip to content

Instantly share code, notes, and snippets.

@danmack
Last active October 5, 2018 15:53
Show Gist options
  • Save danmack/f7ed5dd3cf4a39aa0a39f051f333ad43 to your computer and use it in GitHub Desktop.
Save danmack/f7ed5dd3cf4a39aa0a39f051f333ad43 to your computer and use it in GitHub Desktop.
example bhyve json config for smartos
{
"brand": "bhyve",
"vcpus": "2",
"ram": "16384",
"alias": "centos-bhyve1",
"hostname": "centos-bhyve1",
"dns_domain": "example.com",
"resolvers": ["8.8.8.8", "8.8.4.4"],
"disks": [
{
"boot": true,
"image_uuid": "1f11188a-c71c-11e8-83d4-370e2a698b16",
"model": "virtio"
}
],
"customer_metadata" : {
"bo-key" : "ssh-rsa somekey1 [email protected]",
"al-key" : "ssh-rsa somekey2 [email protected]",
"ca-key" : "ssh-ed25519 someedkey3 [email protected]",
"user-script" : "/usr/sbin/mdata-get bo-key > ~root/.ssh/authorized_keys ; /usr/sbin/mdata-get al-key >> ~root/.ssh/authorized_keys; /usr/sbin/mdata-get ca-key >> ~root/.ssh/authorized_keys; mkdir /somedir"
},
"nics": [
{
"nic_tag": "admin",
"model": "virtio",
"ip": "192.168.1.42",
"netmask": "255.255.255.0",
"gateway": "192.168.1.254",
"primary": true
}
]
}
@danmack
Copy link
Author

danmack commented Oct 5, 2018

removed size from disk per mr. mooney

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