Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this module able to create multiple export options? #1

Open
gibsster opened this issue Sep 25, 2020 · 0 comments
Open

Is this module able to create multiple export options? #1

gibsster opened this issue Sep 25, 2020 · 0 comments

Comments

@gibsster
Copy link

gibsster commented Sep 25, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant