summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeoffrey Bauvin <jeoffrey.bauvin.ext@boursorama.fr>2015-10-26 16:03:29 +0100
committerJeoffrey Bauvin <jeoffrey.bauvin.ext@boursorama.fr>2015-10-26 16:03:29 +0100
commit86c43f4f127af17861ea874af0a5771cdbedcd44 (patch)
tree9e28819420e4c00b0dd703b7c0bc65635a80c23f
parent3a89c9b6ef6af294f9cc6e4fb7428ac5cd77d9bb (diff)
Add repo
-rw-r--r--manifests/params.pp14
-rw-r--r--manifests/repo.pp11
-rw-r--r--manifests/repo/apt.pp22
3 files changed, 44 insertions, 3 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index 775c3ef..4f25f62 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -4,12 +4,20 @@
# It sets variables according to platform
#
class gitlab_ci_multi_runner::params {
+
+ $config_file = '/etc/gitlab-runner/config.toml'
+ $manage_package_repo = undef
+ $user = 'gitlab-runner'
+ $group = 'gitlab-runner'
+
+ $concurrent = 1
+
case $::osfamily {
'Debian': {
- $package_name = 'gitlab_ci_multi_runner'
- $service_name = 'gitlab_ci_multi_runner'
+ $package_name = 'gitlab-ci-multi-runner'
+ $service_name = 'gitlab-runner'
}
- 'RedHat', 'Amazon': {
+ 'RedHat': {
$package_name = 'gitlab_ci_multi_runner'
$service_name = 'gitlab_ci_multi_runner'
}
diff --git a/manifests/repo.pp b/manifests/repo.pp
new file mode 100644
index 0000000..2263170
--- /dev/null
+++ b/manifests/repo.pp
@@ -0,0 +1,11 @@
+# == Class gitlab_ci_multi_runner::repo
+#
+# This class is private, do not use directly
+#
+class gitlab_ci_multi_runner::repo {
+ case $::osfamily {
+ 'Debian': {
+ class { 'gitlab_ci_multi_runner::repo::apt': }
+ }
+ }
+} \ No newline at end of file
diff --git a/manifests/repo/apt.pp b/manifests/repo/apt.pp
new file mode 100644
index 0000000..123d06d
--- /dev/null
+++ b/manifests/repo/apt.pp
@@ -0,0 +1,22 @@
+# == Class gitlab_ci_multi_runner::repo::apt
+#
+# This class is private, do not use directly
+#
+class gitlab_ci_multi_runner::repo::apt {
+ include apt
+
+ apt::source { 'gitlab-ci-multi-runner':
+ comment => 'This is an officiel apt repo for Gitlab Ci Multi Runner',
+ location => 'https://packages.gitlab.com/runner/gitlab-ci-multi-runner/debian/',
+ release => $::lsbdistcodename,
+ repos => 'main',
+ key => {
+ 'id' => '1A4C919DB987D435939638B914219A96E15E78F4',
+ 'source' => 'https://packages.gitlab.com/gpg.key',
+ },
+ include => {
+ 'src' => true,
+ 'deb' => true,
+ },
+ }
+} \ No newline at end of file