Coder Social home page Coder Social logo

oracle-terraform-modules / terraform-oci-tdf-file-storage Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 334 KB

(OCI) Oracle Cloud Infrastructure module to provision a File Storage Service

License: Universal Permissive License v1.0

HCL 98.44% Shell 1.56%
filestorage filesystem iaas oci oci-terraform-modules terraform terraform-module

terraform-oci-tdf-file-storage's People

Contributors

cosmindev avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-oci-tdf-file-storage's Issues

Is this module able to create multiple export options?

I've been trying to create multiple exports with multiple export options for a single File System but I haven't been able to make it work. Only one export option is created.

Below is my main file. Could you please tell me if I'm defining this wrong or this is a feature that needs to be added to the module?

module "oci_file_storage_service" {

  source = "../"

  providers = {
    oci.custom_provider = oci
  }
  file_storage_config = {
    default_compartment_id = "ocid1.compartment.oc1..aaaaaaaan4roedlm6bzqqo2wqvulsotxtfkudcksbzlde4r7s6j4vt2l7kvq"
    default_defined_tags   = {}
    default_freeform_tags  = null
    default_ad             = "2"
    file_systems = {
      fs_1 = {
        ad             = null
        compartment_id = null
        defined_tags   = {}
        freeform_tags  = null
      }
    }
    mount_targets = {
      mt_1 = {
        ad             = null
        subnet_id      = "ocid1.subnet.oc1.iad.aaaaaaaauaqku73o5ioj7oznic4l6wfudp67ulrwjq5bwmpko7alahxjwvfa"
        hostname_label = null
        ip_address     = null
        compartment_id = null
        defined_tags   = {}
        freeform_tags  = null
        export_set = {
          max_fs_stat_bytes = null
          max_fs_stat_files = null
        }
        file_systems = {
          "fs_1" = {
            path          = "/mnt/test1"
            export_option = "standard_export_options_1"
          },
          "fs_1" = {
            path          = "/mnt/test2"
            export_option = "standard_export_options_2"
          }
        }
      }
    }
    export_options = {
      standard_export_options_1 = {
        source                         = "100.100.179.224/28"
        access                         = "READ_WRITE"
        anonymous_gid                  = null
        anonymous_uid                  = null
        identity_squash                = "NONE"
        require_privileged_source_port = "false"
      },
      standard_export_options_2 = {
        source                         = "0.0.0.0/0"
        access                         = "READ_WRITE"
        anonymous_gid                  = null
        anonymous_uid                  = null
        identity_squash                = "NONE"
        require_privileged_source_port = "false"
      }
    }
  }
}

Thanks in advance,

Carlos

add support to provide nsg id in mount targets

the module does not take in nsg id as an input and thats necessary to allow network traffic across subnets where instances mounting file storage are running.

the resource file_storage_mount_target has an optional parameter nsg_id which can be used to implement this.

I believe this can be done by adding the nsg_id parameter in the file main.tf below line 96 (highlighted)

could you take a look and provide a suggestion for this use case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.