sync all
This commit is contained in:
8
ansible/playbooks/templates/unifi-user.tf.j2
Normal file
8
ansible/playbooks/templates/unifi-user.tf.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
resource "unifi_user" "{{ inventory_hostname }}" {
|
||||
mac = "{{ vm_mac_address }}"
|
||||
name = "{{ inventory_hostname }}"
|
||||
# note = "my note"
|
||||
|
||||
fixed_ip = "{{ ip_address }}"
|
||||
allow_existing = true
|
||||
}
|
||||
22
ansible/playbooks/templates/unifi_provider.tf.j2
Normal file
22
ansible/playbooks/templates/unifi_provider.tf.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
// Configure the unifi provider
|
||||
terraform {
|
||||
required_providers {
|
||||
unifi = {
|
||||
source = "paultyng/unifi"
|
||||
version = "0.41.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "unifi" {
|
||||
username = "terraform" # optionally use UNIFI_USERNAME env var
|
||||
password = "{{ vault_unifi_password }}" # optionally use UNIFI_PASSWORD env var
|
||||
api_url = "https://192.168.1.1" # optionally use UNIFI_API env var
|
||||
|
||||
# you may need to allow insecure TLS communications unless you have configured
|
||||
# certificates for your controller
|
||||
allow_insecure = "true" # optionally use UNIFI_INSECURE env var
|
||||
|
||||
# if you are not configuring the default site, you can change the site
|
||||
# site = "world-drive" # or optionally use UNIFI_SITE env var
|
||||
}
|
||||
Reference in New Issue
Block a user