From: Manuel Buil Date: Fri, 25 Aug 2017 14:36:22 +0000 (+0000) Subject: Make jetty.xml port substitution version agnostic X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=8fb38d8bd466af2964b6fb95abab3d76743f62df;p=integration%2Fpackaging%2Fansible-opendaylight.git Make jetty.xml port substitution version agnostic Now it will work for Carbon, Nitrogen and Boron releases Change-Id: I177e85a5eb6e9279550df774535a006309a308ae Signed-off-by: Manuel Buil --- diff --git a/tasks/configure_nb_rest_port.yml b/tasks/configure_nb_rest_port.yml index b67c3e1..d2756ea 100644 --- a/tasks/configure_nb_rest_port.yml +++ b/tasks/configure_nb_rest_port.yml @@ -1,9 +1,7 @@ - name: Configure ODL NB REST port - template: - src=jetty.xml - dest=/opt/opendaylight/etc/jetty.xml - owner=odl - group=odl - notify: - - Stop ODL - - Start ODL + lineinfile: + dest: /opt/opendaylight/etc/jetty.xml + regexp: name="jetty.port" default="8080" + line: ' ' + owner: odl + group: odl diff --git a/templates/jetty.xml b/templates/jetty.xml deleted file mode 100644 index 40dfdfa..0000000 --- a/templates/jetty.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - 300000 - 2 - false - 8543 - 20000 - 5000 - - - - - - - - - - - - - 300000 - 2 - false - 8443 - 20000 - 5000 - - - - - - - - - - - - - - - karaf - karaf - - - org.apache.karaf.jaas.boot.principal.RolePrincipal - - - - - - - - - - default - karaf - - - org.apache.karaf.jaas.boot.principal.RolePrincipal - - - - - - - -