Distributed plug-in configuration templates 91/3291/5
authorFuel@OPNFV <fuel@opnfv.org>
Sun, 15 Nov 2015 18:24:50 +0000 (19:24 +0100)
committerJonas Bjurel <jonas.bjurel@ericsson.com>
Sat, 21 Nov 2015 11:45:44 +0000 (11:45 +0000)
This change proposes a new handling of plugin configuration files:
- Each plugin is responsible to carry own configuration template files
- Each of the plugin build fragments are responsible to copy these configuration
  files to ..deploy/templates/plugins/.
- Later, some entity will be responsible to link rellevant configuration files
  from ..deploy/templates/plugins to ..<deploy_environment>/conf/plugins_conf,
  I.e. to respective/active deployment environment.
- The actual linking process is not in place yet, but it could for example be
  deploy.sh, a separate deploy prep script or similar performing the linking
  based on arguments, or a config file describing the wanted set-up.

Change-Id: Ia16a2c26bb1e1a51195be2382da502777d209a45
Signed-off-by: jonas.bjurel@ericsson.com <jonas.bjurel@ericsson.com>
12 files changed:
fuel/build/f_isoroot/f_odlpluginbuild/Makefile
fuel/build/f_isoroot/f_odlpluginbuild/config/opendaylight_config.yaml [moved from fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod2/plugins_conf/opendaylight.yaml with 100% similarity]
fuel/deploy/templates/hardware_environment/conf/ericsson_montreal_lab/plugins_conf/.gitkeep [new file with mode: 0644]
fuel/deploy/templates/hardware_environment/conf/ericsson_montreal_lab/plugins_conf/opendaylight.yaml [deleted file]
fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod1/plugins_conf/.gitkeep [new file with mode: 0644]
fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod1/plugins_conf/opendaylight.yaml [deleted file]
fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod2/plugins_conf/.gitkeep [new file with mode: 0644]
fuel/deploy/templates/hardware_environment/conf/opnfv_box/plugins_conf/.gitkeep [new file with mode: 0644]
fuel/deploy/templates/hardware_environment/conf/opnfv_box/plugins_conf/opendaylight.yaml [deleted file]
fuel/deploy/templates/plugins/.gitkeep [new file with mode: 0644]
fuel/deploy/templates/virtual_environment/conf/plugins_conf/.gitkeep [new file with mode: 0644]
fuel/deploy/templates/virtual_environment/conf/plugins_conf/opendaylight.yaml [deleted file]

index df75fc6..a63cdad 100644 (file)
@@ -25,7 +25,7 @@ release:.odlbuild
        @mkdir -p ../release/opnfv
        @cp opendaylight*.rpm ../release/opnfv/
        cp gitinfo_odlplugin.txt $(BUILD_BASE)
