aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/scenario/README
blob: e32262d0d536c49e132894fc72d153745245a721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
##############################################################################
# Copyright (c) 2015 Ericsson AB and others.
# jonas.bjurel@ericsson.com
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

Abstract:
---------
The directory contains configuration files for different OPNFV deployment
feature scenarios used by Fuel@OPNFV, eg.:
- High availability configuration
- Type of SDN controller to be deployed
- OPNFV collaboration project features to be deployed.
- Provisioning of any other sevices

Creating a new plugin
---------------------
Creating a new plugin involves creating a plugin config yaml file in
/deploy/config/plugins. The filename should comply to following structure:
fuel-<plugin_name>.yaml.
The plugin configuration must include plugin configuration metadata as below:

plugin-config-metadata:
  title:
  version:
  created:
  comment:

Moreover, naturaly the plugin configuration must include the plugin yaml
fragment, eg:

opendaylight:
  metadata:
    enabled: true
    label: OpenDaylight Lithium plugin
.......

Creating a new deployment scenario
----------------------------------
Creating a new deployment scenario involve creating a deployment scenario
yaml file under deploy/scenario/. The filename should comply to following
format: <ha | no-ha>_<SDN Controller>_<feature-1>_..._<feature-n>.yaml

The deployment configuration file must contain configuration metadata as stated
below:

deployment-scenario-metadata:
   title:
   version:
   created:
   comment:

To include fuel plugins, use the stack-extentions key:
stack-extensions, eg:

stack-extensions:
   - module: opendaylight
     module-config-name: fuel-odl
     module-config-version: 0.0.1
     module-config-override:
       # Module config overrides
       rest_api_port:
         value: '8282'
       enable_gbp:
         value: false
       enable_l3_odl:
         value: true
       enable_sfc:
         value: false

"module-config-name" and "module-config-version" must correspond to how
the plugin configuration yaml was named.
Everything under the "module-config-override" overrides the corresponding
keys in the plugin config yaml file, this can for instance be used to configure
the plugin.

Everything under the "dea-override-config" overrides corresponding keys in the dea_base.yaml and dea_pod_override.yaml.
You must at least provide {environment:{mode:'value},{net_segment_type:'value'}
and {nodes:....} in order to configure the HA mode, network segmentation types
and role to node assignments.
Other ovverides may also be used to enable stack features such as ceph, heat,
etc.
Example:

dea-override-config:
  environment:
    mode: ha
    net_segment_type: tun
  nodes:
  - id: 1
    interfaces: interfaces_1
    role: mongo,controller,opendaylight
  - id: 2
    interfaces: interfaces_1
    role: mongo,controller
  - id: 3
    interfaces: interfaces_1
    role: mongo,controller
  - id: 4
    interfaces: interfaces_1
    role: ceph-osd,compute
  - id: 5
    interfaces: interfaces_1
    role: ceph-osd,compute

  settings:
    editable:
      additional_components:
        ceilometer:
          description: If selected, Ceilometer component will be installed
          label: Install Ceilometer
          type: checkbox
          value: true
          weight: 40
        heat:
          description: ''
          label: ''
          type: hidden
          value: true
          weight: 30
        metadata:
          label: Additional Components
          weight: 20
      storage:
        ephemeral_ceph:
          description: Configures Nova to store ephemeral volumes in RBD. This works
            best if Ceph is enabled for volumes and images, too. Enables live migration
            of all types of Ceph backed VMs (without this option, live migration will
            only work with VMs launched from Cinder volumes).
          label: Ceph RBD for ephemeral volumes (Nova)
          type: checkbox
          value: true
          weight: 75
        images_ceph:
          description: Configures Glance to use the Ceph RBD backend to store images.
            If enabled, this option will prevent Swift from installing.
          label: Ceph RBD for images (Glance)
          restrictions:
          - settings:storage.images_vcenter.value == true: Only one Glance backend could
              be selected.
          type: checkbox
          value: true
          weight: 30

Optionally you may override the pod dha defenition under the
"dha-override-config" key.

Short names
-----------
scenario.yaml provides a mapping between a deployment scenario short-name
and one or several deployment scenario configuration yaml files.

Other
-----
These configuration files are used by deploy.sh provided by Fuel@OPNFV, e.g.
deploy.sh will clone this repo when deploying.