Last active
October 5, 2018 15:53
-
-
Save danmack/f7ed5dd3cf4a39aa0a39f051f333ad43 to your computer and use it in GitHub Desktop.
example bhyve json config for smartos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
removed size from disk per mr. mooney