|
1 | | -# repo-template |
2 | | -Generic repo template for Plus3IT repositories |
3 | | - |
4 | | -To use this template: |
5 | | - |
6 | | -1. Select the green "Use this template" button, or [click here](https://github.com/plus3it/repo-template/generate). |
7 | | -2. Select the repo Owner, give the repo a name, enter a description, select Public or Private, and click "Create repository from template". |
8 | | -3. Clone the repository and create a new branch. |
9 | | -4. Configure the following settings on your new repo. |
10 | | - * `GENERAL` |
11 | | - * `Features` |
12 | | - * Turn off Wikis, Sponsorships, Discussions, and Projects |
13 | | - * `Pull Requests` |
14 | | - * Turn off Squash Merging |
15 | | - * Turn off Rebase Merging |
16 | | - * Turn on Allow Auto-Merge |
17 | | - * Turn on Automatically delete head branches |
18 | | - * `Pushes` |
19 | | - * Limit how many branches can be updated in a single push: 2 |
20 | | - * `COLLABORATORS and TEAMS` |
21 | | - * `Manage Access` |
22 | | - * Add relevant team roles, for example |
23 | | - * `tardigrade-admins` (Admin) |
24 | | - * `terraform` (Write) |
25 | | - * `releasebot` (Write) |
26 | | - * `Branches` |
27 | | - * `Create Branch Protection rule` for `main` |
28 | | - * Turn on Require pull request before merging |
29 | | - * Turn on Require approvals |
30 | | - * Turn on Dismiss stale pull requests... |
31 | | - * `Required Status Checks` |
32 | | - * As relevant to projects, for example |
33 | | - * WIP |
34 | | - * lint/actionlint |
35 | | - * lint/tardigradelint |
36 | | - * test / mockstacktest |
37 | | - * Turn on Do not allow bypassing the above settings |
38 | | -5. Edit the following files to customize them for the new repository: |
39 | | - * `LICENSE` |
40 | | - * Near the end of the file, edit the date and change the repository name |
41 | | - * `CHANGELOG.template.md` |
42 | | - * Rename to `CHANGELOG.md`, replacing the repo-template changelog |
43 | | - * Edit templated items for the new repo |
44 | | - * `.bumpversion.cfg` |
45 | | - * Edit the version number for the new repo, ask team if not sure what to |
46 | | - start with |
47 | | - * `README.md` |
48 | | - * Replace contents for the new repo |
49 | | - * `.github/` |
50 | | - * Inspect dependabot and workflow files in case changes are needed for |
51 | | - the new repo |
52 | | -6. Commit the changes and open a pull request |
| 1 | +flux-cli-formula |
| 2 | +================== |
| 3 | + |
| 4 | +A SaltStack formula designed to install and configure the [Flux](https://fluxcd.io/flux/cmd/) CLI utility on installation-targets. |
| 5 | + |
| 6 | +It is primarily expected that this formula will be run via [P3](https://www.plus3it.com/)'s "[watchmaker](https://watchmaker.readthedocs.io/en/stable/)" framework. |
| 7 | + |
| 8 | +This formula is able to install the Flux CLI on both Linux[^1] and Windows Server[^2] operating environments. Intallation for internet-connected systems will come from the Flux CLI project's ["releases" page](https://github.com/fluxcd/flux2/releases). |
| 9 | + |
| 10 | + |
| 11 | +## Available states |
| 12 | + |
| 13 | +- [flux-cli](#flux-cli) |
| 14 | +- [flux-cli.clean](#flux-cli.clean) |
| 15 | +- [flux-cli.package](#flux-cli.package) |
| 16 | +- [flux-cli.package.clean](#flux-cli.package.clean) |
| 17 | +- [flux-cli.config](#flux-cli.config) |
| 18 | +- [flux-cli.config.clean](#flux-cli.config.clean) |
| 19 | + |
| 20 | +### flux-cli |
| 21 | + |
| 22 | +Executes the `package` and `config` states to install and configure the Flux CLI |
| 23 | + |
| 24 | +### flux-cli.clean |
| 25 | + |
| 26 | +Executes the `package` and `config` states' `clean` actions to fully uninstall the Flux CLI and remove previously-installed browser policy-configs (and, on Windows, associated registry entries) |
| 27 | + |
| 28 | +### flux-cli.package |
| 29 | + |
| 30 | +Executes _just_ the `package` state to install the Flux CLI package. |
| 31 | + |
| 32 | +### flux-cli.package.clean |
| 33 | + |
| 34 | +Executes _just_ the `package.clean` state to uninstall the Flux CLI package. |
| 35 | + |
| 36 | +### flux-cli.config |
| 37 | + |
| 38 | +Executes _just_ the `config` state to install/configure the Flux CLI client-configuration (etc.) files |
| 39 | + |
| 40 | +### flux-cli.config.clean |
| 41 | + |
| 42 | +Executes _just_ the `config` state to uninstall the Flux CLI client-configuration (etc.) files and, on Windows, remove any registry-keys set by prior install-runs of the formula. |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | +[^1]: As of this README's writing, only Enterprise Linux and related distros (Red Hat and Oracle Enterprise, CentOS Stream, Rocky and Alma Linux). It has only been specifically tested with EL **_9_** variants. |
| 47 | +[^2]: As of this README's writing, this functionality has only been tested on Windows Server 2022 |
0 commit comments