d99b308e6d
User can specify 'personality' attribute while server creation & rebuild to inject files into server. This patch implement this as separate plugin for V2.1 API. Also define the schema and unit tests for the same. Partially implements blueprint v2-on-v3-api Change-Id: Ia0c527539af7fe33eba4999822476653e1b96bc6
16 lines
794 B
JSON
16 lines
794 B
JSON
{
|
|
"rebuild": {
|
|
"imageRef": "http://glance.openstack.example.com/images/70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"name": "new-server-test",
|
|
"metadata": {
|
|
"meta_var": "meta_val"
|
|
},
|
|
"personality": [
|
|
{
|
|
"path": "/etc/banner.txt",
|
|
"contents": "ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6 b25zLiINCg0KLVJpY2hhcmQgQmFjaA=="
|
|
}
|
|
]
|
|
}
|
|
}
|