Skip to content

Commit

Permalink
Merge branch 'release/3.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Apr 9, 2019
2 parents 661b12c + 7bdcd49 commit e2e917f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [3.2.0] - 2019-03-09
- Added: Option to set shm_size for the runners, default remains 0.

## [3.1.0] - 2019-03-09
- Added: Option to set environment variables for the runners, see the variable `runners_environment_vars`. An example added to the `public-runner` example.
- Added: Option to set environment variables for the runners, see the variable `runners_environment_vars`. An example added to the `public-runner` example.

## [3.0.0] - 2019-03-29
- Changed: The runner will register itself based on the registration token. No need to preregister the runner before running terraform. See the [README](README.md) for configuration and migration. #33
Expand Down Expand Up @@ -107,7 +111,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Update default AMI's to The latest Amazon Linux AMI 2017.09.1 - released on 2018-01-17.
- Minor updates in the example

[Unreleased]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.1.0...HEAD
[Unreleased]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.2.0...HEAD
[3.2.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.1.0...3.2.0
[3.1.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.0.0...3.1.0
[3.0.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/2.3.0...3.0.0
[2.3.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/2.2.1...2.3.0
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ module "runner" {
| runners_privileged | Runners will run in privileged mode, will be used in the runner config.toml | string | `true` | no |
| runners_request_concurrency | Limit number of concurrent requests for new jobs from GitLab (default 1) | string | `1` | no |
| runners_root_size | Runner instance root size in GB. | string | `16` | no |
| runners_shm_size | shm_size for the runners. will be used in the runner config.toml | string | `0` | no |
| runners_token | Token for the runner, will be used in the runner config.toml. | string | `__REPLACED_BY_USER_DATA__` | no |
| runners_use_private_address | Restrict runners to the use of a private IP address | string | `true` | no |
| secure_parameter_store_runner_token_key | The key name used store the Gitlab runner token in Secure Parameter Store | string | `runner-token` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ data "template_file" "runners" {
runners_concurrent = "${var.runners_concurrent}"
runners_image = "${var.runners_image}"
runners_privileged = "${var.runners_privileged}"
runners_shm_size = "${var.runners_shm_size}"
runners_idle_count = "${var.runners_idle_count}"
runners_idle_time = "${var.runners_idle_time}"
runners_off_peak_timezone = "${var.runners_off_peak_timezone}"
Expand Down
2 changes: 1 addition & 1 deletion template/runner-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ check_interval = 0
privileged = ${runners_privileged}
disable_cache = false
volumes = ["/cache"]
shm_size = 0
shm_size = ${runners_shm_size}
[runners.cache]
Type = "s3"
Shared = ${shared_cache}
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ variable "runners_privileged" {
default = "true"
}

variable "runners_shm_size" {
description = "shm_size for the runners. will be used in the runner config.toml"
default = 0
}

variable "runners_monitoring" {
description = "Enable detailed cloudwatch monitoring for spot instances."
default = false
Expand Down

0 comments on commit e2e917f

Please sign in to comment.