Skip to content

Commit

Permalink
updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
furkhat committed Dec 2, 2020
1 parent e85aad8 commit 7685ef6
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ By doing this you state that you can certify the following (from https://develop

## Reporting a security vulnerability

Due to their public nature, GitHub and mailing lists are not appropriate places for reporting vulnerabilities. If you suspect you have found a security vulnerability in rkt, please do not file a GitHub issue, but instead email [email protected] with the full details, including steps to reproduce the issue.
Due to their public nature, GitHub and mailing lists are not appropriate places for reporting vulnerabilities. If you suspect you have found a security vulnerability in rkt, please do not file a GitHub issue, but instead email [email protected] with the full details, including steps to reproduce the issue.


## Getting Started
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
This is fork of https://github.com/kubermatic/terraform-provider-kubermatic which was joined effort of Kubermatic and SysEleven. We will maintain the fork due to differences and changes we have in our envirenment.

# Terraform Provider for MetaKube

- Website: https://www.terraform.io
- Mailing list: [Google Groups](https://groups.google.com/forum/#!forum/loodse-dev)
<!-- TODO - Mailing list: [Google Groups](https://groups.google.com/forum/#!forum/syseleven-dev) -->

<img src="https://cdn.rawgit.com/hashicorp/terraform-website/master/content/source/assets/images/logo-hashicorp.svg" width="600px">

Expand Down
2 changes: 1 addition & 1 deletion examples/openstack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "metakube_cluster" "example_cluster" {
name = var.cluster_name
dc_name = "set_it_up"
project_id = metakube_project.example_project.id
credential = "loodse"
credential = ""
spec {
version = "1.17.9"
cloud {
Expand Down
10 changes: 7 additions & 3 deletions metakube/schema_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,23 +199,27 @@ func openstackCloudSpecFields() map[string]*schema.Schema {
Required: true,
ForceNew: true,
ValidateFunc: validation.NoZeroValues,
Description: "The opestack project to use for billing",
},
"username": {
Type: schema.TypeString,
Required: true,
Sensitive: true,
ValidateFunc: validation.NoZeroValues,
Description: "The openstack account's username",
},
"password": {
Type: schema.TypeString,
Required: true,
Sensitive: true,
ValidateFunc: validation.NoZeroValues,
Description: "The openstack account's password",
},
"floating_ip_pool": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "The floating ip pool to use",
},
}
}
Expand Down
26 changes: 25 additions & 1 deletion website/docs/r/cluster.index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "metakube_cluster" "example" {
project_id = metakube_project.example.id
name = "example"
dc_name = "europe-west3-c"
credential = "loodse"
credential = ""
spec {
version = "1.15.6"
Expand Down Expand Up @@ -69,7 +69,17 @@ One of the following must be selected.
#### Arguments

* `bringyourown` - (Optional) User defined infrastructure.
* `openstack` - (Optional) Opestack infrastructure.
* `aws` - (Optional) Amazon Web Services infrastructure.
* `azure` - (Optional) Azure infrastructure.

### `openstack`

#### Arguments
* `tenant` - (Required) The project to use for billing.
* `username` - (Required) The account's username.
* `password` - (Required) The account's password.
* `floating_ip_pool` - (Required) The floating ip pool to use.

### `aws`

Expand All @@ -82,3 +92,17 @@ One of the following must be selected.
* `route_table_id` - (Optional) Route table identifier.
* `instance_profile_name` - (Optional) Instance profile name.
* `role_arn` - (Optional) The IAM role that the control plane will use.

### `azure`

#### Arguments
* `availability_set` - (Optional) Availability set name.
* `client_id` - (Required) Client id.
* `client_secret` - (Required) Client secret.
* `subscription_id` - (Required) Subscription id.
* `tenant_id` - (Required) Tenant id.
* `resource_group` - (Optional) Resource group name.
* `route_table` - (Optional) Route table name.
* `security_group` - (Optional) Security group name.
* `subnet` - (Optional) Subnet.
* `vnet` - (Optional) Vnet.
18 changes: 18 additions & 0 deletions website/docs/r/node_deployment.index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ One of the following must be selected.
#### Arguments

* `bringyourown` - (Optional) User defined specification.
* `openstack` - (Optional) Openstack node deployment specification.
* `aws` - (Optional) AWS node deployment specification.
* `azure` - (Optional) Azure node deployment specification.

### `operating_system`

Expand All @@ -102,6 +104,13 @@ One of the following must be selected.
* `key` - (Required) Key for taint.
* `value` - (Required) Value for taint.

### `openstack`
* `flavor` - (Required) Instance type.
* `image` - (Required) Image to use.
* `disk_size` - (Optional) Set disk size when network storage flavors is used.
* `tags` - (Optional) Additional instance tags.
* `use_floating_ip` - (Required) Indicate use of floating ip in case of floating_ip_pool presense.

### `aws`

#### Arguments
Expand All @@ -115,6 +124,15 @@ One of the following must be selected.
* `ami` - (Optional) Amazon Machine Image to use. Will be defaulted to an AMI of your selected operating system and region.
* `tags`- (Optional) Additional EC2 instance tags.

### `azure`
* `image_id` - (Optional) Node image id.
* `size` - (Required) VM size.
* `assign_public_ip` - (Optional) whether to have public facing IP or not.
* `disk_size_gb` - (Optional) Data disk size in GB.
* `os_disk_size_gb` - (Optional) OS disk size in GB.
* `tags` - (Optional) Additional metadata to set.
* `zones` - (Optional) Represents the availablity zones for azure vms.

### `ubuntu`

#### Arguments
Expand Down

0 comments on commit 7685ef6

Please sign in to comment.