-
+       cd $(BUILD_BASE) && mkdir -p ../deploy/templates/plugins && cp -rf $(TOP)/config/* ../deploy/templates/plugins
 .odlbuild:
        rm -rf fuel-plugin-opendaylight
        sudo apt-get -y install build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev
diff --git a/fuel/deploy/templates/hardware_environment/conf/ericsson_montreal_lab/plugins_conf/.gitkeep b/fuel/deploy/templates/hardware_environment/conf/ericsson_montreal_lab/plugins_conf/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fuel/deploy/templates/hardware_environment/conf/ericsson_montreal_lab/plugins_conf/opendaylight.yaml b/fuel/deploy/templates/hardware_environment/conf/ericsson_montreal_lab/plugins_conf/opendaylight.yaml
deleted file mode 100644 (file)
index 1944814..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-opendaylight:
-  metadata:
-    enabled: true
-    label: OpenDaylight plugin
-    plugin_id: 1
-    restrictions:
-    - cluster:net_provider != 'neutron': Only neutron is supported by OpenDaylight
-    toggleable: true
-    weight: 70
-  rest_api_port:
-    description: Port on which ODL REST API will be available.
-    label: Port number
-    regex:
-      error: Invalid port number
-      source: ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$
-    type: text
-    value: '8282'
-    weight: 40
-  use_vxlan:
-    description: Configure neutron to use VXLAN tunneling
-    label: Use vxlan
-    restrictions:
-    - action: disable
-      condition: networking_parameters:segmentation_type == 'vlan'
-      message: Neutron with GRE segmentation required
-    type: checkbox
-    value: true
-    weight: 20
-  vni_range_end:
-    description: VXLAN VNI IDs range end
-    label: VNI range end
-    regex:
-      error: Invalid ID number
-      source: ^\d+$
-    restrictions:
-    - action: hide
-      condition: networking_parameters:segmentation_type == 'vlan'
-    type: text
-    value: '10000'
-    weight: 31
-  vni_range_start:
-    description: VXLAN VNI IDs range start
-    label: VNI range start
-    regex:
-      error: Invalid ID number
-      source: ^\d+$
-    restrictions:
-    - action: hide
-      condition: networking_parameters:segmentation_type == 'vlan'
-    type: text
-    value: '10'
-    weight: 30
\ No newline at end of file
diff --git a/fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod1/plugins_conf/.gitkeep b/fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod1/plugins_conf/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod1/plugins_conf/opendaylight.yaml b/fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod1/plugins_conf/opendaylight.yaml
deleted file mode 100644 (file)
index 1944814..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-opendaylight:
-  metadata:
-    enabled: true
-    label: OpenDaylight plugin
-    plugin_id: 1
-    restrictions:
-    - cluster:net_provider != 'neutron': Only neutron is supported by OpenDaylight
-    toggleable: true
-    weight: 70
-  rest_api_port:
-    description: Port on which ODL REST API will be available.
-    label: Port number
-    regex:
-      error: Invalid port number
-      source: ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$
-    type: text
-    value: '8282'
-    weight: 40
-  use_vxlan:
-    description: Configure neutron to use VXLAN tunneling
-    label: Use vxlan
-    restrictions:
-    - action: disable
-      condition: networking_parameters:segmentation_type == 'vlan'
-      message: Neutron with GRE segmentation required
-    type: checkbox
-    value: true
-    weight: 20
-  vni_range_end:
-    description: VXLAN VNI IDs range end
-    label: VNI range end
-    regex:
-      error: Invalid ID number
-      source: ^\d+$
-    restrictions:
-    - action: hide
-      condition: networking_parameters:segmentation_type == 'vlan'
-    type: text
-    value: '10000'
-    weight: 31
-  vni_range_start:
-    description: VXLAN VNI IDs range start
-    label: VNI range start
-    regex:
-      error: Invalid ID number
-      source: ^\d+$
-    restrictions:
-    - action: hide
-      condition: networking_parameters:segmentation_type == 'vlan'
-    type: text
-    value: '10'
-    weight: 30
\ No newline at end of file
diff --git a/fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod2/plugins_conf/.gitkeep b/fuel/deploy/templates/hardware_environment/conf/linux_foundation_lab/pod2/plugins_conf/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fuel/deploy/templates/hardware_environment/conf/opnfv_box/plugins_conf/.gitkeep b/fuel/deploy/templates/hardware_environment/conf/opnfv_box/plugins_conf/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fuel/deploy/templates/hardware_environment/conf/opnfv_box/plugins_conf/opendaylight.yaml b/fuel/deploy/templates/hardware_environment/conf/opnfv_box/plugins_conf/opendaylight.yaml
deleted file mode 100644 (file)
index 183ef9c..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-opendaylight:
-  metadata:
-    enabled: true
-    label: OpenDaylight plugin
-    plugin_id: 1
-    restrictions:
-    - cluster:net_provider != 'neutron': Only neutron is supported by OpenDaylight
-    toggleable: true
-    weight: 70
-  rest_api_port:
-    description: Port on which ODL REST API will be available.
-    label: Port number
-    regex:
-      error: Invalid port number
-      source: ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$
-    type: text
-    value: '8282'
-    weight: 40
-  use_vxlan:
-    description: Configure neutron to use VXLAN tunneling
-    label: Use vxlan
-    restrictions:
-    - action: disable
-      condition: networking_parameters:segmentation_type == 'vlan'
-      message: Neutron with GRE segmentation required
-    type: checkbox
-    value: true
-    weight: 20
-  vni_range_end:
-    description: VXLAN VNI IDs range end
-    label: VNI range end
-    regex:
-      error: Invalid ID number
-      source: ^\d+$
-    restrictions:
-    - action: hide
-      condition: networking_parameters:segmentation_type == 'vlan'
-    type: text
-    value: '10000'
-    weight: 31
-  vni_range_start:
-    description: VXLAN VNI IDs range start
-    label: VNI range start
-    regex:
-      error: Invalid ID number
-      source: ^\d+$
-    restrictions:
-    - action: hide
-      condition: networking_parameters:segmentation_type == 'vlan'
-    type: text
-    value: '10'
-    weight: 30
diff --git a/fuel/deploy/templates/plugins/.gitkeep b/fuel/deploy/templates/plugins/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fuel/deploy/templates/virtual_environment/conf/plugins_conf/.gitkeep b/fuel/deploy/templates/virtual_environment/conf/plugins_conf/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fuel/deploy/templates/virtual_environment/conf/plugins_conf/opendaylight.yaml b/fuel/deploy/templates/virtual_environment/conf/plugins_conf/opendaylight.yaml
deleted file mode 100644 (file)
index 183ef9c..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-opendaylight:
-  metadata:
-    enabled: true
-    label: OpenDaylight plugin
-    plugin_id: 1
-    restrictions:
-    - cluster:net_provider != 'neutron': Only neutron is supported by OpenDaylight
-    toggleable: true
-    weight: 70
-  rest_api_port:
-    description: Port on which ODL REST API will be available.
-    label: Port number
-    regex:
-      error: Invalid port number
-      source: ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$
-    type: text
-    value: '8282'
-    weight: 40
-  use_vxlan:
-    description: Configure neutron to use VXLAN tunneling
-    label: Use vxlan
-    restrictions:
-    - action: disable
-      condition: networking_parameters:segmentation_type == 'vlan'
-      message: Neutron with GRE segmentation required
-    type: checkbox
-    value: true
-    weight: 20
-  vni_range_end:
-    description: VXLAN VNI IDs range end
-    label: VNI range end
-    regex:
-      error: Invalid ID number
-      source: ^\d+$
-    restrictions:
-    - action: hide
-      condition: networking_parameters:segmentation_type == 'vlan'
-    type: text
-    value: '10000'
-    weight: 31
-  vni_range_start:
-    description: VXLAN VNI IDs range start
-    label: VNI range start
-    regex:
-      error: Invalid ID number
-      source: ^\d+$
-    restrictions:
-    - action: hide
-      condition: networking_parameters:segmentation_type == 'vlan'
-    type: text
-    value: '10'
-    weight: 30