Skip to content

Instantly share code, notes, and snippets.

@danmack
Last active October 5, 2018 15:53
Show Gist options
  • Select an option

  • Save danmack/f7ed5dd3cf4a39aa0a39f051f333ad43 to your computer and use it in GitHub Desktop.

Select an option

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 bob@example.com",
"al-key" : "ssh-rsa somekey2 alice@example.com",
"ca-key" : "ssh-ed25519 someedkey3 carol@example.com",
"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

danmack commented Oct 5, 2018

Copy link
Copy Markdown
Author

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