Skip to content
Snippets Groups Projects
Unverified Commit 5b2c4542 authored by Erik-jan Riemers's avatar Erik-jan Riemers Committed by GitHub
Browse files

Merge pull request #14 from killmeplz/master

s3 support added
parents 0d58c874 600c5a25
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,15 @@ The default Docker image to use. Required when executor is `docker`. ...@@ -45,6 +45,15 @@ The default Docker image to use. Required when executor is `docker`.
The tags assigned to the runner, The tags assigned to the runner,
Defaults to an empty list. Defaults to an empty list.
`gitlab_runner_cache_type`
Variables to set s3 as a shared cache server. If set it requires variables listed below:
`gitlab_runner_cache_s3_server_address`
`gitlab_runner_cache_s3_access_key`
`gitlab_runner_cache_s3_access_key`
`gitlab_runner_cache_s3_bucket_name`
`gitlab_runner_cache_s3_insecure`
`gitlab_runner_cache_cache_shared`
See the [config for more options](https://github.com/riemers/ansible-gitlab-runner/blob/master/tasks/register-runner.yml) See the [config for more options](https://github.com/riemers/ansible-gitlab-runner/blob/master/tasks/register-runner.yml)
Example Playbook Example Playbook
......
...@@ -24,4 +24,13 @@ ...@@ -24,4 +24,13 @@
--ssh-port '{{ gitlab_runner_ssh_port }}' --ssh-port '{{ gitlab_runner_ssh_port }}'
--ssh-password '{{ gitlab_runner_ssh_password }}' --ssh-password '{{ gitlab_runner_ssh_password }}'
--ssh-identity-file '{{ gitlab_runner_ssh_identity_file }}' --ssh-identity-file '{{ gitlab_runner_ssh_identity_file }}'
{% if gitlab_runner_cache_type is defined %}
--cache-type '{{ gitlab_runner_cache_type }}'
--cache-s3-server-address '{{ gitlab_runner_cache_s3_server_address }}'
--cache-s3-access-key '{{ gitlab_runner_cache_s3_access_key }}'
--cache-s3-secret-key '{{ gitlab_runner_cache_s3_access_key }}'
--cache-s3-bucket-name '{{ gitlab_runner_cache_s3_bucket_name }}'
--cache-s3-insecure '{{ gitlab_runner_cache_s3_insecure }}'
--cache-cache-shared '{{ gitlab_runner_cache_cache_shared }}'
{% endif %}
when: configured_runners.stderr.find('\n' + gitlab_runner_description) == -1 when: configured_runners.stderr.find('\n' + gitlab_runner_description) == -1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment