A distribution represents an operating system that can be installed on a host. It groups elements required for the provisioning such as, for example, a kickstart template. Settings and parameters may be associated to a distribution, in particular for template rendering. .
The following elements are defined as part of a distribution representation:
{
"name": "co6-Hyp3",
"description": "CentOS 6",
"organization": "Guardis Test",
"files": [
{
"delimiter": {
"end": "}",
"start": "${"
},
"name": "co6.ks"
}
],
"parameters": [
{
"description": "",
"key": "ks_rootpw_one",
"name": "Root password",
"schema": {
"type": "string"
},
"value": "secret",
"version": 1
},
{
"description": "",
"key": "enable_trunk",
"name": "Enable trunk",
"schema": {
"type": "string"
},
"value": "true",
"version": 1
},
{
"description": "",
"key": "amqp_server",
"name": "AMQP server",
"schema": {
"type": "string"
},
"value": "mahogany.angleur.guardis.be",
"version": 1
},
{
"description": "",
"key": "vm_arch",
"name": "Architecture",
"schema": {
"type": "string"
},
"value": "x86_64",
"version": 1
},
{
"description": "",
"key": "zone",
"name": "Zone",
"schema": {
"type": "string"
},
"value": "angleur",
"version": 1
},
{
"description": "",
"key": "vm_base_arch",
"name": "Base architecture",
"schema": {
"type": "string"
},
"value": "x86_64",
"version": 1
}
],
"settings": [
{
"key": "cmdline",
"value": "text ks=${_urls[\\"co6.ks\\"]}",
"version": 0
},
{
"key": "initrd",
"value": "/var/lib/comodit/dist/centos/6/${vm_arch}/initrd.img",
"version": 0
},
{
"key": "kernel",
"value": "/var/lib/comodit/dist/centos/6/${vm_arch}/vmlinuz",
"version": 0
}
],
"version": 1
}
/api/organizations/{org_name}/distributions
/api/organizations/{org_name}/distributions/{dist_name}
/organizations/{org_name}/distributions/{dist_name}/_clone?name=new_name
2016 © ComodIT. All Rights Reserved. Privacy Policy | Terms of Service