Skip to content

Commit

Permalink
Merge branch 'release/3.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Jul 26, 2019
2 parents 2807ceb + fc4dcae commit f3346d6
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ YES | NO - If yes please describe the mirgration.
Please mentioned the examples you have verified.

## Documentation
Please ensure you pdate the README in `_docs/README.md`. The README.md in the root can be update by running the script `ci/bin/autodocs.sh`
Please ensure you update the README in `_docs/README.md`. The README.md in the root can be update by running the script `ci/bin/autodocs.sh`
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 3.9.0 - 2019-07-26
- Changed
- Update default runner version to 12.1.0 (#106)
- Added
- Add runners_volumes variable (#105) @kevinrambaud

## 3.8.0 - 2019-07-22
- Added
- Variable `docker_machine_ssh_cidr_blocks` to set CIDR for ingress on docker machine SSH rules. @kevinrambaud #101
Expand Down Expand Up @@ -148,7 +154,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.8.0...HEAD
[Unreleased]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.9.0...HEAD
[3.9.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.8.0...3.9.0
[3.8.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.7.0...3.8.0
[3.7.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.6.0...3.7.0
[3.6.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/3.5.0...3.6.0
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ terraform destroy
| environment | A name that identifies the environment, used as prefix and for tagging. | string | n/a | yes |
| gitlab\_runner\_registration\_config | Configuration used to register the runner. See the README for an example, or reference the examples in the examples directory of this repo. | map | `<map>` | no |
| gitlab\_runner\_ssh\_cidr\_blocks | List of CIDR blocks to allow SSH Access to the gitlab runner instance. | list | `<list>` | no |
| gitlab\_runner\_version | Version of the GitLab runner. | string | `"11.11.2"` | no |
| gitlab\_runner\_version | Version of the GitLab runner. | string | `"12.1.0"` | no |
| instance\_role\_json | Default runner instance override policy, expected to be in JSON format. | string | `""` | no |
| instance\_type | Instance type used for the GitLab runner. | string | `"t3.micro"` | no |
| name\_runners\_docker\_machine | | string | `""` | no |
Expand Down Expand Up @@ -257,6 +257,7 @@ terraform destroy
| 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 |
| runners\_volumes | Specify additional volumes that should be mounted (same syntax as Docker’s -v flag) | list | `<list>` | no |
| secure\_parameter\_store\_runner\_token\_key | The key name used store the Gitlab runner token in Secure Parameter Store | string | `"runner-token"` | no |
| ssh\_public\_key | Public SSH key used for the GitLab runner EC2 instance. | string | n/a | yes |
| subnet\_id\_runners | List of subnets used for hosting the gitlab-runners. | string | n/a | yes |
Expand Down
3 changes: 2 additions & 1 deletion _docs/TF_MODULE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
| environment | A name that identifies the environment, used as prefix and for tagging. | string | n/a | yes |
| gitlab\_runner\_registration\_config | Configuration used to register the runner. See the README for an example, or reference the examples in the examples directory of this repo. | map | `<map>` | no |
| gitlab\_runner\_ssh\_cidr\_blocks | List of CIDR blocks to allow SSH Access to the gitlab runner instance. | list | `<list>` | no |
| gitlab\_runner\_version | Version of the GitLab runner. | string | `"11.11.2"` | no |
| gitlab\_runner\_version | Version of the GitLab runner. | string | `"12.1.0"` | no |
| instance\_role\_json | Default runner instance override policy, expected to be in JSON format. | string | `""` | no |
| instance\_type | Instance type used for the GitLab runner. | string | `"t3.micro"` | no |
| name\_runners\_docker\_machine | | string | `""` | no |
Expand Down Expand Up @@ -60,6 +60,7 @@
| 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 |
| runners\_volumes | Specify additional volumes that should be mounted (same syntax as Docker’s -v flag) | list | `<list>` | no |
| secure\_parameter\_store\_runner\_token\_key | The key name used store the Gitlab runner token in Secure Parameter Store | string | `"runner-token"` | no |
| ssh\_public\_key | Public SSH key used for the GitLab runner EC2 instance. | string | n/a | yes |
| subnet\_id\_runners | List of subnets used for hosting the gitlab-runners. | string | n/a | yes |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ data "template_file" "runners" {
runners_concurrent = "${var.runners_concurrent}"
runners_image = "${var.runners_image}"
runners_privileged = "${var.runners_privileged}"
runners_volumes = "${length(var.runners_volumes) == 0 ? "[]" : format("[\"%s\"]", join("\", \"", var.runners_volumes))}"
runners_shm_size = "${var.runners_shm_size}"
runners_pull_policy = "${var.runners_pull_policy}"
runners_idle_count = "${var.runners_idle_count}"
Expand Down
2 changes: 1 addition & 1 deletion template/runner-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ check_interval = 0
image = "${runners_image}"
privileged = ${runners_privileged}
disable_cache = false
volumes = ["/cache"]
volumes = ${runners_volumes}
shm_size = ${runners_shm_size}
pull_policy = "${runners_pull_policy}"
[runners.cache]
Expand Down
8 changes: 7 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ variable "runners_privileged" {
default = "true"
}

variable "runners_volumes" {
description = "Specify additional volumes that should be mounted (same syntax as Docker’s -v flag)"
type = "list"
default = ["/cache"]
}

variable "runners_shm_size" {
description = "shm_size for the runners. will be used in the runner config.toml"
default = 0
Expand Down Expand Up @@ -251,7 +257,7 @@ variable "cache_shared" {
variable "gitlab_runner_version" {
description = "Version of the GitLab runner."
type = "string"
default = "11.11.2"
default = "12.1.0"
}

variable "enable_gitlab_runner_ssh_access" {
Expand Down

0 comments on commit f3346d6

Please sign in to comment.