Update junos_noob_qfx_node.md
This commit is contained in:
Родитель
199dca3f83
Коммит
6fc6e496c7
|
@ -1,40 +1,30 @@
|
||||||
### `junos_noob_config`
|
### `junos_noob_qfx_node`
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
Install a minimal New Out of Box (NOOB) configuration that should at least set the IP-address and enable the NETCONF service. This action is performed over the device CONSOLE port using either a SERIAL-PORT or a TERMINAL-SERVER. This action will also log the device "facts" and "inventory" to a local server directory, which then provdies you with specific details about the device located on that console. Refer to [netconify](https://github.com/jeremyschulman/py-junos-netconify) for further details on this process.
|
New Out of Box (NOOB) configuration that will change the "device mode" for a QFX switch. For QFabric deployments, the QFX switch must be configured into 'node' mode. This action is performed over the device CONSOLE port using either a SERIAL-PORT or a TERMINAL-SERVER. This action will also log the device "facts" and "inventory" to a local server directory, which then provdies you with specific details about the device located on that console. Refer to [netconify](https://github.com/jeremyschulman/py-junos-netconify) for further details on this process.
|
||||||
|
|
||||||
### Example Usage
|
### Example Usage
|
||||||
|
|
||||||
The following is a complete playbook illustrating the use of this action. The `TERMSERV` and `TERMSERVPORT` variables would be taken from the host inventory specific for each device.
|
|
||||||
|
|
||||||
````
|
````
|
||||||
---
|
|
||||||
- name: Junos QFX Node Device Configuration
|
|
||||||
hosts: qfx_nodes
|
|
||||||
connection: local
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
logfile: /usr/local/junos/log/qfx_nodes.log
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: QFX {{mode}}-mode
|
- name: QFX {{mode}}-mode
|
||||||
junos_noob_qfx_node:
|
junos_noob_qfx_node:
|
||||||
name={{ inventory_hostname }}
|
name={{ inventory_hostname }}
|
||||||
port='-t={{TERMSERV}},{{TERMSERVPORT}}'
|
port='-t={{TERMSERV}},{{TERMSERVPORT}}'
|
||||||
mode=node
|
|
||||||
logfile=/usr/local/junos/noob.log
|
logfile=/usr/local/junos/noob.log
|
||||||
savedir=/usr/local/junos/inventory
|
savedir=/usr/local/junos/inventory
|
||||||
````
|
````
|
||||||
|
|
||||||
|
The `TERMSERV` and `TERMSERVPORT` variables would be taken from the host inventory specific for each device.
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| parameter | required | default | choices | description |
|
| parameter | required | default | choices | description |
|
||||||
|----------- |---------- |--------- |------------- |-------------------------------------------------------------------------------------------------------------------------------------------- |
|
|----------- |---------- |--------- |-------------- |------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| host | yes | | | This should be set to {{ inventory_hostname }} |
|
| name | yes | | | This should be set to {{ inventory_hostname }} |
|
||||||
| user | no | $USER | | Login user-name |
|
| port | yes | | | The port configuration per the `netconify` utility |
|
||||||
| passwd | no | None | | Login password. If not supplied, assumes that ssh-keys are installed and active |
|
| user | no | root | | Login user-name |
|
||||||
| file | yes | None | | File on the local server that contains the configuration change. |
|
| passwd | no | None | | Login password. *MUST* be provided if this device has already been provisioned |
|
||||||
| overrite | no | False | True, False | Determines if the `file` contents will completely replace the existing configuration (True) or a merged change (False) |
|
| mode | no | node | node, switch | Determines the device mode |
|
||||||
| timeout | no | 0 | | Temporarily change the NETCONF RPC timeout value. This should be set if you know the configuration change may take longer that 30 seconds |
|
| logfile | no | | | Path to the local server file where configuration change status is logged |
|
||||||
| logfile | no | | | File on the local server when progress and status is stored |
|
| savedir | no | None | | Path to the local server directory where device facts and inventory files will be stored. Refer to the `netconify` utility for details. |
|
||||||
|
|
Загрузка…
Ссылка в новой задаче