terraform-vmware-bigip
bigip module for vmware vcenter
provides instances in vcenter and outputs templates for use with a pipeline,ansible or the f5 vscode extension.
examples:
requirements
example ova:
prepare vsphere OVA template
Login and delete the REST ID, SSH keys, etc. per the article : https://support.f5.com/csp/article/K44134742
rm -f /config/f5-rest-device-id
rm -f /config/ssh/ssh_host_*
rm -f /shared/ssh/ssh_host_*
rm -f /config/bigip.license
echo 'root:pleaseUseVault123!!' | chpasswd
echo 'admin:pleaseUseVault123!!' | chpasswd
cat > /root/.ssh/authorized_keys <<EOF
ssh-rsa ABGHS YOUR PUBLIC KEY HERE
EOF
shutdown -h now
Requirements
Name | Version |
---|---|
terraform | ~> 1.0.5 |
vsphere | ~> 2.0.2 |
Providers
Name | Version |
---|---|
local | n/a |
template | n/a |
vsphere | ~> 2.0.2 |
Modules
No modules.
Resources
Name | Type |
---|---|
local_file.do_file_01 | resource |
local_file.onboard_file | resource |
vsphere_virtual_machine.instance | resource |
template_file.do_json | data source |
template_file.vm_onboard | data source |
vsphere_compute_cluster.cluster | data source |
vsphere_datastore.datastore | data source |
vsphere_network.network1 | data source |
vsphere_network.network2 | data source |
vsphere_network.network3 | data source |
vsphere_network.network4 | data source |
vsphere_virtual_machine.template | data source |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
bigip_admin_password | vm admin pass | any |
n/a | yes |
bigip_root_password | vm root pass | any |
n/a | yes |
instances | instance configuration | map |
{} |
no |
vsphere_datacenter | vsphere datacenter where resources are deployed | any |
n/a | yes |
Outputs
Name | Description |
---|---|
instances | n/a |
development
# stage changes
git add .
#manual pre-commit test
pre-commit run -a -v