-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
487 additions
and
714 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# See https://www.terraform.io/intro/getting-started/variables.html for more details. | ||
# | ||
|
||
# Change these defaults to fit your needs! | ||
|
||
variable "esxi_hostname" { | ||
default = "esxi" | ||
} | ||
|
||
variable "esxi_hostport" { | ||
default = "22" | ||
} | ||
|
||
variable "esxi_hostssl" { | ||
default = "443" | ||
} | ||
|
||
variable "esxi_username" { | ||
default = "root" | ||
} | ||
|
||
variable "esxi_password" { # Unspecified will prompt | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.13" | ||
required_providers { | ||
esxi = { | ||
source = "registry.terraform.io/josenk/esxi" | ||
# | ||
# For more information, see the provider source documentation: | ||
# | ||
# https://github.com/josenk/terraform-provider-esxi | ||
# https://registry.terraform.io/providers/josenk/esxi | ||
# | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
examples-0.13/02 Cloned Guest - Complete build/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# See https://www.terraform.io/intro/getting-started/variables.html for more details. | ||
# | ||
|
||
# Change these defaults to fit your needs! | ||
|
||
variable "esxi_hostname" { | ||
default = "esxi" | ||
} | ||
|
||
variable "esxi_hostport" { | ||
default = "22" | ||
} | ||
|
||
variable "esxi_hostssl" { | ||
default = "443" | ||
} | ||
|
||
variable "esxi_username" { | ||
default = "root" | ||
} | ||
|
||
variable "esxi_password" { # Unspecified will prompt | ||
} | ||
|
15 changes: 15 additions & 0 deletions
15
examples-0.13/02 Cloned Guest - Complete build/versions.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.13" | ||
required_providers { | ||
esxi = { | ||
source = "registry.terraform.io/josenk/esxi" | ||
# | ||
# For more information, see the provider source documentation: | ||
# | ||
# https://github.com/josenk/terraform-provider-esxi | ||
# https://registry.terraform.io/providers/josenk/esxi | ||
# | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
examples-0.13/03 Resource Pools - Additional Storage/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# See https://www.terraform.io/intro/getting-started/variables.html for more details. | ||
# | ||
|
||
# Change these defaults to fit your needs! | ||
|
||
variable "esxi_hostname" { | ||
default = "esxi" | ||
} | ||
|
||
variable "esxi_hostport" { | ||
default = "22" | ||
} | ||
|
||
variable "esxi_hostssl" { | ||
default = "443" | ||
} | ||
|
||
|
||
variable "esxi_username" { | ||
default = "root" | ||
} | ||
|
||
variable "esxi_password" { # Unspecified will prompt | ||
} | ||
|
||
variable "disk_store" { | ||
default = "DS_001" | ||
} | ||
|
15 changes: 15 additions & 0 deletions
15
examples-0.13/03 Resource Pools - Additional Storage/versions.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.13" | ||
required_providers { | ||
esxi = { | ||
source = "registry.terraform.io/josenk/esxi" | ||
# | ||
# For more information, see the provider source documentation: | ||
# | ||
# https://github.com/josenk/terraform-provider-esxi | ||
# https://registry.terraform.io/providers/josenk/esxi | ||
# | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/echo Hello World | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
output "ip" { | ||
value = [esxi_guest.coreos.ip_address] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# See https://www.terraform.io/intro/getting-started/variables.html for more details. | ||
# | ||
|
||
# Change these defaults to fit your needs! | ||
|
||
variable "esxi_hostname" { | ||
default = "esxi" | ||
} | ||
|
||
variable "esxi_hostport" { | ||
default = "22" | ||
} | ||
|
||
variable "esxi_hostssl" { | ||
default = "443" | ||
} | ||
|
||
variable "esxi_username" { | ||
default = "root" | ||
} | ||
|
||
variable "esxi_password" { | ||
# Unspecified will prompt | ||
} | ||
|
||
variable "disk_store" { | ||
default = "datastore0" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.13" | ||
required_providers { | ||
esxi = { | ||
source = "registry.terraform.io/josenk/esxi" | ||
# | ||
# For more information, see the provider source documentation: | ||
# | ||
# https://github.com/josenk/terraform-provider-esxi | ||
# https://registry.terraform.io/providers/josenk/esxi | ||
# | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
output "ip" { | ||
value = [esxi_guest.Default.ip_address] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#cloud-config | ||
|
||
packages: | ||
- ntp | ||
- ntpdate | ||
|
||
|
||
# Add yum repository configuration to the system | ||
yum_repos: | ||
# The name of the repository | ||
epel-testing: | ||
# Any repository configuration options | ||
# See: man yum.conf | ||
# | ||
# This one is required! | ||
baseurl: http://download.fedoraproject.org/pub/epel/testing/5/$basearch | ||
enabled: false | ||
failovermethod: priority | ||
gpgcheck: true | ||
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL | ||
name: Extra Packages for Enterprise Linux 5 - Testing | ||
|
||
runcmd: | ||
- date >/root/cloudinit.log | ||
- hostnamectl set-hostname ${HOSTNAME} | ||
- echo ${HELLO} >>/root/cloudinit.log | ||
- echo "Done cloud-init" >>/root/cloudinit.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#cloud-config | ||
|
||
packages: | ||
- ntp | ||
- ntpdate | ||
|
||
|
||
# Override ntp with chrony configuration on Ubuntu | ||
ntp: | ||
enabled: true | ||
ntp_client: chrony # Uses cloud-init default chrony configuration | ||
|
||
|
||
# Add yum repository configuration to the system | ||
yum_repos: | ||
# The name of the repository | ||
epel-testing: | ||
# Any repository configuration options | ||
# See: man yum.conf | ||
# | ||
# This one is required! | ||
baseurl: http://download.fedoraproject.org/pub/epel/testing/5/$basearch | ||
enabled: false | ||
failovermethod: priority | ||
gpgcheck: true | ||
gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL | ||
name: Extra Packages for Enterprise Linux 5 - Testing | ||
|
||
runcmd: | ||
- date >/root/cloudinit.log | ||
- hostnamectl set-hostname ${HOSTNAME} | ||
- echo ${HELLO} >>/root/cloudinit.log | ||
- echo "Done cloud-init" >>/root/cloudinit.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# See https://www.terraform.io/intro/getting-started/variables.html for more details. | ||
# | ||
|
||
# Change these defaults to fit your needs! | ||
|
||
variable "esxi_hostname" { | ||
default = "esxi" | ||
} | ||
|
||
variable "esxi_hostport" { | ||
default = "22" | ||
} | ||
|
||
variable "esxi_hostssl" { | ||
default = "443" | ||
} | ||
|
||
variable "esxi_username" { | ||
default = "root" | ||
} | ||
|
||
variable "esxi_password" { | ||
# Unspecified will prompt | ||
} | ||
|
||
variable "virtual_network" { | ||
default = "VM Network" | ||
} | ||
|
||
variable "disk_store" { | ||
default = "DiskStore01" | ||
} | ||
|
||
variable "vm_hostname" { | ||
default = "vmtest05" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.13" | ||
required_providers { | ||
esxi = { | ||
source = "registry.terraform.io/josenk/esxi" | ||
# | ||
# For more information, see the provider source documentation: | ||
# | ||
# https://github.com/josenk/terraform-provider-esxi | ||
# https://registry.terraform.io/providers/josenk/esxi | ||
# | ||
} | ||
} | ||
} |
Oops, something went wrong.