Code Monkey home page Code Monkey logo

terraform-examples's Introduction

terraform-examples's People

Contributors

afedorch avatar alexng-canuck avatar briangustafson avatar brunoborges avatar jjwarzecha avatar scross01 avatar snaugle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-examples's Issues

Endpoint user password information inside the tf file

Hi,
Nice job on the provider for Oracle cloud.
What I think would be nice is to have the option to specify the variables for the provider inside the config file - *.tf
OPC_IDENTITY_DOMAIN , OPC_ENDPOINT, OPC_USERNAME,OPC_PASSWORD

Something like for the build in AWS one, where you have:

provider "aws" {
access_key = "xxxx"
secret_key = "xxxx"
region = "xxxx"
}

unable to update security rule

Updating a security rule should and recreate the rule for all attributes other than action and disabled

opc_compute_security_rule.allow-rdp: Error updating security rule Allow-rdp-access: Unable to update security ip list: 404 Not Found {"message": "Only the fields [action,disabled] are updateable"}

Issue for Creating the dbcs-instance-classic

Hi following the Guide I came across the issue with the part :
backups {

cloud_storage_container = "Storage-${var.domain}/my-terraformed-database-backup"
create_if_missing       = true

}
so while creating the DBCS it fails at this step and says:

Failed to configure Oracle Database Server...[ SCRIPT execution errors in [129.157.177.107]: *
getaddrinfo(3) failed for idcs-abcdefghijklmnopqrstuvwxyz.storage.oraclecloud.com:443 *
Couldn't resolve host 'idcs-abcdefghijklmnopqrstuvwxyz.storage.oraclecloud.com' * Closing
connection #0 ERROR : Connectivity problem with OSS server. ERROR : Assistant bkup has failed,
please check ocde logfile /var/opt/oracle/log/ORCL/ocde/ocde_2018-08-28_15:24:06.log INFO: Total
time taken by ocde is 863 seconds #### Completed OCDE with errors, please check logs ####
data/ORCL/control01.ctl" control_files = "/u03/app/oracle/fast_recovery_area/ORCL/control02.ctl" ]

image

For the vars I am using :
domain="idcs-abcdefghijklmnopqrstuvwxyz" (whatever circled in the image )
user="cloud.admin"
password="******"
endpoint=https://dbaas.oraclecloud.com

and for the main file I am using :
https://github.com/oracle/terraform-examples/blob/master/examples/oraclepaas/dbcs-instance-classic/main.tf
Let me know if I am missing something here or if things have got changed.

I see that API endpoint for storage :
https://gse*******.us.storage.oraclecloud.com/v1/Storage-*******
so in file it is Storage-${var.domain}/my-terraformed-database-backup which I think needs modification.

terraform - Authorization token invalid error

Hi,

I am getting following error when i ran terraform script. this error is getting after 30 minutes when i run the script.
Terraform version - 0.10.0
Provider version - 0.1.2

My script is doing three things
a) creating a snapshot of an existing disk
b using the snapshot create a storage volume
c) using the storage volume then create an instance.

Error applying plan:

1 error(s) occurred:

  • module.snapshot-restore.opc_compute_storage_volume.opc-restore-data[0]: 1 error(s) occurred:
  • opc_compute_storage_volume.opc-restore-data.0: Error creating storage volume sp-demo-data: 401: {"message": "Authorization token is invalid"}

Error 415 : Unsupported Media Type

Hello

On :

Terraform v0.11.1
+ provider.null v1.0.0
+ provider.opc v0.1.3

Each of the examples (even simple) ends up with :

* provider.opc: 415: {
  "code" : "UnsupportedMediaType",
  "message" : "Unsupported Media Type"
}

The debug doesn't seems to help but i may track it the wrong way, export TF_LOG=DEBUG till ERROR seems pretty verbose but i can't see the json produced ...

Have a nice day.

error setting the name to the resource opc_compute_ip_reservation or opc_compute_ip_association

Hello,
I have this resource definition:
...
resource "opc_compute_ip_reservation" "ipreservation" {
name = "${format("ipr-%s%03d", var.srvname, var.srvstart + count.index)}"
parentpool = "/oracle/public/ippool"
permanent = true
count = "${var.cantsrv}"
}

resource "opc_compute_ip_association" "instance-ipreservation" {
name = "${format("ipa-%s%03d", var.srvname, var.srvstart + count.index)}"
vcable = "${element(opc_compute_instance.stresthost..vcable, count.index)}"
parentpool = "ipreservation:${element(opc_compute_ip_reservation.ipreservation.
.name, count.index)}"
count = "${var.cantsrv}"
}
...
The resource creation is OK but the name attribute doesn't work, eg:020d81b3-9c33-4f9d-8fc6-a86f31f76a9b

Terraform v0.9.3

Regards,

Terraform OPC- bootable disk snapshot

I am working on Oracle public cloud and I used terraform resource "opc_compute_storage_volume_snapshot" to create a snapshot of an existing bootable disk. it went well. After i used "opc_compute_storage_volume" to restore the snapshot using snapshot id and there i have few problems,
a) even though i took snapshot of a boot disk the restoration is not giving a bootable disk
b) during restoration of snapshot, if i give bootable=true then terraform is asking for a image list and image entry and later terraform is not using the snapshot and using that image to create the volume.
can anybody please help me on this.

