fuel-web/nailgun/nailgun/fixtures/sample_plugins.json

567 lines
23 KiB
JSON

[
{
"pk": 1,
"model": "nailgun.plugin",
"fields": {
"name": "logging",
"title": "The Logging, Monitoring and Alerting (LMA) Collector Plugin",
"version": "0.7.0",
"description": "Collect logs, metrics and notifications from system and OpenStack services and forward that information to external backends such as Elasticsearch and InfluxDB.",
"fuel_version": ["7.0"],
"authors": ["Mirantis Inc."],
"licenses": ["Apache License Version 2.0"],
"homepage": "https://github.com/openstack/fuel-plugin-lma-collector",
"groups": ["monitoring", "equipment"],
"releases": [
{
"os": "ubuntu",
"version": "2014.2-6.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "ubuntu",
"version": "2014.2-6.1",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "centos",
"version": "2014.2-6.1",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/centos"
},
{
"os": "ubuntu",
"version": "2015.1-8.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "ubuntu",
"version": "newton-10.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
}
],
"package_version": "2.0.0",
"attributes_metadata": {
"logging_text": {
"value": "value",
"type": "text",
"description": "description",
"weight": 25,
"label": "label",
"restrictions": [
{
"condition": "settings:zabbix_monitoring.zabbix_checkbox.value == true",
"message": "Zabbix conflict",
"strict": false
}
]
}
}
}
},
{
"pk": 2,
"model": "nailgun.plugin",
"fields": {
"name": "VPNaaS",
"title": "VPNaaS plugin for Neutron",
"version": "1.1.0",
"description": "Neutron extension that introduces VPN feature set",
"fuel_version": ["6.1"],
"authors": ["Andrey Epifanov, Sergey Kolekonov"],
"groups": ["monitoring"],
"releases": [
{
"os": "ubuntu",
"version": "2014.2-6.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "centos",
"version": "2014.2-6.1",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/centos"
},
{
"os": "ubuntu",
"version": "2015.1-8.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "ubuntu",
"version": "newton-10.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
}
],
"package_version": "2.0.0"
}
},
{
"pk": 3,
"model": "nailgun.plugin",
"fields": {
"name": "zabbix_monitoring",
"title": "Zabbix for Fuel",
"version": "1.0.0",
"description": "Enables Zabbix Monitoring. For information how to access Zabbix UI refer to Zabbix plugin User Guide. Zabbix URL schema is http://<VIP>/zabbix",
"fuel_version": ["7.0"],
"authors": ["Dmitry Klenov <dklenov@mirantis.com>", "Piotr Misiak <pmisiak@mirantis.com>", "Szymon Banka <sbanka@mirantis.com>", "Bartosz Kupidura <bkupidura@mirantis.com>", "Alexander Zatserklyany <azatserklyany@mirantis.com>"],
"licenses": ["Apache License Version 2.0"],
"homepage": "https://github.com/openstack/fuel-plugin-external-zabbix",
"groups": ["monitoring"],
"is_hotpluggable": false,
"releases": [
{
"os": "ubuntu",
"version": "2014.2-6.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "centos",
"version": "2014.2-6.1",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/centos"
},
{
"os": "ubuntu",
"version": "2015.1-8.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "ubuntu",
"version": "newton-10.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
}
],
"package_version": "2.0.0",
"attributes_metadata": {
"metadata": {
},
"zabbix_text_1": {
"value": "value 1.1",
"type": "text",
"description": "description 1.1",
"weight": 25,
"label": "label 1.1"
}
}
}
},
{
"pk": 4,
"model": "nailgun.plugin",
"fields": {
"name": "zabbix_monitoring",
"title": "Zabbix for Fuel",
"version": "2.0.0",
"description": "Enables Zabbix Monitoring. For information how to access Zabbix UI refer to Zabbix plugin User Guide. Zabbix URL schema is http://<VIP>/zabbix",
"fuel_version": ["7.0"],
"authors": ["Dmitry Klenov <dklenov@mirantis.com>", "Piotr Misiak <pmisiak@mirantis.com>", "Szymon Banka <sbanka@mirantis.com>", "Bartosz Kupidura <bkupidura@mirantis.com>", "Alexander Zatserklyany <azatserklyany@mirantis.com>"],
"licenses": ["Apache License Version 2.0"],
"homepage": "https://github.com/openstack/fuel-plugin-external-zabbix",
"groups": ["monitoring"],
"is_hotpluggable": true,
"releases": [
{
"os": "ubuntu",
"version": "2014.2-6.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "centos",
"version": "2014.2-6.1",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/centos"
},
{
"os": "ubuntu",
"version": "2015.1-8.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
},
{
"os": "ubuntu",
"version": "newton-10.0",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/",
"repository_path": "repositories/ubuntu"
}
],
"package_version": "2.0.0",
"attributes_metadata": {
"metadata": {
"restrictions": [
{
"condition": "cluster:net_provider != 'neutron'",
"action": "hide"
}
]
},
"zabbix_text_1": {
"value": "value 2.1",
"label": "Label of text field 2.1",
"description": "Description of text field 2.1",
"weight": 20,
"type": "text"
},
"zabbix_text_2": {
"value": "value 2.2",
"label": "Label of text field 2.2",
"description": "Description of text field 2.2",
"weight": 21,
"type": "text"
},
"zabbix_text_with_regex": {
"value": "",
"label": "Label of text field with regex (type 'aa-aa')",
"description": "Some description of text field with regex",
"weight": 30,
"type": "text",
"regex": {
"source": "^(?:[a-z]+-[a-z0-9]+)(?:,[a-z]+-[a-z0-9]+)*",
"error": "Invalid value in text field with regex"
}
},
"zabbix_checkbox": {
"value": false,
"label": "Hide file selector",
"description": "If True then file field will be hidden",
"weight": 40,
"type": "checkbox"
},
"zabbix_file": {
"value": "",
"label": "Select file",
"description": "Description of file field",
"weight": 41,
"type": "file",
"restrictions": [
{
"condition": "settings:zabbix_monitoring.zabbix_checkbox.value == true",
"action": "hide"
}
]
},
"zabbix_checkbox_long_name": {
"value": true,
"label": "Show text field",
"description": "If True then text field will be shown",
"weight": 50,
"type": "checkbox"
},
"zabbix_text_3": {
"value": "",
"label": "Label of text field 2.3",
"description": "Description of text field 2.3",
"weight": 51,
"type": "text",
"restrictions": [
{
"condition": "settings:zabbix_monitoring.zabbix_checkbox_long_name.value == false",
"action": "hide"
}
]
}
}
}
},
{
"pk": 5,
"model": "nailgun.plugin",
"fields": {
"name": "plugin_with_node_and_nic_attributes",
"title": "Plugin with Node and NIC attributes",
"version": "1.0.0",
"description": "Plugin with Node and NIC attributes",
"fuel_version": ["9.0"],
"authors": [""],
"licenses": ["Apache License Version 2.0"],
"homepage": "",
"groups": [""],
"is_hotpluggable": true,
"releases": [
{
"repository_path": "repositories/ubuntu",
"version": "mitaka-9.0",
"os": "ubuntu",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/"
},
{
"repository_path": "repositories/centos",
"version": "newton-10.0",
"os": "ubuntu",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/"
}
],
"package_version": "5.0.0",
"network_roles_metadata": [],
"attributes_metadata": {},
"volumes_metadata": {},
"roles_metadata": {},
"tasks": [],
"components_metadata": [
{
"label": "Title for plugin_with_node_and_nic_attributes component.",
"description": "Description for plugin_with_node_and_nic_attributes component.",
"name": "additional_service:service_plugin_with_node_and_nic_attributes_component"
}
],
"nic_attributes_metadata": {
"attribute_a": {
"value": false,
"type": "checkbox",
"description": "NIC Attribute A description",
"weight": 10,
"label": "NIC Attribute A label"
},
"attribute_b": {
"value": "SomeValue",
"type": "text",
"description": "NIC Attribute B description",
"weight": 20,
"label": "NIC Attribute B label",
"restrictions": [{
"nic_attributes:plugin_with_node_and_nic_attributes.attribute_a.value == false": "Requires enabled NIC attribute A"
}],
"regex": {
"source": "^[A-z0-9]+$",
"error": "NIC Attribute B value should match the following regex: ^[A-z0-9]+$"
}
}
},
"bond_attributes_metadata": {
"bond_attribute_a": {
"value": false,
"type": "checkbox",
"description": "Bond Attribute A description",
"weight": 10,
"label": "Bond Attribute A label"
},
"bond_attribute_b": {
"value": 10,
"type": "number",
"description": "Bond Attribute B description",
"weight": 20,
"label": "Bond Attribute B label",
"min": 10,
"max": 20
}
},
"node_attributes_metadata": {
"plugin_section_a": {
"metadata": {
"label": "Section A",
"weight": 110
},
"attribute_a": {
"type": "checkbox",
"description": "Node attribute A for section A description",
"value": false,
"label": "Node attribute A for section A label",
"weight": 10
},
"attribute_b": {
"type": "text",
"description": "Node attribute B for section A",
"value": "",
"label": "Node attribute B for section A label",
"restrictions": [
"node_attributes:plugin_section_a.attribute_a.value == false"
],
"regex": {
"source": "^[A-z0-9]+$"
},
"weight": 20
}
},
"plugin_section_b": {
"metadata": {
"label": "Section B",
"weight": 120
},
"attribute_a": {
"type": "textarea",
"description": "Node attribute A for section B description",
"value": "",
"label": "Node attribute A for section B label",
"weight": 10
},
"attribute_b": {
"type": "number",
"description": "Node attribute B for section B description",
"value": 2,
"min": 2,
"max": 4,
"label": "Node attribute B for section B label",
"weight": 20
}
}
}
}
},
{
"pk": 6,
"model": "nailgun.plugin",
"fields": {
"name": "plugin_with_node_and_nic_attributes",
"title": "Plugin with Node and NIC attributes",
"version": "2.0.0",
"description": "Plugin with Node and NIC attributes",
"fuel_version": ["9.0"],
"authors": [""],
"licenses": ["Apache License Version 2.0"],
"homepage": "",
"groups": [""],
"is_hotpluggable": true,
"releases": [
{
"repository_path": "repositories/ubuntu",
"version": "mitaka-9.0",
"os": "ubuntu",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/"
},
{
"repository_path": "repositories/centos",
"version": "newton-10.0",
"os": "ubuntu",
"mode": ["ha"],
"deployment_scripts_path": "deployment_scripts/"
}
],
"package_version": "5.0.0",
"network_roles_metadata": [],
"attributes_metadata": {},
"volumes_metadata": {},
"roles_metadata": {},
"tasks": [],
"components_metadata": [
{
"label": "Title for plugin_with_node_and_nic_attributes component.",
"description": "Description for plugin_with_node_and_nic_attributes component.",
"name": "additional_service:service_plugin_with_node_and_nic_attributes_component"
}
],
"nic_attributes_metadata": {
"attribute_a_v2": {
"value": true,
"type": "checkbox",
"description": "NIC Attribute A description (v2)",
"weight": 10,
"label": "NIC Attribute A label (v2)"
},
"attribute_b_v2": {
"value": ["123", "456"],
"type": "text_list",
"description": "NIC Attribute B description (v2)",
"weight": 20,
"label": "NIC Attribute B label (v2)",
"min": 2,
"max": 4,
"regex": {
"source": "^[0-9]+$",
"error": "Positive number expected"
}
}
},
"bond_attributes_metadata": {
"bond_attribute_a_v2": {
"value": false,
"type": "checkbox",
"description": "Bond Attribute A description (v2)",
"weight": 10,
"label": "Bond Attribute A label (v2)"
},
"bond_attribute_b_v2": {
"value": "SomeValue",
"type": "text",
"description": "Bond Attribute B description (v2)",
"weight": 20,
"label": "Bond Attribute B label (v2)",
"restrictions": [{
"bond_attributes:plugin_with_node_and_nic_attributes.bond_attribute_a_v2.value == false": "Requires enabled Bond attribute A (v2)"
}],
"regex": {
"source": "^[A-z0-9]+$"
}
}
},
"node_attributes_metadata": {
"plugin_section_a_v2": {
"metadata": {
"label": "Section A (v2)",
"restrictions": [
"settings:common.libvirt_type.value != 'kvm'"
],
"weight": 110
},
"attribute_a": {
"type": "checkbox",
"description": "Node attribute A for Section A (v2)",
"value": true,
"label": "Node attribute A for Section A (v2)",
"weight": 10
}
},
"plugin_section_b_v2": {
"metadata": {
"label": "Section B (v2)",
"weight": 120
},
"attribute_a_v2": {
"type": "text_list",
"description": "Node attribute 1 for Section B",
"value": ["abc", ""],
"regex": {
"source": "^[A-z0-9]+$",
"error": "Invalid value for regex ^[A-z0-9]+$"
},
"label": "Node attribute A for Section B",
"weight": 10,
"min": 1,
"max": 3
},
"attribute_b_v2": {
"type": "number",
"description": "Node attribute B for Section B",
"value": 3,
"label": "Node attribute B for Section B",
"min": 1,
"max": 100,
"weight": 20
}
}
}
}
}
]