X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fplatform%2Fcookbook.rst;h=0a834b40acd2edee70f5e990c04918534d51fc9a;hb=ffd7241c7bfa8d8b68b504406fc6ed4cc299ffe6;hp=3281d571c64c2363634577e4d18b380870dad302;hpb=469a5fa29003f87900e4de2c34a0b95e50f0a5c1;p=policy%2Fengine.git diff --git a/docs/platform/cookbook.rst b/docs/platform/cookbook.rst index 3281d571c..0a834b40a 100644 --- a/docs/platform/cookbook.rst +++ b/docs/platform/cookbook.rst @@ -94,7 +94,7 @@ OOM Installation - Policy Kubernetes Recipes :caption: Access the PAP container :linenos: - kubectl exec -it -c pap -n onap bash + kubectl exec -it -c pap -n onap -- bash --login .. code-block:: bash @@ -112,7 +112,7 @@ OOM Installation - Policy Kubernetes Recipes # depends on the deployment configuration - kubectl exec -it -pdp-0 -c drools -n onap bash + kubectl exec -it -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