facts: get platform info from NetBox
Instead of pinging each host to see if it’s Windows. Make sure to set the platform at least for such hosts.
This commit is contained in:
parent
7cbbf635a8
commit
d162f175a4
3 changed files with 14 additions and 21 deletions
|
@ -2,14 +2,18 @@ These Ansible roles set up servers running various Linux distributions to partic
|
|||
|
||||
# Setup
|
||||
|
||||
Each server should have the following information recorded in NetBox:
|
||||
Each physical server should have the following information recorded in NetBox:
|
||||
|
||||
- network interfaces `mgmt*`: used for management (Ansible) access; must define MAC and IP address
|
||||
- network interfaces `lan*`: used for BGP routing; must define MAC address
|
||||
- network interface `lo`: must define the IP address to announce over BGP, also serves as router ID
|
||||
|
||||
For virtual machines, network interfaces should be named as in the hypervisor. In Proxmox, this is typically `net*`.
|
||||
|
||||
MAC addresses are used to rename interfaces in the host OS. Prefix for the management IP address should define the `gateway` custom field.
|
||||
|
||||
For Windows hosts the platform must be defined in NetBox to configure connection parameters.
|
||||
|
||||
# Run
|
||||
|
||||
Create a read-only token in NetBox. Define required variables:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue