Init: mediaserver

This commit is contained in:
2023-02-08 12:13:28 +01:00
parent 848bc9739c
commit f7c23d4ba9
31914 changed files with 6175775 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# Provision OS6 Switch Stack using the Ansible Network Collection for Dell EMC OS6
This example describes how to use Ansible to configure Dell EMC PowerSwitch platforms running Dell EMC OS6. The sample topology contains two OS6 switches connected with each other. This example configures iBGP between two routers using the same AS.
## Create a simple Ansible playbook
**1**. Create an inventory file called `inventory.yaml`, then specify the device IP addresses under use in the inventory.
**2**. Create a group variable file called `group_vars/all`, then define credentials common to all hosts.
**3**. Create a host variable file called `host_vars/switch1.yaml`, then define credentials, hostname for switch1.
**4**. Create a host variable file called `host_vars/switch2.yaml`, then define credentials and hostname for switch2.
**5**. Create a playbook called `os6switch.yaml`.
**6**. Run the playbook.
ansible-playbook -i inventory.yaml os6switch.yaml
(c) 2017-2020 Dell Inc. or its subsidiaries. All rights reserved.

View File

@@ -0,0 +1,4 @@
ansible_ssh_user: xxxx
ansible_ssh_pass: xxxx
ansible_network_os: dellemc.os6.os6
build_dir: ../tmp/tmp_os6

View File

@@ -0,0 +1,47 @@
hostname: switch1
ansible_ssh_user: xxxx
ansible_ssh_pass: xxxx
ansible_become: yes
ansible_become_method: enable
ansible_network_os: dellemc.os6.os6
switch1_hostname: "switch1"
os6_system:
hostname: "{{ switch1_hostname }}"
#enable_password: xxxx
mtu: 2000
os6_vlan:
vlan 20:
default_vlan: False
name: "os6vlan"
untagged_members:
- port: Te7/0/1
state: present
state: present
os6_interface:
Te7/0/1:
desc: "bgp"
admin: up
portmode: access
vlan 20:
ip_type_dynamic: False
ip_and_mask: 20.20.20.3 255.255.255.0
os6_bgp:
asn: 4545
router_id: 20.20.20.3
maxpath_ibgp: 3
ipv4_network:
- address: 20.20.20.3 255.255.255.255
state: present
neighbor:
- type: ipv4
ip: 20.20.20.2
remote_asn: 4545
timer: 5 10
default_originate: True
state: present
state: present

View File

@@ -0,0 +1,47 @@
hostname: switch2
ansible_ssh_user: xxxx
ansible_ssh_pass: xxxx
ansible_become: yes
ansible_become_method: enable
ansible_network_os: dellemc.os6.os6
switch2_hostname: "switch2"
os6_system:
hostname: "{{ switch2_hostname }}"
#enable_password: xxxx
mtu: 2000
os6_vlan:
vlan 20:
default_vlan: False
name: "os6vlan"
untagged_members:
- port: Te1/0/48
state: present
state: present
os6_interface:
Te1/0/48:
desc: "bgp"
admin: up
portmode: access
vlan 20:
ip_type_dynamic: False
ip_and_mask: 20.20.20.2 255.255.255.0
os6_bgp:
asn: 4545
router_id: 20.20.20.2
maxpath_ibgp: 3
ipv4_network:
- address: 20.20.20.2 255.255.255.255
state: present
neighbor:
- type: ipv4
ip: 20.20.20.3
remote_asn: 4545
timer: 5 10
default_originate: True
state: present
state: present

View File

@@ -0,0 +1,6 @@
switch1 ansible_host=100.94.51.40
switch2 ansible_host=100.94.52.38
[os6switches]
switch1
switch2

View File

@@ -0,0 +1,13 @@
---
- hosts: os6switches
gather_facts: no
become: yes
become_method: enable
connection: network_cli
collections:
- dellemc.os6
roles:
- os6_system
- os6_vlan
- os6_interface
- os6_bgp