|
| 1 | +# Reference |
| 2 | + |
| 3 | +## Table of Contents |
| 4 | + |
| 5 | +**Classes** |
| 6 | + |
| 7 | +* [`github_actions_runner`](#github_actions_runner) |
| 8 | +* [`github_actions_runner::install`](#github_actions_runner_install) |
| 9 | +* [`github_actions_runner::config`](#github_actions_runner_config) |
| 10 | +* [`github_actions_runner::service`](#github_actions_runner_service) |
| 11 | + |
| 12 | +## Classes |
| 13 | + |
| 14 | +### github_actions_runner |
| 15 | + |
| 16 | +Guides the basic setup and installation of GitHub actions runner on your system. |
| 17 | + |
| 18 | +You can read more about self-hosted actions runner [here](https://docs.github.com/en/free-pro-team@latest/actions/hosting-your-own-runners/about-self-hosted-runners) |
| 19 | + |
| 20 | +#### Parameters |
| 21 | + |
| 22 | +The following parameters are available in the `github_actions_runner` class. |
| 23 | + |
| 24 | +##### `ensure` |
| 25 | + |
| 26 | +Data type: `Enum['present', 'absent']]` |
| 27 | +Enum, Determine if to add or remove the resource. |
| 28 | + |
| 29 | +##### `base_dir_name` |
| 30 | + |
| 31 | +Data type: `Absolutepath` |
| 32 | +Location of the base directory for actions runner to be installed. |
| 33 | + |
| 34 | +##### `repo_name` |
| 35 | + |
| 36 | +Data type: `Optional[String]` |
| 37 | + |
| 38 | +actions runner github repository name to serve. |
| 39 | +Default value: `undef` |
| 40 | + |
| 41 | +##### `org_name` |
| 42 | + |
| 43 | +Data type: `String` |
| 44 | + |
| 45 | +actions runner github organization name. |
| 46 | + |
| 47 | +##### `labels` |
| 48 | + |
| 49 | +Data type: `Optional[Array[String]]` |
| 50 | + |
| 51 | +A list of costum lables to add to a actions runner host. |
| 52 | + |
| 53 | +Default value: `undef` |
| 54 | + |
| 55 | +##### `hostname` |
| 56 | + |
| 57 | +Data type: `String` |
| 58 | + |
| 59 | +actions runner name |
| 60 | + |
| 61 | +Default value: $::facts['hostname'] |
| 62 | + |
| 63 | +##### `personal_access_token` |
| 64 | + |
| 65 | +Data type: `String` |
| 66 | + |
| 67 | +GitHub Personal Access Token with admin permission on the repositories or the organization. |
| 68 | + |
| 69 | +##### `package_name` |
| 70 | + |
| 71 | +Data type: `String` |
| 72 | + |
| 73 | +GitHub Actions runner official package name. |
| 74 | + |
| 75 | +You can find the package names [here](https://github.com/actions/runner/releases) |
| 76 | + |
| 77 | +**Example**: |
| 78 | + |
| 79 | +```actions-runner-linux-x64 |
| 80 | +``` |
| 81 | + |
| 82 | +##### `package_ensure` |
| 83 | + |
| 84 | +Data type: `String` |
| 85 | + |
| 86 | +GitHub Actions runner version to be used. |
| 87 | + |
| 88 | +You can find latest versions [here](https://github.com/actions/runner/releases) |
| 89 | + |
| 90 | +**Example**: |
| 91 | + |
| 92 | +```2.272.0 |
| 93 | +``` |
| 94 | + |
| 95 | +##### `repository_url` |
| 96 | + |
| 97 | +Data type: `String` |
| 98 | + |
| 99 | +A base URL to download GitHub actions runner. |
| 100 | + |
| 101 | +**Example**: |
| 102 | + |
| 103 | +```https://github.com/actions/runner/releases/download |
| 104 | +``` |
| 105 | + |
| 106 | +##### `user` |
| 107 | + |
| 108 | +Data type: `String` |
| 109 | + |
| 110 | +User to be used in Service and directories. |
| 111 | + |
| 112 | +##### `group` |
| 113 | + |
| 114 | +Data type: `String` |
| 115 | + |
| 116 | +Group to be used in Service and directories. |
| 117 | + |
| 118 | +### github_actions_runner::install |
| 119 | + |
| 120 | +Install the files and packages for the module. |
| 121 | + |
| 122 | +### github_actions_runner::config |
| 123 | + |
| 124 | +Main path configuration of the module installation. |
| 125 | + |
| 126 | +### github_actions_runner::service |
| 127 | + |
| 128 | +The service setup for this module. |
0 commit comments