|
23 | 23 | # * instance_name |
24 | 24 | # String, The instance name as part of the instances Hash. |
25 | 25 | # |
| 26 | +# * http_proxy |
| 27 | +# Optional[String], Proxy URL for HTTP traffic. More information at https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners. |
| 28 | +# |
| 29 | +# * https_proxy |
| 30 | +# Optional[String], Proxy URL for HTTPS traffic. More information at https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners |
| 31 | +# |
| 32 | +# * no_proxy |
| 33 | +# Optional[String], Comma separated list of hosts that should not use a proxy. More information at https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners |
| 34 | +# |
26 | 35 | # * repo_name |
27 | 36 | # Optional[String], actions runner repository name. |
28 | 37 | # |
|
38 | 47 | String $group = $github_actions_runner::group, |
39 | 48 | String $hostname = $::facts['hostname'], |
40 | 49 | String $instance_name = $title, |
| 50 | + Optional[String] $http_proxy = $github_actions_runner::http_proxy, |
| 51 | + Optional[String] $https_proxy = $github_actions_runner::https_proxy, |
| 52 | + Optional[String] $no_proxy = $github_actions_runner::no_proxy, |
41 | 53 | Optional[Array[String]] $labels = undef, |
42 | 54 | Optional[String] $repo_name = undef, |
43 | 55 |
|
|
110 | 122 |
|
111 | 123 | exec { "${instance_name}-ownership": |
112 | 124 | user => $user, |
113 | | - cwd => "${github_actions_runner::root_dir}", |
| 125 | + cwd => $github_actions_runner::root_dir, |
114 | 126 | command => "/bin/chown -R ${user}:${group} ${github_actions_runner::root_dir}/${instance_name}", |
115 | 127 | refreshonly => true, |
116 | 128 | path => "/tmp/${instance_name}-${archive_name}", |
|
131 | 143 | root_dir => $github_actions_runner::root_dir, |
132 | 144 | user => $user, |
133 | 145 | group => $group, |
| 146 | + http_proxy => $http_proxy, |
| 147 | + https_proxy => $https_proxy, |
| 148 | + no_proxy => $no_proxy, |
134 | 149 | }), |
135 | 150 | require => [File["${github_actions_runner::root_dir}/${instance_name}/configure_install_runner.sh"], |
136 | 151 | Exec["${instance_name}-run_configure_install_runner.sh"]], |
|
0 commit comments