Consider a scenario where you are using CI/CD processes for your development. Or, a scenario where you are managing all the application source code and deployment objects in GitHub/GitLab.
In the GitHub/GitLab repository, you might have created several StyleBooks for deploying the NetScaler configurations and managing these StyleBooks. These StyleBooks are also required in NetScaler Console. Now, you can directly import these StyleBooks into NetScaler Console. You don't need to manually copy them from GitHub/GitLab and then upload them into NetScaler Console or manually synchronize the files in both NetScaler Console and GitHub/GitLab.
To import StyleBooks and config packs, define a repository in NetScaler Console that represents a GitHub/GitLab repository. Provide the GitHub/GitLab repository URL and your username and API or Personal Access(PA) token created in GitHub/GitLab. That means, only authorized users who have a valid account in GitHub/GitLab can import and sync StyleBooks.
You can import and synchronize the following types of repositories:
-
Publicly accessible repositories - The repositories that are open to the public and can be accessed over the internet.
-
On-premise or private GitLab/GitHub repositories - The repositories that are hosted privately and are typically accessible only within an enterprise’s intranet. For these repositories, you must select a NetScaler agent during the registration process. The NetScaler agent acts as a proxy to access the repositories within the enterprise’s intranet.
After creating the repository, you can sync NetScaler Console with your GitHub/GitLab repository. NetScaler Console connects to GitHub/GitLab and imports StyleBooks found in that repository. NetScaler Console then validates the StyleBooks and adds them to the list of StyleBooks in NetScaler Console. StyleBooks are not added to NetScaler Console if they fail validation. Correct the errors and commit updated versions into your GitHub/GitLab repository. Later you can try importing them or syncing them again into NetScaler Console.
-
StyleBooks files can be imported and synchronized from any branch of a GitHub/GitLab repository.
-
You can import and synchronize StyleBooks that have dependent StyleBooks associated with them too.
-
The synchronization of StyleBooks from a GitHub/GitLab repository must be initiated manually from the NetScaler Console GUI or API. That is, currently, importing and syncing of StyleBooks does not happen automatically based on GitHub/GitLab commit activity.