Adding Netbox
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{install_date: 'Thu May 2 18:46:53 2019', version: v2.6.2}
|
||||
10
roles/ansible-network.config_manager/meta/get_spec.yaml
Normal file
10
roles/ansible-network.config_manager/meta/get_spec.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
argument_spec:
|
||||
ansible_network_provider:
|
||||
description:
|
||||
- This value is used to determine the correct role to implement the
|
||||
load_config function. The network device provider role is responsible
|
||||
for performing the actual implementation of the load_config function.
|
||||
The specified role must be installed and accesible via the configured
|
||||
ansible_role_path setting.
|
||||
required: True
|
||||
50
roles/ansible-network.config_manager/meta/load_spec.yaml
Normal file
50
roles/ansible-network.config_manager/meta/load_spec.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
argument_spec:
|
||||
config_manager_file:
|
||||
description:
|
||||
- Configures either a playbook relative or absolute path to the
|
||||
file containing the device configuration. This value will be passed
|
||||
to the provider and loaded onto the target device. This argument is
|
||||
mutually exclusive with `config_manager_text`.
|
||||
|
||||
config_manager_text:
|
||||
description:
|
||||
- Specifies the configuration to be loaded onto the target device. This
|
||||
argument should be a string value. It will be based to the provider
|
||||
for loading. This argument is mutually exclusive with `config_manager_file`
|
||||
|
||||
config_manager_scm_url:
|
||||
descrption:
|
||||
- Configures a SCM URL to retrieve the host configuration files from.
|
||||
This value will checkout the config file from the SCM system and then
|
||||
search for a valid configuration file that corresponds to the
|
||||
target host based on the value of inventory_hostname_short.
|
||||
|
||||
config_manager_scm_file:
|
||||
description:
|
||||
- This setting overrides the default search path for the configuration
|
||||
filename when using config_manager_scm_url. The value in for this
|
||||
argument should be relative to the root of the SCM checkout.
|
||||
|
||||
config_manager_replace:
|
||||
descriptiion:
|
||||
- This setting indicates whether or not the provided configuration file
|
||||
should be merged or replace the current configuration file on the
|
||||
target device.
|
||||
type: bool
|
||||
default: False
|
||||
|
||||
ansible_network_provider:
|
||||
description:
|
||||
- This value is used to determine the correct role to implement the
|
||||
load_config function. The network device provider role is responsible
|
||||
for performing the actual implementation of the load_config function.
|
||||
The specified role must be installed and accesible via the configured
|
||||
ansible_role_path setting.
|
||||
required: True
|
||||
|
||||
mutually_exclusive:
|
||||
- ['config_manager_file', 'config_manager_text', 'config_manager_scm_url']
|
||||
|
||||
required_one_of:
|
||||
- ['config_manager_file', 'config_manager_text', 'config_manager_scm_url']
|
||||
38
roles/ansible-network.config_manager/meta/main.yml
Normal file
38
roles/ansible-network.config_manager/meta/main.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
galaxy_info:
|
||||
author: Ansible Network Community (ansible-network)
|
||||
description: |
|
||||
This role is designed to provide a network platform agnostic approach to
|
||||
managing the active (running) configuration file on a remote device. This
|
||||
role requires one (or more) platform provider roles to execute properly.
|
||||
company: Ansible
|
||||
|
||||
license: GPLv3
|
||||
|
||||
min_ansible_version: 2.6
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
# Optionally specify the branch Galaxy will use when accessing the GitHub
|
||||
# repo for this role. During role install, if no tags are available,
|
||||
# Galaxy will use this branch. During import Galaxy will access files on
|
||||
# this branch. If Travis integration is configured, only notifications for this
|
||||
# branch will be accepted. Otherwise, in all cases, the repo's default branch
|
||||
# (usually master) will be used.
|
||||
#github_branch:
|
||||
|
||||
#
|
||||
# platforms is a list of platforms, and each platform has a name and a list of versions.
|
||||
#
|
||||
platforms:
|
||||
- name: network
|
||||
version:
|
||||
- any
|
||||
|
||||
galaxy_tags:
|
||||
- network
|
||||
|
||||
dependencies:
|
||||
- src: https://github.com/ansible-network/network-engine.git
|
||||
version: v2.6.4
|
||||
name: ansible-network.network-engine
|
||||
10
roles/ansible-network.config_manager/meta/save_spec.yaml
Normal file
10
roles/ansible-network.config_manager/meta/save_spec.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
argument_spec:
|
||||
ansible_network_provider:
|
||||
description:
|
||||
- This value is used to determine the correct role to implement the
|
||||
load_config function. The network device provider role is responsible
|
||||
for performing the actual implementation of the load_config function.
|
||||
The specified role must be installed and accesible via the configured
|
||||
ansible_role_path setting.
|
||||
required: True
|
||||
Reference in New Issue
Block a user