About Creating Dynamic Groups and Policies
To deploy the management agent for the first time in your tenancy, create a Dynamic Group that allows the Management Agent to communicate with the OCI Management Agent Services (MACS). Note that the Dynamic Groups are tenancy-specific and policies are compartment-specific.
Create a Dynamic Group
Create the policies on the compartment where you are discovering the PeopleSoft applications. To Create Dynamic Groups:
- Navigate to Oracle Cloud menu.
- Select Identity & Security.
- Under Identity, select Dynamic
Groups.
Note:
If you don’t have the necessary tenancy administrative privileges, have your organization's tenancy administrator create the dynamic group.
managementagent
, which belongs to the given compartment from which
the management agent will be installed and upload its
metrics.ALL {resource.type='managementagent', resource.compartment.id='ocid1.compartment.oc1.examplecompartmentid'}
For example:
ALL {resource.type='managementagent', resource.compartment.id='ocid1.compartment.oc1..aaaaaaaa7uzcx73agiwphhr4t4yhjrtyvpq zyyixd4xxxyyymo3byg2ofogq'}
Create Admin and View Groups
If they don't already exist on your tenancy, you need to create Admin and View groups.
- StackMonitoringAdminGrp
- StackMonitoringUserGrp
Note:
If you don’t have the necessary tenancy administrative privileges, have your organization's tenancy administrator create the groups.Create Required Policies
Next, you need to create the required policies. IAM policies allow four
predefined verbs: inspect
, read
,
use
and manage
. Inspect
allows the minimum privilege and manage
allows the
maximum.
- For Dynamic Groups, add these policies. Substitute
the Dynamic Group Name and compartment
OCID.
ALLOW DYNAMIC-GROUP Management_Agent_Dynamic_Group TO USE METRICS IN COMPARTMENT compartment_name where target.metrics.namespace = 'oracle_appmgmt' ALLOW DYNAMIC-GROUP Management_Agent_Dynamic_Group TO {STACK_MONITORING_DISCOVERY_JOB_RESULT_SUBMIT} IN COMPARTMENT compartment_name
- For Users and Groups, add these policies. Be sure
to replace
compartment_name
with the appropriate value.ALLOW GROUP StackMonitoringAdminGrp TO {MGMT_AGENT_DEPLOY_PLUGIN_CREATE, MGMT_AGENT_INSPECT, MGMT_AGENT_READ} IN COMPARTMENT compartment_name ALLOW GROUP StackMonitoringAdminGrp TO READ metrics IN COMPARTMENT compartment_name ALLOW GROUP StackMonitoringAdminGrp to READ instances IN COMPARTMENT
compartment_name
ALLOW GROUP StackMonitoringAdminGrp to MANAGE external-database-family IN COMPARTMENT compartment_name ALLOW GROUP StackMonitoringAdminGrp to MANAGE alarms IN COMPARTMENT compartment_name ALLOW GROUP StackMonitoringAdminGrp to USE ons-topics IN COMPARTMENT compartment_name ALLOW GROUP StackMonitoringAdminGrp to USE ons-topics IN COMPARTMENT compartment_name
For more information on policies required for PeopleSoft applications, see "Getting Started" and "IAM Security Policies", both in the OCI documentation. You can access these documents from "Explore More", elsewhere in this playbook.