Skip to content

Latest commit

 

History

History
137 lines (97 loc) · 4.63 KB

README.md

File metadata and controls

137 lines (97 loc) · 4.63 KB

Cloud Providers

Amazon Web Services

Access Key / Secret Key

Manual

Automated

  • Execute these commands with the AWS CLI:
aws iam create-group --group-name my-groupname
aws iam create-user --user-name my-username
aws iam add-user-to-group --user-name my-username --group-name my-groupname
aws iam create-access-key --user-name my-username

Microsoft Azure

Service Principal

Manual

Automated

VMware ESXi

SSH Service

  • Enable SSH access on ESXi Host:

Screenshot

User Account

  • Use your root account for the SSH login

Virtual Machine Templates

  • Make sure to create a virtual machine template for Windows Server 2016 and Ubuntu Server 16.04 LTS
  • This can be done manually or with the help of Packer
  • It is important to activate DHCP for the network interface
  • The default user credentials and template names can be found in this Terraform file custom.tf:
    • It is recommended to overwrite these values for production usage

Windows Server 2016

  • WinRM is used for executing the Powershell scripts for bootstrapping
  • Use this script to create a firewall rule and allow execution via HTTP

Ubuntu Server 16.04 LTS

  • SSH is used for executing bash scripts for bootstrapping
  • Make sure to turn on the SSH server
  • Use LVM for hard drive partitioning (otherwise live resizing of partitions will not work)

VMware vSphere

User Account

  • Open vcenter user management
  • Create admin account or technical user account for Terraform with these privileges:
    • Datastore:
      • Allocate space
      • Browse datastore
      • Low level file operations
      • Remove file
      • Update virtual machine files
      • Update virtual machine metadata
    • Folder (all):
      • Create folder
      • Delete folder
      • Move folder
      • Rename folder
    • Network:
      • Assign network
    • Resource:
      • Apply recommendation
      • Assign virtual machine to resource pool
    • Virtual Machine
      • Configuration (all)
      • Guest Operations (all)
      • Interaction (all)
      • Inventory (all)
      • Provisioning (all)
    • Manage custom attributes
      • Set custom attribute

Custom Attributes

  • When provisioning a virtual machine to vSphere Terraform always sets custom attributes
  • Make sure that these custom attributes already exist:
    • Title
    • Description
    • CreationDate
    • OwnedBy
    • OwnerGroup
    • ProvisioningSystem

Virtual Machine Templates

  • Make sure to create a virtual machine template for Windows Server 2016 and Ubuntu Server 16.04 LTS
  • This can be done manually or with the help of Packer
  • It is important to activate DHCP for the network interface
  • The default user credentials and template names can be found in this Terraform file custom.tf:
    • It is recommended to overwrite these values for production usage

Windows Server 2016

  • WinRM is used for executing the Powershell scripts for bootstrapping
  • Use this script to create a firewall rule and allow execution via HTTP

Ubuntu Server 16.04 LTS

  • SSH is used for executing bash scripts for bootstrapping
  • Make sure to turn on the SSH server
  • Use LVM for hard drive partitioning (otherwise live resizing of partitions will not work)

Resource Pools

  • It is recommended to create a new resource pool for every team or group using the self service portal in terms of hardware resource isolation