From d68436de128f8ab113f2e8cc3076e4b34cd8492e Mon Sep 17 00:00:00 2001 From: dirk Date: Tue, 24 May 2016 11:46:32 +0200 Subject: [PATCH] added UI elements --- deployment_scripts/deploy.sh | 3 +++ environment_config.yaml | 37 +++++++++++++++++++++++++++++++----- metadata.yaml | 6 +++--- tasks.yaml | 4 ++-- 4 files changed, 40 insertions(+), 10 deletions(-) diff --git a/deployment_scripts/deploy.sh b/deployment_scripts/deploy.sh index d5510bf..b976091 100755 --- a/deployment_scripts/deploy.sh +++ b/deployment_scripts/deploy.sh @@ -2,3 +2,6 @@ # It's a script which deploys your plugin echo fuel-plugin-dynatrace > /tmp/fuel-plugin-dynatrace + + + diff --git a/environment_config.yaml b/environment_config.yaml index 15225e9..ae13f68 100644 --- a/environment_config.yaml +++ b/environment_config.yaml @@ -3,9 +3,36 @@ attributes: # Settings group can be one of "general", "security", "compute", "network", # "storage", "logging", "openstack_services" and "other". group: 'other' - fuel-plugin-dynatrace_text: - value: 'Set default value' - label: 'Text field' - description: 'Description for text field' - weight: 25 + + fuel-plugin-dynatrace_checkbox: + type: "checkbox" + weight: 10 + value: false + label: "Install Dynatrace Ruxit agent" + description: "Dynatrace Ruxit agent will be installed on all nodes" + + fuel-plugin-dynatrace_tenant: type: "text" + weight: 20 + value: "" + label: "Dynatrace Ruxit Tenant ID" + description: "Dynatrace Ruxit Tenant ID description" + restricitons: + - condition: "not (settings:fuel-plugin-dynatrace_checkbox)" + action: hide + regex: + source: '\S' + error: "Dynatrace Ruxit Tenant ID must not be empty" + + fuel-plugin-dynatrace_token: + type: "text" + weight: 30 + value: "" + label: "Dynatrace Ruxit Token" + description: "Dynatrace Ruxit Token description" + restricitons: + - condition: "not (settings:fuel-plugin-dynatrace_checkbox)" + action: hide + regex: + source: '\S' + error: "Dynatrace Ruxit Token must not be empty" diff --git a/metadata.yaml b/metadata.yaml index 50cb9a9..5fa0eb5 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -5,13 +5,13 @@ title: Title for fuel-plugin-dynatrace plugin # Plugin version version: '1.0.0' # Description -description: Please describe your plugin here +description: Plugin for OpenStack Fuel that installs the Dynatrace Ruxit agent # Required fuel version fuel_version: ['8.0'] # Specify license of your plugin licenses: ['Apache License Version 2.0'] # Specify author or company name -authors: ['Specify author or company name'] +authors: ['Dirk Wallerstorfer (dirk.wallerstorfer@dynatrace.com), Dynatrace'] # A link to the plugin's page homepage: 'https://github.com/openstack/fuel-plugins' # Specify a group which your plugin implements, possible options: @@ -20,7 +20,7 @@ homepage: 'https://github.com/openstack/fuel-plugins' groups: [] # Change `false` to `true` if the plugin can be installed in the environment # after the deployment. -is_hotpluggable: false +is_hotpluggable: true # The plugin is compatible with releases in the list releases: diff --git a/tasks.yaml b/tasks.yaml index ce982c6..2b00527 100644 --- a/tasks.yaml +++ b/tasks.yaml @@ -5,8 +5,8 @@ # here you can also specify several roles, for example # ['cinder', 'compute'] will be applied only on # cinder and compute nodes -- role: ['controller'] - stage: post_deployment +- role: '*' + stage: post_deployment/8000 type: shell parameters: cmd: bash deploy.sh