From 3854716bb3ed5735a41177280d4634e4580a499c Mon Sep 17 00:00:00 2001 From: Trick Solutions Date: Mon, 23 Mar 2020 19:29:17 -0400 Subject: [PATCH] Update All Mitel Templates to use variables (#5190) * Mitel phones require the exact model in the template. A 5320 and 5320e phones take an identical template. The "e" model has a gigabit ethernet port. * 1. Added variable {$domain_name} in a few places that need it. 2. Set the NTP server to use dns name instead of IP address. 3. Set dns for NTP to use pool address (0.pool.ntp.org) 4. Removed Admin account to set back to defaults. Will look at setting that as variable. 5. Hardcoded user account password to be more simple. Will look at setting that as a variable. 6. Set host_ip and video_ip to be {$domain_name} as these were pointed to an AT&T old dns server 7. Set hostname of phone to be SIP ID 8. Remove hardcoded IP for NTP and added the DNS pool. 9. Removed boot version and image version from template as wasn't in other provision systems. * 1. Set admin password to use provisioning variable. 2. Set user password to use provisioning variable. * Updating Mitel templates --- .../provision/mitel/5324/MN_{$mac}.cfg | 18 ++++++++--------- .../provision/mitel/5330/MN_{$mac}.cfg | 20 +++++++++---------- .../provision/mitel/5340/MN_{$mac}.cfg | 20 +++++++++---------- 3 files changed, 26 insertions(+), 32 deletions(-) diff --git a/resources/templates/provision/mitel/5324/MN_{$mac}.cfg b/resources/templates/provision/mitel/5324/MN_{$mac}.cfg index 23537bcda2..7fad2f88dd 100644 --- a/resources/templates/provision/mitel/5324/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5324/MN_{$mac}.cfg @@ -3,17 +3,15 @@ {if isset($mitel_tftp_config)}{$mitel_tftp_config}{else}2 {/if}0 1 - 02.00.00.24 - R7.2.02.00.00.24 - 0 + 2 0 0 5060 0 -1 {if isset($mitel_vlan_id)}{$mitel_vlan_id}{else}-1 - {/if}sip1 - -example.com + {/if}{$account.1.user_id} + {$domain_name} 0 0 operator@example.com @@ -32,9 +30,9 @@ 0 1 - 135.199.77.12 - 135.199.77.12 - 128.138.141.172 + {$domain_name} + {$domain_name} + 0.us.pool.ntp.org {$mitel_time_zone} 2 120 @@ -64,7 +62,7 @@ 0 admin Administrator - 510731ac096ebcb3989fb1ed5b7075bb + {$admin_password} 0 0 @@ -298,7 +296,7 @@ 59 1 - 5d41402abc4b2a76b9719d911017c592 + {$user_password} sip diff --git a/resources/templates/provision/mitel/5330/MN_{$mac}.cfg b/resources/templates/provision/mitel/5330/MN_{$mac}.cfg index ab4108f7b6..6dd482ae21 100644 --- a/resources/templates/provision/mitel/5330/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5330/MN_{$mac}.cfg @@ -1,19 +1,17 @@ - + 1 {if isset($mitel_tftp_config)}{$mitel_tftp_config}{else}2 {/if}0 1 - 02.00.00.24 - R7.2.02.00.00.24 - 0 + 2 0 0 5060 0 -1 {if isset($mitel_vlan_id)}{$mitel_vlan_id}{else}-1 - {/if}sip1 - -example.com + {/if}{$account.1.user_id} + {$domain_name} 0 0 operator@example.com @@ -32,9 +30,9 @@ 0 1 - 135.199.77.12 - 135.199.77.12 - 128.138.141.172 + {$domain_name} + {$domain_name} + 0.us.pool.ntp.org {$mitel_time_zone} 2 120 @@ -64,7 +62,7 @@ 0 admin Administrator - 510731ac096ebcb3989fb1ed5b7075bb + {$admin_password} 0 0 @@ -298,7 +296,7 @@ 59 1 - 5d41402abc4b2a76b9719d911017c592 + {$user_password} sip diff --git a/resources/templates/provision/mitel/5340/MN_{$mac}.cfg b/resources/templates/provision/mitel/5340/MN_{$mac}.cfg index 23537bcda2..62a9bfc261 100644 --- a/resources/templates/provision/mitel/5340/MN_{$mac}.cfg +++ b/resources/templates/provision/mitel/5340/MN_{$mac}.cfg @@ -1,19 +1,17 @@ - + 1 {if isset($mitel_tftp_config)}{$mitel_tftp_config}{else}2 {/if}0 1 - 02.00.00.24 - R7.2.02.00.00.24 - 0 + 2 0 0 5060 0 -1 {if isset($mitel_vlan_id)}{$mitel_vlan_id}{else}-1 - {/if}sip1 - -example.com + {/if}{$account.1.user_id} + {$domain_name} 0 0 operator@example.com @@ -32,9 +30,9 @@ 0 1 - 135.199.77.12 - 135.199.77.12 - 128.138.141.172 + {$domain_name} + {$domain_name} + 0.us.pool.ntp.org {$mitel_time_zone} 2 120 @@ -64,7 +62,7 @@ 0 admin Administrator - 510731ac096ebcb3989fb1ed5b7075bb + {$admin_password} 0 0 @@ -298,7 +296,7 @@ 59 1 - 5d41402abc4b2a76b9719d911017c592 + {$user_password} sip