Skip to content

Commit 837413a

Browse files
committed
updating aap
1 parent 6b36c0f commit 837413a

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

content/patterns/federated-edge-observability/ansible-automation-platform.adoc

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,41 @@ include::modules/comm-attributes.adoc[]
1212
[id="ansible-automation-pattern"]
1313
== Ansible Automation Platform
1414

15-
=== How to Log In
15+
=== Logging in to the Ansible Automation Platform
1616

17-
The default login user is `admin` and the password is generated randomly at install time; you will need the password to login in to the
18-
AAP interface. You do not have to log in to the interface - the pattern will configure the AAP instance; the pattern retrieves the password
19-
using the same technique as the `ansible_get_credentials.sh` script described below. If you want to inspect the AAP instance, or change any
20-
aspects of its configuration, there are two ways to login and look at it. Both mechanisms are equivalent; you get the same password to the
21-
same instance using either technique.
17+
The default login user for the AAP interface is `admin, and the password is randomly generated during installation. This password is required to access the interface.
2218

23-
=== Via the OpenShift Console
19+
However, logging into the interface is not necessary, as the pattern automatically configures the AAP instance. The pattern retrieves the password using the same method as the `ansible_get_credentials.sh` script (described below).
2420

25-
In the OpenShift console, navigate to Workloads > Secrets and select the `ansible-automation-platform` project if you want to limit the number
26-
of Secrets you can see.
21+
If you need to inspect the AAP instance or modify its configuration, there are two ways to log in. Both methods provide access to the same instance using the same password.
22+
23+
=== Logging in secret retrieved using the OpenShift Console
2724

25+
Follow these steps tp log in to the Ansible Automation Platform using the OpenShift console:
26+
27+
. In the OpenShift console, go to to *Workloads* > *Secrets* and select the `ansible-automation-platform` project if you want to limit the number
28+
of Secrets you can see.
29+
+
2830
link:/images/ansible-edge-gitops/ocp-console-secrets-aap-admin-password.png[image:/images/ansible-edge-gitops/ocp-console-secrets-aap-admin-password.png[secrets-navigation]]
2931

30-
The Secret you are looking for is in the `ansible-automation-platform` project and is named `controller-admin-password`. If you click on it,
31-
you can see the Data.password field. It is shown revealed below to show that it is the same as what is shown by the script method of retrieving it below:
32+
.. Select the `aap-admin-password`.
33+
34+
.. In the Data field click *Reveal values* to display the password.
3235

3336
link:/images/ansible-edge-gitops/ocp-console-aap-admin-password-detail.png[image:/images/ansible-edge-gitops/ocp-console-aap-admin-password-detail.png[secrets-detail]]
3437

35-
=== Via https://github.com/validatedpatterns/ansible-edge-gitops/blob/main/scripts/ansible_get_credentials.sh[ansible_get_credentials.sh]
38+
. Under *Networking* > *Routes*, click the URL for `aap` route to open the Ansible Automation Platform interface.
39+
40+
.. Log in using the `admin` user and the password you retrieved from the `aap-admin-password` secret. The following image shows the login screen:
41+
+
42+
link:/images/ansible-edge-gitops/ocp-console-secrets-aap-admin-password.png[image:/images/federated-edge-observability/app-login.png[AAP login screen]
43+
44+
=== Logging in using secret retrieved using https://github.com/validatedpatterns/ansible-edge-gitops/blob/main/scripts/ansible_get_credentials.sh[ansible_get_credentials.sh]
3645

37-
With your KUBECONFIG set, you can run `./scripts/ansible-get-credentials.sh` from your top-level pattern
38-
directory. This will use your OpenShift cluster admin credentials to retrieve the URL for your Ansible Automation Platform instance, as well as the password for its `admin` user, which is auto-generated by the AAP operator by default. The output of the command looks like this (your password will be different):
46+
Follow this procedure to log in to the Ansible Automation Platform using the `ansible_get_credentials.sh` script:
3947

48+
. From the top-level pattern directory (ensuring you have set `KUBECONFIG`), run the `ansible_get_credentials.sh` script. This script retrieves the URL for your Ansible Automation Platform instance and the password for its `admin` user. The password is auto-generated by the AAP operator by default. The output of the command looks like this (your password will be different):
49+
+
4050
[source,text]
4151
----
4252
./scripts/ansible_get_credentials.sh

0 commit comments

Comments
 (0)