Create task for adding ODL user 11/73411/15
authorTaseer Ahmed <taseer94@gmail.com>
Mon, 25 Jun 2018 16:08:44 +0000 (21:08 +0500)
committerTaseer Ahmed <taseer94@gmail.com>
Wed, 18 Jul 2018 12:54:38 +0000 (17:54 +0500)
Puppet creates the user before starting the ODL service. Same
workflow is implemented here.

JIRA: INTPAK-177
Change-Id: I269e15dc3a69d6018be050412108090fd83021c7
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
tasks/configure_odl_user.yml [new file with mode: 0644]
tasks/main.yml
vars/main.yml

diff --git a/tasks/configure_odl_user.yml b/tasks/configure_odl_user.yml
new file mode 100644 (file)
index 0000000..3681479
--- /dev/null
@@ -0,0 +1,7 @@
+---
+
+- name: create odl nb user
+  odl_usermod:
+    username: "{{ odl_nb_username }}"
+    password: "{{ odl_nb_password }}"
+    state: present
\ No newline at end of file
index f90d0c81b5d816766b1b3416979681ee23b8fa24..69dde826a167944aa10a78bb9869d2828a2eddbd 100644 (file)
@@ -9,6 +9,7 @@
 - include_tasks: open_nb_rest_port.yml
 - include_tasks: configure_genius_tunnels.yml
   when: "'odl-netvirt-sfc' in features"
+- include_tasks: configure_odl_user.yml
 - include_tasks: start_odl.yml
 - include_tasks: configure_quagga.yml
   when:
index cb2bbfd5944ae122d2b1a34b67ca84a00c9573a5..65c2423f8daf630c0ea5bade57eb6555239d8b41 100755 (executable)
@@ -133,3 +133,7 @@ quagga_dependencies:
 
 # Configure OpenDaylight with Quagga
 quagga: false
+
+# Default ODL user credentials
+odl_nb_username: admin
+odl_nb_password: admin
\ No newline at end of file