From a9562be53a95174bbdb24774848ff5a0378986fd Mon Sep 17 00:00:00 2001 From: Jack Brown Date: Sun, 12 Jun 2022 20:30:07 -0700 Subject: [PATCH 1/3] Added example config files. --- ansible/credentials.yml.example | 3 +++ environment.env.example | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 ansible/credentials.yml.example create mode 100644 environment.env.example diff --git a/ansible/credentials.yml.example b/ansible/credentials.yml.example new file mode 100644 index 0000000..d3fc666 --- /dev/null +++ b/ansible/credentials.yml.example @@ -0,0 +1,3 @@ +- dnac_host: "" +- username: "" +- password: "" \ No newline at end of file diff --git a/environment.env.example b/environment.env.example new file mode 100644 index 0000000..be16ff2 --- /dev/null +++ b/environment.env.example @@ -0,0 +1,6 @@ +DNAC_URL = "" +DNAC_USER = "" +DNAC_PASS = "" + +GITHUB_USERNAME = "" +GITHUB_TOKEN = "" \ No newline at end of file From ba5eb7213b492c1409c767be4e4ace0b7f67df15 Mon Sep 17 00:00:00 2001 From: Jack Brown Date: Sun, 12 Jun 2022 20:31:42 -0700 Subject: [PATCH 2/3] Updated consistency of README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49ea673..5129aa1 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ INFO:root:GitHub push for file: device_inventory.yaml INFO:root:End of Application "inventory_collection_sdk.py" Run: 2022-05-18 15:34:33 ``` -"deploy_cli_templates_ansible.yaml" Ansible playbook workflow: +**"deploy_cli_templates_ansible.yaml"** Ansible playbook workflow: - pull from GitHub the latest templates - optional, pull from GitHub the device inventory (not implemented) - identify devices that match the device filter From fb526c69ef01580a4a16471cb22518336795595c Mon Sep 17 00:00:00 2001 From: Jack Brown Date: Sun, 12 Jun 2022 20:33:13 -0700 Subject: [PATCH 3/3] Added instructions on .example config files --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5129aa1..b8ee05c 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ This repo is for an application that will automate Day N operations using Cisco This application will automate Day N operations, creating device inventories, using the Cisco DNA Center REST APIs +Prior to use the following files need to be populated and renamed by removing the .example extension: +- environment.env.example +- ansible/credentials.yml.example + **"inventory_collection_sdk.py"** Python app workflow: - create device inventory - hostname, device management IP address, device UUID, software version, device family, role, site, site UUID