Convert nova-compute-replication to yaml

Yaml is the future - json is the past

\o/

Change-Id: I36a9cbf8db034d1e8deba040a22e556d791c65ed
This commit is contained in:
Steven Dake 2014-10-14 11:12:45 -07:00
parent 20e88776bc
commit a6edd270db
2 changed files with 37 additions and 66 deletions

View File

@ -1,66 +0,0 @@
{
"apiVersion": "v1beta1",
"desiredState": {
"podTemplate": {
"desiredState": {
"manifest": {
"containers": [
{
"name": "nova-compute",
"image": "kollaglue/fedora-rdo-nova-compute",
"env": [
{
"name": "DB_ROOT_PASSWORD",
"value": "password"
},
{
"name": "NOVA_DB_PASSWORD",
"value": "novadbpassword"
},
{
"name": "KEYSTONE_ADMIN_TOKEN",
"value": "ADMINTOKEN"
}
]
},
{
"name": "nova-libvirt",
"image": "kollaglue/fedora-rdo-nova-libvirt",
"ports": [
{"containerPort": 16509}
],
"env": [
{
"name": "DB_ROOT_PASSWORD",
"value": "password"
},
{
"name": "NOVA_DB_PASSWORD",
"value": "novadbpassword"
},
{
"name": "KEYSTONE_ADMIN_TOKEN",
"value": "ADMINTOKEN"
}
]
},
],
"id": "nova-compute-controller",
"version": "v1beta1"
}
},
"labels": {
"name": "nova-compute"
}
},
"replicaSelector": {
"name": "nova-compute"
},
"replicas": 2
},
"id": "nova-compute-controller",
"kind": "ReplicationController",
"labels": {
"name": "nova-compute"
}
}

View File

@ -0,0 +1,37 @@
apiVersion: v1beta1
desiredState:
podTemplate:
desiredState:
manifest:
containers:
- name: nova-compute
image: kollaglue/fedora-rdo-nova-compute
env:
- name: DB_ROOT_PASSWORD
value: password
- name: NOVA_DB_PASSWORD
value: novadbpassword
- name: KEYSTONE_ADMIN_TOKEN
value: ADMINTOKEN
- name: nova-libvirt
image: kollaglue/fedora-rdo-nova-libvirt
ports:
- containerPort: 16509
env:
- name: DB_ROOT_PASSWORD
value: password
- name: NOVA_DB_PASSWORD
value: novadbpassword
- name: KEYSTONE_ADMIN_TOKEN
value: ADMINTOKEN
id: nova-compute-controller
version: v1beta1
labels:
name: nova-compute
replicaSelector:
name: nova-compute
replicas: 2
id: nova-compute-controller
kind: ReplicationController
labels:
name: nova-compute