Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
gitlab-runner
Commits
72f4307e
Commit
72f4307e
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Add support for Docker Machine with Digital Ocean driver
parent
77391854
No related branches found
No related tags found
1 merge request
!1
Support runner options for Docker Machine
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
defaults/main.yml
+4
-0
4 additions, 0 deletions
defaults/main.yml
tasks/global-setup.yml
+0
-1
0 additions, 1 deletion
tasks/global-setup.yml
tasks/main.yml
+3
-3
3 additions, 3 deletions
tasks/main.yml
tasks/register-runner.yml
+12
-2
12 additions, 2 deletions
tasks/register-runner.yml
with
19 additions
and
6 deletions
defaults/main.yml
+
4
−
0
View file @
72f4307e
...
@@ -33,3 +33,7 @@ gitlab_runner_ssh_password: ''
...
@@ -33,3 +33,7 @@ gitlab_runner_ssh_password: ''
gitlab_runner_ssh_identity_file
:
'
'
gitlab_runner_ssh_identity_file
:
'
'
# Runner Locked
# Runner Locked
gitlab_runner_locked
:
'
false'
gitlab_runner_locked
:
'
false'
# Runner machine
gitlab_runner_machine_idle_nodes
:
0
gitlab_runner_machine_idle_time
:
60
This diff is collapsed.
Click to expand it.
tasks/global-setup.yml
+
0
−
1
View file @
72f4307e
...
@@ -16,4 +16,3 @@
...
@@ -16,4 +16,3 @@
state
:
present
state
:
present
backrefs
:
yes
backrefs
:
yes
notify
:
restart_gitlab_runner
notify
:
restart_gitlab_runner
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
3
−
3
View file @
72f4307e
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
import_tasks
:
install-redhat.yml
import_tasks
:
install-redhat.yml
when
:
ansible_os_family == 'RedHat'
when
:
ansible_os_family == 'RedHat'
-
name
:
Set global options
import_tasks
:
global-setup.yml
-
name
:
Register GitLab Runner
-
name
:
Register GitLab Runner
import_tasks
:
register-runner.yml
import_tasks
:
register-runner.yml
when
:
gitlab_runner_registration_token != ''
when
:
gitlab_runner_registration_token != ''
-
name
:
Set global options
import_tasks
:
global-setup.yml
This diff is collapsed.
Click to expand it.
tasks/register-runner.yml
+
12
−
2
View file @
72f4307e
...
@@ -30,7 +30,17 @@
...
@@ -30,7 +30,17 @@
--cache-s3-access-key '{{ gitlab_runner_cache_s3_access_key }}'
--cache-s3-access-key '{{ gitlab_runner_cache_s3_access_key }}'
--cache-s3-secret-key '{{ gitlab_runner_cache_s3_secret_key }}'
--cache-s3-secret-key '{{ gitlab_runner_cache_s3_secret_key }}'
--cache-s3-bucket-name '{{ gitlab_runner_cache_s3_bucket_name }}'
--cache-s3-bucket-name '{{ gitlab_runner_cache_s3_bucket_name }}'
--cache-s3-insecure
'{{ gitlab_runner_cache_s3_insecure }}'
--cache-s3-insecure
=
'{{ gitlab_runner_cache_s3_insecure }}'
--cache-cache-shared
'{{ gitlab_runner_cache_cache_shared }}'
--cache-cache-shared
=
'{{ gitlab_runner_cache_cache_shared }}'
{% endif %}
{% endif %}
--machine-idle-nodes '{{ gitlab_runner_machine_idle_nodes }}'
--machine-idle-time '{{ gitlab_runner_machine_idle_time }}'
--machine-machine-driver 'digitalocean'
--machine-machine-name 'gitlab-runner-autoscale-%s'
--machine-machine-options 'digitalocean-image=coreos-stable'
--machine-machine-options 'digitalocean-ssh-user=core'
--machine-machine-options 'digitalocean-access-token={{ gitlab_runner_digital_ocean_token }}'
--machine-machine-options 'digitalocean-region={{ gitlab_runner_digital_ocean_region }}'
--machine-machine-options 'digitalocean-size={{ gitlab_runner_digital_ocean_size }}'
--machine-machine-options 'digitalocean-private-networking'
when
:
configured_runners.stderr.find('\n' + gitlab_runner_description) == -1
when
:
configured_runners.stderr.find('\n' + gitlab_runner_description) == -1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment