Sha256: a8aae74a2399ecadacbf41ce8f6efbac7e2fe6f3d42a3305d63d75fbbf7e22f6

Contents?: true

Size: 722 Bytes

Versions: 5

Compression:

Stored size: 722 Bytes

Contents

# c.f. https://docs.gitlab.com/runner/install/linux-repository.html

package "curl"

case node[:platform]
when "debian"
  execute "curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | bash" do
    not_if "ls /etc/apt/sources.list.d/runner_gitlab-runner.list"
  end

when "redhat", "amazon"
  execute "curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash" do
    not_if "ls /etc/yum.repos.d/runner_gitlab-runner.repo"
  end
end

gitlab_runner_version =
  if node["gitlab-runner"]
    node["gitlab-runner"][:version]
  else
    nil
  end

package "gitlab-runner" do
  if gitlab_runner_version
    version gitlab_runner_version
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
itamae-plugin-recipe-gitlab_runner-0.2.3 lib/itamae/plugin/recipe/gitlab_runner/install.rb
itamae-plugin-recipe-gitlab_runner-0.2.2 lib/itamae/plugin/recipe/gitlab_runner/install.rb
itamae-plugin-recipe-gitlab_runner-0.2.1 lib/itamae/plugin/recipe/gitlab_runner/install.rb
itamae-plugin-recipe-gitlab_runner-0.2.0 lib/itamae/plugin/recipe/gitlab_runner/install.rb
itamae-plugin-recipe-gitlab_runner-0.1.0 lib/itamae/plugin/recipe/gitlab_runner/install.rb