Adds configuration files 79/39779/2
authorParker Berberian <pberberian@iol.unh.edu>
Mon, 21 Aug 2017 13:42:28 +0000 (09:42 -0400)
committerParker Berberian <pberberian@iol.unh.edu>
Thu, 31 Aug 2017 17:28:58 +0000 (13:28 -0400)
JIRA: N/A

Adds yaml files in conf/ to fit the laas software into your lab
infrastructure.
Each installer (Fuel, joid, etc) will also have their own config file,
which will point also to their own network and domain config file.

Change-Id: I0bcd57399b9f3f12aa351604fd03ae92de1ba93b
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
tools/laas-fog/conf/domain.yaml [new file with mode: 0644]
tools/laas-fog/conf/fuel.yaml [new file with mode: 0644]
tools/laas-fog/conf/inventory.yaml [new file with mode: 0644]
tools/laas-fog/conf/laas.yaml [new file with mode: 0644]
tools/laas-fog/conf/network.yaml [new file with mode: 0644]
tools/laas-fog/conf/pharos.yaml [new file with mode: 0644]
tools/laas-fog/conf/vpn.yaml [new file with mode: 0644]

diff --git a/tools/laas-fog/conf/domain.yaml b/tools/laas-fog/conf/domain.yaml
new file mode 100644 (file)
index 0000000..04914e0
--- /dev/null
@@ -0,0 +1,108 @@
+---
+- disk: /vm/master.qcow2
+  interfaces:
+    - name: admin
+      type: network
+    - name: public
+      type: network
+    - name: storage
+      type: network
+    - name: management
+      type: network
+  iso:
+    URL: http://artifacts.opnfv.org/fuel/danube/opnfv-danube.2.0.iso
+    location: /vm/fuel.iso
+    used: true
+  memory: 8240000
+  name: master
+  vcpus: 4
+
+- disk: /vm/slave1.qcow2
+  interfaces:
+    - name: admin
+      type: network
+    - name: public
+      type: network
+    - name: storage
+      type: network
+    - name: management
+      type: network
+  iso:
+    URL: http://artifacts.opnfv.org/fuel/danube/opnfv-danube.2.0.iso
+    location: /vm/fuel.iso
+    used: false
+  memory: 8240000
+  name: slave1
+  vcpus: 4
+
+- disk: /vm/slave2.qcow2
+  interfaces:
+    - name: admin
+      type: network
+    - name: public
+      type: network
+    - name: storage
+      type: network
+    - name: management
+      type: network
+  iso:
+    URL: http://artifacts.opnfv.org/fuel/danube/opnfv-danube.2.0.iso
+    location: /vm/fuel.iso
+    used: false
+  memory: 8240000
+  name: slave2
+  vcpus: 4
+
+- disk: /vm/slave3.qcow2
+  interfaces:
+    - name: admin
+      type: network
+    - name: public
+      type: network
+    - name: storage
+      type: network
+    - name: management
+      type: network
+  iso:
+    URL: http://artifacts.opnfv.org/fuel/danube/opnfv-danube.2.0.iso
+    location: /vm/fuel.iso
+    used: false
+  memory: 8240000
+  name: slave3
+  vcpus: 4
+
+- disk: /vm/slave4.qcow2
+  interfaces:
+    - name: admin
+      type: network
+    - name: public
+      type: network
+    - name: storage
+      type: network
+    - name: management
+      type: network
+  iso:
+    URL: http://artifacts.opnfv.org/fuel/danube/opnfv-danube.2.0.iso
+    location: /vm/fuel.iso
+    used: false
+  memory: 8240000
+  name: slave4
+  vcpus: 4
+
+- disk: /vm/slave5.qcow2
+  interfaces:
+    - name: admin
+      type: network
+    - name: public
+      type: network
+    - name: storage
+      type: network
+    - name: management
+      type: network
+  iso:
+    URL: http://artifacts.opnfv.org/fuel/danube/opnfv-danube.2.0.iso
+    location: /vm/fuel.iso
+    used: false
+  memory: 8240000
+  name: slave5
+  vcpus: 4
diff --git a/tools/laas-fog/conf/fuel.yaml b/tools/laas-fog/conf/fuel.yaml
new file mode 100644 (file)
index 0000000..0994d86
--- /dev/null
@@ -0,0 +1,17 @@
+---
+database: /var/OPNFV/hosts.db
+dhcp_log: /var/log/messages
+dhcp_server: null
+fog:
+  api_key: /path/to/fog.key  # may also put the key directly here
+  server: http://fogserver.com/fog/
+  user_key: /path/to/fog_user.key
+  image_id: 5
+installer: Fuel
+logging_dir: /var/log/OPNFV/
+scenario: os-nosdn-nofeature-noha
+hypervisor_config:
+  networks: /root/laas/conf/network.yaml
+  vms: /root/laas/conf/domain.yaml
+inventory: /root/laas/conf/inventory.yaml
+vpn_config: /root/laas/conf/vpn.yaml
diff --git a/tools/laas-fog/conf/inventory.yaml b/tools/laas-fog/conf/inventory.yaml
new file mode 100644 (file)
index 0000000..9d3d61b
--- /dev/null
@@ -0,0 +1,6 @@
+---
+# pharos id : fog name
+# for example:
+1: fog-host-1
+2: fog-host-2
+3: fog-host-3
diff --git a/tools/laas-fog/conf/laas.yaml b/tools/laas-fog/conf/laas.yaml
new file mode 100644 (file)
index 0000000..da11a56
--- /dev/null
@@ -0,0 +1,17 @@
+---
+database: /var/OPNFV/hosts.db
+dhcp_log: /var/log/messages
+dhcp_server: null
+fog:
+  api_key: /path/to/fog.key  # may also put the key directly here
+  server: http://fogserver.com/fog/
+  user_key: /path/to/fog_user.key
+  image_id: 5
+installer: null
+logging_dir: /var/log/OPNFV/
+scenario: os-nosdn-nofeature-noha
+hypervisor_config:
+  networks: /root/laas/conf/network.yaml
+  vms: /root/laas/conf/domain.yaml
+inventory: /root/laas/conf/inventory.yaml
+vpn_config: /root/laas/conf/vpn.yaml
diff --git a/tools/laas-fog/conf/network.yaml b/tools/laas-fog/conf/network.yaml
new file mode 100644 (file)
index 0000000..61860d5
--- /dev/null
@@ -0,0 +1,52 @@
+---
+- brAddr: 10.20.0.1
+  brName: admin-br
+  cidr: 10.20.0.0/24
+  dhcp:
+    rangeEnd: 10.20.0.250
+    rangeStart: 10.20.0.15
+    used: false
+  forward:
+    type: nat
+    used: true
+  name: admin
+  netmask: 255.255.255.0
+
+- brAddr: 10.20.1.1
+  brName: public-br
+  cidr: 10.20.1.0/24
+  dhcp:
+    rangeEnd: 10.20.1.250
+    rangeStart: 10.20.1.15
+    used: false
+  forward:
+    type: nat
+    used: true
+  name: public
+  netmask: 255.255.255.0
+
+- brAddr: 10.20.2.1
+  brName: management-br
+  cidr: 10.20.2.0/24
+  dhcp:
+    rangeEnd: 10.20.2.250
+    rangeStart: 10.20.2.15
+    used: false
+  forward:
+    type: nat
+    used: false
+  name: management
+  netmask: 255.255.255.0
+
+- brAddr: 10.20.3.1
+  brName: storage-br
+  cidr: 10.20.3.0/24
+  dhcp:
+    rangeEnd: 10.20.3.250
+    rangeStart: 10.20.3.15
+    used: false
+  forward:
+    type: nat
+    used: false
+  name: storage
+  netmask: 255.255.255.0
diff --git a/tools/laas-fog/conf/pharos.yaml b/tools/laas-fog/conf/pharos.yaml
new file mode 100644 (file)
index 0000000..9fedde1
--- /dev/null
@@ -0,0 +1,11 @@
+---
+dashboard: https://labs.opnfv.org
+database: /var/OPNFV/laas.db
+default_configs:
+  Fuel: /root/laas/conf/fuel.yaml
+  None: /root/laas/conf/laas.yaml
+  Joid: /rooot/laas/conf/joid.yaml
+inventory: /root/laas/conf/inventory.yaml
+logging_dir: /var/log/OPNFV
+polling: 3
+token: /root/laas/conf/pharos.key
diff --git a/tools/laas-fog/conf/vpn.yaml b/tools/laas-fog/conf/vpn.yaml
new file mode 100644 (file)
index 0000000..6f39927
--- /dev/null
@@ -0,0 +1,15 @@
+---
+server: vpn.domain.com
+authentication:
+  pass: /path/to/keyfile  # you may also put the password directly here
+  user: cn=root,o=opnfv,dc=domain,dc=com
+directory:
+  root: o=opnfv,dc=domain,dc=com
+  user: ou=People  # relative to the root dir
+user:
+  objects:  # listed in ascending order of specificty
+    - top
+    - inetOrgPerson  # last object should be a class that only vpn users have
+database: /var/OPNFV/laas.db  # same as the pharos api booking db
+permanent_users:  # any users you want to be persistent
+  - pberberian