Skip to content

Conversation

@ManviGupta-prog
Copy link
Contributor

@ManviGupta-prog ManviGupta-prog commented May 15, 2025

Tested with the following scenarios:

  • From the OCI console for the policy enhancement
Screenshot 2025-05-21 at 1 42 12 PM Here, the compartments of both the stack and profile are the same; hence, only one policy is created for OSMH, avoiding duplication. This is the case where the compartments of the stack and profile are different; hence, two policies are created for accessing OSMH in both the stack and profile compartments. Screenshot 2025-05-21 at 1 44 20 PM

Terraform CLI changes.
If a stack is created through the Terraform CLI with the default values, OSMH will be enabled by default, since select existing profile defaults to false, a new profile will be created.
If one needs to select an Existing profile, set the value to true & provide the profile OCID. If the OCID is not provided validation error will be thrown.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 15, 2025
Copy link
Contributor Author

@ManviGupta-prog ManviGupta-prog May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to change the version of Terraform to the latest one to support the data source for OSMH. If anyone is reviewing this, please let me know if this is feasible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused. Where is a data source used in the changes? I don't see it.

@telake
Copy link
Member

telake commented May 21, 2025

Can you please add to the description what testing you did? In https://jira.oraclecorp.com/jira/browse/JCS-14845 I only highlighted the 2 known problems if someone tried to run our default code without changes. Did you have to set any other tf variables to provision with new profile (the default)?

@telake telake merged commit 78deb06 into development May 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants