Skip to content

Commit d41a01b

Browse files
authored
Updated to ansible-mdd release 1.2.0 (#91)
* Support for updating both OC and native config data in NSO * Data harvesting of both OC and native config data using the ciscops.mdd.harvest playbook
1 parent b052efc commit d41a01b

39 files changed

Lines changed: 2823 additions & 2777 deletions

.github/workflows/build_environment.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
name: Build Environment
33
on:
44
workflow_dispatch:
5-
pull_request:
6-
branches:
7-
- main
8-
paths:
9-
- 'inventory/**.yml'
10-
- 'inventory/**.yaml'
5+
# pull_request:
6+
# branches:
7+
# - main
8+
# paths:
9+
# - 'inventory/**.yml'
10+
# - 'inventory/**.yaml'
1111

1212
env:
1313
CML_PASSWORD: ${{ secrets.CML_PASSWORD }}
@@ -41,7 +41,7 @@ jobs:
4141
- name: Validate Data
4242
run: ansible-playbook ciscops.mdd.validate
4343
- name: Push Data
44-
run: ansible-playbook ciscops.mdd.nso_update_oc -e dry_run=no
44+
run: ansible-playbook ciscops.mdd.update -e dry_run=no
4545
- name: Sleep to let the network settle
4646
run: sleep 60s
4747
shell: bash

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
paths:
99
- 'mdd-data/**.yml'
1010
- 'mdd-data/**.yaml'
11+
- 'requirements.txt'
12+
- 'requirements.yml'
1113

1214
env:
1315
CML_PASSWORD: ${{ secrets.CML_PASSWORD }}
@@ -26,6 +28,10 @@ jobs:
2628
steps:
2729
- name: Checkout Inventory
2830
uses: actions/checkout@v2
31+
- name: Install Python Requirements
32+
run: pip install -r requirements.txt
33+
- name: Install Ansible Collections
34+
run: ansible-galaxy collection install -r requirements.yml
2935
- name: Run YAMLLINT
3036
run: yamllint mdd-data
3137
- name: Save Rollback
@@ -35,7 +41,7 @@ jobs:
3541
- name: Update Devices
3642
run: ansible-playbook ciscops.mdd.nso_update_devices
3743
- name: Deploy Changes
38-
run: ansible-playbook ciscops.mdd.nso_update_oc -e dry_run=no
44+
run: ansible-playbook ciscops.mdd.update -e dry_run=no
3945
- name: Run Checks
4046
run: ansible-playbook ciscops.mdd.check
4147
- name: Load Rollback

group_vars/all/local.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

inventory/group_vars/all/mdd.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99
# The data directory for the particular device
1010
# mdd_device_dir: >-
1111
# {{ mdd_data_root }}/{{ mdd_dir_items | join('/') }}
12-
# The file pattern for files that specify OD Data
13-
# mdd_oc_patterns:
12+
# The file pattern for files that specify MDD Data
13+
# mdd_data_patterns:
1414
# - 'oc-*.yml'
15+
# - 'config-*.yml'
16+
# The data types that MDD will operate on
17+
mdd_data_types:
18+
- oc
19+
# - config
1520
# The file pattern for files that specify state checks
1621
mdd_check_patterns:
1722
- 'check-*.yml'

mdd-data/org/oc-banner.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
mdd_data:
3-
openconfig-system:system:
4-
openconfig-system:config:
5-
openconfig-system:login-banner: "Unauthorized access is prohibited!"
6-
openconfig-system:motd-banner: "Welcome to {{ inventory_hostname }}"
3+
mdd:openconfig:
4+
openconfig-system:system:
5+
openconfig-system:config:
6+
openconfig-system:login-banner: "Unauthorized access is prohibited!"
7+
openconfig-system:motd-banner: "Welcome to {{ inventory_hostname }}"

mdd-data/org/oc-ntp.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
---
22
mdd_data:
3-
openconfig-system:system:
4-
openconfig-system:clock:
5-
openconfig-system:config:
6-
openconfig-system:timezone-name: 'PST -8 0'
7-
openconfig-system:ntp:
8-
openconfig-system:config:
9-
openconfig-system:enabled: true
10-
openconfig-system:servers:
11-
openconfig-system:server:
12-
- openconfig-system:address: '216.239.35.0'
13-
openconfig-system:config:
14-
openconfig-system:address: '216.239.35.0'
15-
openconfig-system:association-type: SERVER
16-
openconfig-system:iburst: true
17-
- openconfig-system:address: '216.239.35.4'
18-
openconfig-system:config:
19-
openconfig-system:address: '216.239.35.4'
20-
openconfig-system:association-type: SERVER
21-
openconfig-system:iburst: true
3+
mdd:openconfig:
4+
openconfig-system:system:
5+
openconfig-system:clock:
6+
openconfig-system:config:
7+
openconfig-system:timezone-name: 'PST -8 0'
8+
openconfig-system:ntp:
9+
openconfig-system:config:
10+
openconfig-system:enabled: true
11+
openconfig-system:servers:
12+
openconfig-system:server:
13+
- openconfig-system:address: '216.239.35.0'
14+
openconfig-system:config:
15+
openconfig-system:address: '216.239.35.0'
16+
openconfig-system:association-type: SERVER
17+
openconfig-system:iburst: true
18+
- openconfig-system:address: '216.239.35.4'
19+
openconfig-system:config:
20+
openconfig-system:address: '216.239.35.4'
21+
openconfig-system:association-type: SERVER
22+
openconfig-system:iburst: true

0 commit comments

Comments
 (0)