Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue#20 #21

Merged
merged 3 commits into from
Oct 3, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Resolves #20
  • Loading branch information
mrlesmithjr committed Oct 3, 2017
commit 4d3c46226c1f6ea1e3dca873c3853d435b436ec3
2 changes: 2 additions & 0 deletions inventory/group_vars/all/all.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
---
ansible_primary_interface: ens160

vsphere_linux_vapp_ovf: C:\vagrant\vApps\ubuntu_16.04_template.ovf
8 changes: 7 additions & 1 deletion inventory/group_vars/all/environment.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
# vSphere core services for vms
vsphere_vm_services_subnet: 10.0.102
vsphere_vm_services_subnet: 10.0.102

vsphere_vm_services_subnet_mask: 255.255.255.0

vsphere_vm_services_subnet_mask_cidr: 24

vsphere_vm_services_vswitch: VSS-VLAN-102
10 changes: 5 additions & 5 deletions inventory/group_vars/all/vsphere_bootstrap_vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ vsphere_bootstrap_vms: []
# gateway: "{{ vsphere_vm_services_subnet }}.1"
# ip: "{{ vsphere_vm_services_subnet }}.101"
# memory_mb: 512
# netmask_cidr: 24
# network_name: VSS-VLAN-102
# vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
# netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
# network_name: "{{ vsphere_vm_services_vswitch }}"
# vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
# - vm_name: bootstrap_vm_2
# cpus: 2
# deploy: true
# datastore: Datastore_1
# memory_mb: 1024
# network_name: VSS-VLAN-101
# vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
# network_name: "{{ vsphere_vm_services_vswitch }}"
# vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
24 changes: 12 additions & 12 deletions inventory/group_vars/all/vsphere_ddi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,29 @@ vsphere_ddi_vms:
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_ddi_vm_ips[0] }}"
memory_mb: 2048
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
- vm_name: "ddi-01.{{ vsphere_pri_domain_name }}"
cpus: 1
deploy: true
datastore: Datastore_1
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_ddi_vm_ips[1] }}"
memory_mb: 2048
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
- vm_name: "ddi-02.{{ vsphere_pri_domain_name }}"
cpus: 1
deploy: true
datastore: Datastore_1
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_ddi_vm_ips[2] }}"
memory_mb: 2048
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
16 changes: 8 additions & 8 deletions inventory/group_vars/all/vsphere_dnsdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ vsphere_dnsdist_vms:
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_dnsdist_vm_ips[0] }}"
memory_mb: 1024
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
- vm_name: "dnsdist-01.{{ vsphere_pri_domain_name }}"
cpus: 1
deploy: true
datastore: Datastore_1
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_dnsdist_vm_ips[1] }}"
memory_mb: 1024
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
16 changes: 8 additions & 8 deletions inventory/group_vars/all/vsphere_lb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ vsphere_lb_vms:
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_vm_services_subnet }}.20"
memory_mb: 1024
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
- vm_name: "lb-01.{{ vsphere_pri_domain_name }}"
cpus: 1
deploy: true
datastore: Datastore_1
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_vm_services_subnet }}.21"
memory_mb: 1024
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
24 changes: 12 additions & 12 deletions inventory/group_vars/all/vsphere_samba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@ vsphere_samba_vms:
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_samba_vm_ips[0] }}"
memory_mb: 512
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
- vm_name: "samba-dc-01.{{ vsphere_pri_domain_name }}"
cpus: 1
deploy: true
datastore: Datastore_1
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_samba_vm_ips[1] }}"
memory_mb: 512
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"
- vm_name: "samba-dc-02.{{ vsphere_pri_domain_name }}"
cpus: 1
deploy: true
datastore: Datastore_1
gateway: "{{ vsphere_vm_services_subnet }}.1"
ip: "{{ vsphere_samba_vm_ips[2] }}"
memory_mb: 512
netmask: 255.255.255.0
netmask_cidr: 24
network_name: VSS-VLAN-102
vapp_source_path: C:\vagrant\vApps\ubuntu_16.04_template.ovf
netmask: "{{ vsphere_vm_services_subnet_mask }}"
netmask_cidr: "{{ vsphere_vm_services_subnet_mask_cidr }}"
network_name: "{{ vsphere_vm_services_vswitch }}"
vapp_source_path: "{{ vsphere_linux_vapp_ovf }}"


vsphere_samba_vms_inventory_file: ../inventory/vsphere_samba_vms.inv
4 changes: 2 additions & 2 deletions inventory/group_vars/vsphere_dhcp_vms/isc-dhcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ isc_dhcp_scopes:
- subnet: "{{ vsphere_vm_services_subnet }}.0"
default_lease_time: '{{ isc_dhcp_default_lease_time }}'
max_lease_time: '{{ isc_dhcp_max_lease_time }}'
netmask: 255.255.255.0
netmask: "{{ vsphere_vm_services_subnet_mask }}"
# Define scope specific options to configure
options:
- name: routers
value: "{{ vsphere_vm_services_subnet }}.1"
- name: subnet-mask
value: 255.255.255.0
value: "{{ vsphere_vm_services_subnet_mask }}"
- name: broadcast-address
value: "{{ vsphere_vm_services_subnet }}.255"
- name: domain-name-servers
Expand Down