URGENT PROBLEM: OCI CLIENT: Terraform failing RHEL7.4 Image issue - OCI customer urgent

Hi

We are an OCI customer and we are facing issues with the Rhel terraform template.

This is the initial warning that is coming using terraform plan and terraform apply.

Warning: oci_core_instance.ipxe_node: "image": [DEPRECATED] The 'image' field has been deprecated. Please use 'source_details' instead. If both fields are specified, then 'source_details' will be used.

This took more then 2 min:-
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

null_resource.delete_ipxe_destroy: Refreshing state... (ID: 8327305802577394881)
data.external.ipxe_gen: Refreshing state...
data.oci_identity_compartments.compartment: Refreshing state...
data.oci_identity_availability_domains.ad: Refreshing state...
data.oci_core_virtual_networks.vcn: Refreshing state...


This is the error that we are stuck at and not able to create Image:-

data.oci_core_virtual_networks.vcn: Refreshing state...

Error: Error applying plan:
1 error(s) occurred:

  • data.oci_core_subnets.subnet: Resource 'data.oci_core_virtual_networks.vcn' not found for variable 'data.oci_core_virtual_networks.vcn.virtual_networks.0.id'

We have already have an SR created for this and looking to fix this as soon as possible.

ipxe_gen.sh

Hi,

I was using this repo to create the RHEL image but found that the only thing that create is the ipxe instance and no more. I have found the issue and it is due to the formatting of the ipxe_gen.sh file. I formatted it and it is working now.

Support for ACL

It can be very nice that Access Control Lists will be supported.

ssh_public_key_file Variable in instance-with-ssh example

Hi Stephen,

I was creating "instance-with-ssh" and got error in "ssh_public_key_file" :

1 error(s) occurred:

  • opc_compute_ssh_key.ssh_key: 1 error(s) occurred:

  • opc_compute_ssh_key.ssh_key: file: open ./id_rsa.pub: no such file or directory in:

${file(var.ssh_public_key)}

################

I changed the variables file:

--OLD VALUE

variable ssh_public_key_file {
description = "ssh public key"
default = "/.id_rsa.pub"
}

--NEW VALUE
variable ssh_public_key_file {
description = "ssh public key"
default = "~/.ssh/id_rsa.pub" --to get my default id_rsa.pub file
}

Thanks,
Portugal

Unknown provider opc error

When I run the command "terraform plan" from the folder "/home/opc/terraform-provider/src/github.com/oracle/terraform/test", the following error is reported.

Error configuring: 7 error(s) occurred:

  • opc_compute_ip_association.instance1_reservation1: provider opc couldn't be found
  • opc_compute_security_list.sec_list1: provider opc couldn't be found
  • opc_compute_security_association.test_instance__sec_list_1: provider opc couldn't be found
  • opc_compute_instance.test_instance: provider opc couldn't be found
  • opc_compute_storage_volume.test_volume: provider opc couldn't be found
  • opc_compute_storage_volume.test_volume2: provider opc couldn't be found
  • opc_compute_ip_reservation.reservation1: provider opc couldn't be found

Is "opc" not a supported provider? I checked the list of providers in "https://www.terraform.io/docs/providers/" page but could not see "opc".
Please help me .

Thanks
Babu G

opc_compute_ip_reservation does not expose the assigned IP address

Assigned IP address attribute should be available so it can be used when creating security lists, e.g.

resource "opc_compute_ip_reservation" "ip-reservation-1" {
	parentpool = "/oracle/public/ippool"
	permanent = true
}

resource "opc_compute_security_ip_list" "sec-list-1" {
	name = "sec-list-1"
	ip_entries = ["${opc_compute_ip_reservation.ip-reservation-1.ip}"]
}

rhel74-images - Need clearer examples in configuration.tf

Issue by goltermann
Monday Dec 11, 2017 at 19:28 GMT
Originally opened as oracle/terraform-provider-oci#383


When running through an example, I got caught up a few times on putting in bad data. We should make the build_env examples easier:

  1. Compartment - you cannot use the root compartment, make that clear
  2. AD - you need to specify the AD as "AD-N" without any other prefix or suffix
  3. Subnet - the subnet cannot contain a space - that's an issue, because if you create a VCN via the UI and have it automatically create subnets, it will create them of the form "Public Subnet xXXx:REGION-AD"

sec_list missing

Hi,

on file main.tf, for instances 3 & 4 must add sec_lists attribute with an already created security list with ssh security application created, otherwise the install_ssh_keys module will not work and returns a timeout

Regards,

German Pabon

Improve Gluster example -

Issue by craigcarl-oracle
Sunday Mar 18, 2018 at 18:02 GMT
Originally opened as oracle/terraform-provider-oci#483


Update the Gluster example;

  1. Allow a variable number of instances
  2. Support iSCSI attached remote block volumes
  3. Support dual AD deployments
    • Document the performance implications
  4. Support existing VCNs
  5. Enable the host firewall (!!)
  6. Newer OL image
  7. Support VMs

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.