Git Product home page Git Product logo

terraform-alicloud-openshift's Introduction

AliCloud Terraform OpenShift module

也可访问 中文

A Terraform module for deploying OpenShift on AliCloud ECS.

alt text

These types of resources are supported:

Terraform versions

Terraform ~> v0.12.5

Usage

1) Export AliCloud access key and secret key as environment variables.

export ALICLOUD_ACCESS_KEY=xxx
export ALICLOUD_SECRET_KEY=xxx

2) Include the module in main.tf

module "openshift" {
  source = "../../modules"
}

3) Set your own public key in variables.tf

variable "key_name" {
  default = "poc"
}

variable "public_key" {
  default = "ssh-rsa xxx"
}

4) Run the module with terraform command

terraform init
terraform apply

You will see output as below:

Apply complete! Resources: 11 added, 0 changed, 0 destroyed.

Outputs:

OpenShift = https://x.x.x.x:8443/console
Password = 123456
Username = admin

5) Have fun with OpenShift

alt text

Inputs

Name Description Type Default Required
region The region ID used to launch this module resources. If not set, it will be sourced from followed by ALICLOUD_REGION environment variable and profile string "" yes
instance_name Name used on all instances as prefix. Like TF-ECS-Instance-1, TF-ECS-Instance-2. string "TF-ECS-Instance" yes
number_format The number format used to output. string %02d yes
ecs_instance_count Count of ECS instances int 1 yes
availability_zone The Zone to start the instance in. It is ignored and will be computed when set vswitch_id. string "" yes
internet_max_bandwidth_out Maximum outgoing bandwidth to the public network int 1 no
key_name The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid. string "" yes
public_key Public key text string "" yes
cidr_block_vpc VPC CIDR block string "10.0.0.0/18" yes
cidr_block_vswitch VSwitch CIDR block string "10.0.0.0/20" yes
disk_category Filter the results by a specific disk category. Can be either cloud, cloud_efficiency, cloud_ssd, ephemeral_ssd. string "cloud_efficiency" no
disk_size The system disk size used to launch one or more ecs instances. string "40" no
disk_count The count of the system disks int 1 yes

Outputs

Name Description
OpenShift OpenShift URL
Username The user name to login in OpenShift
Password The password to login in OpenShift

Authors

Module managed by zzxwill with code source in terraform-alicloud-openshift.

License

MIT Licensed. See LICENSE for full details.

terraform-alicloud-openshift's People

Contributors

zzxwill avatar

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.