Created
April 12, 2019 13:42
-
-
Save danmack/8e1b691360f4601219052bc4fd5a261b to your computer and use it in GitHub Desktop.
This file contains 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", | |
"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 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the above works with 2019 smartos and the jan2019 image of centos-7.6