{"id":19205337,"url":"https://github.com/aledouglas/switchsetup","last_synced_at":"2025-04-10T13:22:28.377Z","repository":{"id":181302468,"uuid":"666544854","full_name":"AleDouglas/SwitchSetup","owner":"AleDouglas","description":"ApiWeb for configure Switchs devices using Ansible","archived":false,"fork":false,"pushed_at":"2024-01-16T10:13:22.000Z","size":252,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T12:08:23.358Z","etag":null,"topics":["ansible","ansible-playbook","automation","bootstrapstudio","cisco","cisco-ios","collaborate","django","huawei","python","student-vscode","termius"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AleDouglas.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-14T19:53:31.000Z","updated_at":"2024-05-08T03:41:28.000Z","dependencies_parsed_at":"2023-07-14T21:49:22.955Z","dependency_job_id":"99171f97-b174-4b2f-96db-e54e3b80db9c","html_url":"https://github.com/AleDouglas/SwitchSetup","commit_stats":null,"previous_names":["aledouglas/switchsetup"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleDouglas%2FSwitchSetup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleDouglas%2FSwitchSetup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleDouglas%2FSwitchSetup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleDouglas%2FSwitchSetup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AleDouglas","download_url":"https://codeload.github.com/AleDouglas/SwitchSetup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225664,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","automation","bootstrapstudio","cisco","cisco-ios","collaborate","django","huawei","python","student-vscode","termius"],"created_at":"2024-11-09T13:12:21.123Z","updated_at":"2025-04-10T13:22:28.356Z","avatar_url":"https://github.com/AleDouglas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eHi, guys! 👋\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cb\u003eWhat is SwitchSetup?\u003c/b\u003e\u003cbr\u003e\u003cbr\u003e\n    \u003ci\u003e\n        This software is designed to configure network devices using \u003cspan color=\"blue\"\u003eAnsible\u003c/span\u003e\u003cbr\u003e\n        For now it works in a very simple way, but I plan to improve security and new features.\u003cbr\u003e\n        For more information, diagrams and project architecture, see our documentation.\u003cbr\u003e\n    \u003c/i\u003e\u003cbr\u003e\n    Be free to \u003ca href=\"https://github.com/AleDouglas/SwitchSetup/blob/master/CONTRIBUTING.md\"\u003ecollaborate\u003c/a\u003e!\n\u003c/p\u003e\n\n## Table of Contents\n\n- [Setup](#setup)\n- [Secret Key](#secretkey)\n- [Configure your .env](#configure-env)\n- [DataBase](#database)\n- [Run SwitchSetup](#run-switchsetup)\n- [FAQ](#faq)\n- [Version](#version)\n- [Videos](#videos)\n\n\n## Setup\n\n\n#### Git Clone\n\nTo set up the project locally, please follow these steps:\n\n1. Clone the repository: `git clone https://github.com/AleDouglas/SwitchSetup.git` .\n2. Install the packages from the requirements.txt file in your Virtual Environment or use the Dockerfile .\n3. You need generate your own [Secret Key](#SecretKey) .\n4. [Configure your .env](#configure-.env) .\n5. You can run it in [your terminal or dockerfile](#run-switchsetup) .\n\n\n## SecretKey\n\nStart the **Python interpreter**\n```\nimport secrets\nsecrets.token_hex(32)\nCopy the key in .env\n```\n\n#### Configure .env\n\n\nCreate an .env file in the /core directory:\n```\nSECRET_KEY=SECRET KEY\nDEBUG=True\n```\n**Use DEBUG=TRUE only when in development.**\n\n\nBe mindful that you can generate a new key whenever necessary. \nHowever, it is crucial to remember that if you are using our project, you should not disclose the key to anyone.\n\n\n\n#### Terminal Local:\n\n```\ncd Alpha\npython manage.py migrate\npython manage.py runserver\n```\n\n#### Dockerfile:\n\n```\ncd Alpha\npython manage.py migrate\ncd ..\ndocker build -t image_name .\ndocker run -p 8000:8000 imagename\n```\n## Login SwitchSetup\n\nUse for login:\n```\nUsername: admin\nPassword: 123\n```\n\n## Database\n\nWe use SQLite at first, but it is possible to manage other databases.\n\nUse [Django's](https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-DATABASES) own reference.\n\nIf you lose the database file or decide to switch to a different one, you will need to follow these steps:\n\n1. Migration ( **Inside the Alpha file** )\n\n\n```\npython manage.py migrate\n```\nAfter this, you just need to either use Docker or run it on your local machine.\n\nUse for login:\n```\nUsername: admin\nPassword: 123\n```\n\n\nI recommend using MySQL or PostgreSQL to avoid the use of a physical database within the documents. Simply follow the [Django]((https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-DATABASES) ) reference for the necessary modifications.\n\n\n## FAQ\n\n\n##### Problems for login authentication in Ansible-Docker\nWe have identified an issue regarding Ansible authentication. This might be caused by the required keys. Simply copy the keys from the ~/.ssh/ file to the 'sshkeys' folder within the project. We will work on resolving this problem in the upcoming updates.\n\n\n##### Issue when trying to run the server, indicating something related to allauth\nWe've identified some issues on certain machines. You just need to add the:\n```\n'allauth.account.middleware.AccountMiddleware', \n ```\nto the MIDDLEWARE list in the settings.py file.\n\n## Version\n\n\n| Version   |            |  Date |\n|----------|:-------------:|------:|\n| Alpha V.1.1 | Added key system and resolve responsive bugs, this version for attribution via API is not yet ready   |   11/01/2024 |\n| Alpha V.1.0 | Added an Alpha version with a new, more attractive and functional look, this version for attribution via API is not yet ready   |   27/12/2023 |\n| 1.6.1 | Fixing and Update system for customized playbooks and hosts | 13/09/2023\n| 1.6 | Added a system for customized playbooks and hosts ( TEST ) | 13/09/2023\n| 1.5.3 | Resolved Datetime Import and finish tests | 18/08/2023\n| 1.5.2 | Resolved logging issue in certain system tasks | 18/08/2023\n| 1.5.1 | Added ansible execution information control system | 18/08/2023 |\n| 1.5 | Possible solution for connecting via docker-ansible and adding level of information when running ansible | 17/08/2023 |\n| 1.4 |  Fixed ansible conection | 17/07/2023 |\n| 1.3 |  SSH Save Credentials | 16/07/2023 |\n| 1.2 |  User Options | 14/07/2023 |\n| 1.1 |  Fixed login form | 14/07/2023 |\n| 1.0 |    Up version 1.0   |   14/07/2023 |\n\n\n\n## Videos\n\n\n[First impression ( 14/07/2023 )](https://www.youtube.com/watch?v=5jByei5CKC8)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faledouglas%2Fswitchsetup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faledouglas%2Fswitchsetup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faledouglas%2Fswitchsetup/lists"}