Update standalone legacy policy UI recipe
[policy/engine.git] / docs / platform / cookbook.rst
index 3281d57..0a834b4 100644 (file)
@@ -94,7 +94,7 @@ OOM Installation - Policy Kubernetes Recipes
        :caption: Access the PAP container
        :linenos:
 
-        kubectl exec -it <pap-pod> -c pap -n onap bash
+        kubectl exec -it <pap-pod> -c pap -n onap -- bash --login
 
 
     .. code-block:: bash
@@ -112,7 +112,7 @@ OOM Installation - Policy Kubernetes Recipes
 
         # <policy-deployment-prefix> depends on the deployment configuration
 
-        kubectl exec -it <policy-deployment-prefix>-pdp-0 -c drools -n onap bash
+        kubectl exec -it <policy-deployment-prefix>-pdp-0 -c pdp -n onap -- bash --login
 
 
     .. code-block:: bash
@@ -186,6 +186,26 @@ PDP-D Recipes (inside the "drools" container)
             -X PUT https://localhost:9696/policy/pdp/engine/tools/loggers/network/WARN
 
 
+PAP Recipes (inside the "pap" container)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+    .. code-block:: bash
+       :caption: Bypass Portal Authentication with the Policy Web UI
+       :linenos:
+
+        sed -i "s/^role_access_centralized.*$/#role_access_centralized=remote/g" /opt/app/policy/servers/console/webapps/onap/WEB-INF/classes/portal.properties
+        cd /opt/app/policy/servers/pap
+        /opt/app/policy/etc/init.d/pap stop; /opt/app/policy/etc/init.d/pap start
+        policy.sh status
+
+
+    .. code-block:: bash
+       :caption: Access the Policy Web UI without going through the Portal UI
+       :linenos:
+
+       https://policy.api.simpledemo.onap.org:30219/onap/policy  (Kubernetes)
+
+
 End of Document
 
 .. SSNote: Wiki page ref. https://wiki.onap.org/display/DW/Policy+Cookbook