Skip to content

Commit 7841c15

Browse files
authored
Update NonGreenField.md
1 parent a35bdaa commit 7841c15

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

cd3_automation_toolkit/documentation/user_guide/NonGreenField.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,32 @@ c. Shell Script with import commands - tf_import_commands_`<resource>`_nonGF.sh
5555
> Once the export (including the execution of **tf_import_commands_`<resource>`_nonGF.sh**) is complete, switch the value of **non_gf_tenancy** back to **false**.
5656
> This allows the Tool Kit to support the tenancy as Green Field from this point onwards.
5757
58+
## Example - Export Identity
59+
Once the Docker container has been launched and connected to the OCI Tenancy, follow the below steps to quickly export Identity components from OCI.
60+
61+
1. Use the excel [CD3-Blank-template](/cd3_automation_toolkit/example) and place it at the location _/cd3user/tenancies/<customer\_name>/_ which is also mapped to your local directory.
62+
63+
2. Edit the _setUpOCI.properties_ at location:_/cd3user/tenancies /<customer\_name>/<customer\_name>\_setUpOCI.properties_ with appropriate values.
64+
- Update the _cd3file_ parameter to specify the CD3 excel sheet path.
65+
- Set the _non_gf_tenancy_ parameter value to _true_. (for Non Greenfield Workflow.)
66+
67+
<blockquote>For more information on types of Workflows, refer to <a href = /cd3_automation_toolkit/documentation/user_guide/Workflows.md> Automation Toolkit Workflows</a></blockquote>
68+
69+
3. Change Directory to 'cd3_automation_toolkit' :
70+
```cd /cd3user/oci_tools/cd3_automation_toolkit/```
71+
72+
and execute the _setupOCI.py_ file:
73+
74+
```python setUpOCI.py /cd3user/tenancies/<customer_name>/<customer_name>_setUpOCI.properties```
75+
4. Choose option 'Export Identity' from the displayed menu. Once the execution is successful, you will see:
76+
<ul>
77+
<li><b>Filled in tabs</b>-<i>Compartments, Groups, Polecies of Excel sheet</i></li>
78+
<li><i>tf_import_commands_identity.sh</i></li>
79+
<li><i>&lt;customer_name>_compartments.auto.tfvars, &lt;customer_name>_groups.auto.tfvars, &lt;customer_name>_policies.auto.tfvars</i></li>
80+
</ul>
81+
82+
5. Execute _tf\_import\_commands\_identity.sh_ to start importing the identity components into tfstate file.
83+
6. Repeat the above process (except Step 5) to export other components from OCI.
5884
<br><br>
5985
<div align='center'>
6086

0 commit comments

Comments
 (0)