Chapter 3 How to Automate the Network?
For diagrams, tables, or exact code formatting, .
TFS supports either distributed or stand-alone deployments. After installation, secure TFS with a signed certificate to offer Hyper-Text Transfer Protocol Secure (HTTPS) and Secure Sockets Layer (SSL) services. Active Directory username and passwords can be required to allow Git interactions with TFS, primarily for git clone, git pull, and git push operations, or keys can be exchanged between the Ansible host and TFS. Once TFS is installed and available, determine the TFS administrators and assigned Role- Based Access Controls (RBAC). Create the base repositories for the environments (lab, production) along with the master branch in each repository. Git is natively supported in TFS so select Git at the repository type selection. Assign permissions to the repositories and distribute the TFS workspace hyperlink to the network administrative staff. TFS also acts as a graphical front-end for Git presenting all the important information found in Git, such as commit details, in an easy to use feature-rich ecosystem.
This book is not intended to be a detailed guide in TFS administration or installation. Please refer to the following guide from Microsoft for further instructions:
https://docs.microsoft.com/en-us/tfs/ Git Git is natively installed on Linux hosts however should be the first application installed on Windows hosts, if developing in VS Code on Windows. This ensures all the future tools installed will integrate. Git commands can be run from the Windows terminal or from within VS Code editor.
Git command reference Some commonly used Git commands:
git clone <repository url> This will clone a repository into a newly created directory. For details visit: https://git-scm.com/docs/git-clone/ git checkout <working branch> Navigate and work in multiple branches in the same repository by checking out branches. This does not create another copy of the repository locally, it simply changes to a different branch and Git tracks what branch the changes relate to.
For details visit: https://git-scm.com/docs/git-checkout/ git add Stages locally changed files preparing for the next commit. For details visit:
