-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
133 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
Last update : October, 2021 | ||
Author: [email protected] | ||
Description: provision iam context for iacbox instance | ||
*/ | ||
|
||
resource "oci_identity_dynamic_group" "iacbox" { | ||
#Required | ||
compartment_id = var.tenancy_ocid | ||
description = "dynamic group for iacbox compute instance" | ||
matching_rule = "instance.id = '${module.instance_iacbox.instance_id[0]}'" | ||
name = "iacbox_instance" | ||
} | ||
|
||
resource "oci_identity_policy" "dynamic_group_iacbox" { | ||
#Required | ||
compartment_id = var.tenancy_ocid | ||
description = "dynamic-group iacbox manage all-resources in tenancy" | ||
name = "iacbox_tenancy_admin" | ||
statements = local.iacbox_policy_statements | ||
} | ||
|
||
locals { | ||
iacbox_policy_statements = [ | ||
"Allow dynamic-group ${oci_identity_dynamic_group.iacbox.name} to manage all-resources in tenancy" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
Last update : October, 2021 | ||
Author: [email protected] | ||
Description: provision network context for iacbox instance | ||
*/ | ||
|
||
module "vcn_iacbox" { | ||
source = "oracle-terraform-modules/vcn/oci" | ||
version = "3.0.0" | ||
|
||
# general oci parameters | ||
compartment_id = var.compartment_id | ||
|
||
# vcn parameters | ||
create_drg = false # boolean: true or false | ||
create_internet_gateway = true # boolean: true or false | ||
lockdown_default_seclist = false # boolean: true or false | ||
create_nat_gateway = false # boolean: true or false | ||
create_service_gateway = false # boolean: true or false | ||
vcn_cidrs = ["10.0.0.0/16"] # List of IPv4 CIDRs | ||
vcn_dns_label = "iac" | ||
vcn_name = "iac" | ||
} | ||
|
||
resource "oci_core_subnet" "vcn_iacbox_public" { | ||
#Required | ||
cidr_block = "10.0.0.0/24" | ||
compartment_id = var.compartment_id | ||
vcn_id = module.vcn_iacbox.vcn_id | ||
|
||
#Optional | ||
display_name = "public" | ||
dns_label = "public" | ||
prohibit_public_ip_on_vnic = false | ||
route_table_id = module.vcn_iacbox.ig_route_id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 2021-10-13 | ||
|
||
## New features | ||
|
||
`Bootstrap.sh` installs new and tooling: | ||
|
||
- project_o : a smart oci-cli wrapper | ||
- GitHub cli | ||
- full HashiCorp stack: Packer, Terraform, Consul, Vault, Nomad, Boundary, Waypoint | ||
- container tooling (podman) | ||
|
||
## Changes | ||
|
||
- Hashistack-installer bumped to v0.3.1 | ||
- Base image OCID is now dynamically retrieved, using the latest available version for the operating system family |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 2021-10-24 | ||
|
||
## New features | ||
|
||
- OCI API: Add instance_principal authentication (Fix #2) | ||
- Auto-configure `project_o` cli (Fix #4) | ||
|
||
## Fixes | ||
|
||
- Hashistack-installer bumped to v0.3.2 : fix waypoint installation on Linux arm architecture |