summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/jenkins.pp
blob: 298dbd0284df9a350eb2157cb83b1223fd2f1ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Class: profiles::jenkins
# ========================
#
# This class takes care if setting up a Jenkins CI server.
#
# Examples
# --------
#
# @example
#   class roles::myhost {
#     include profiles::jenkins
#   }
#
# Authors
# -------
#
# Jan Dittberner <jandd@cacert.org>
#
# Copyright
# ---------
#
# Copyright 2019 Jan Dittberner
#
class profiles::jenkins (
) {
  apt::key { 'jenkins':
    id      => '150FDE3F7787E7D11EF4E12A9B7D32F2D50582E6',
    source  => 'https://pkg.jenkins.io/debian/jenkins.io.key',
    options => 'http-proxy=http://proxyout:3128',
  }
  apt::source { 'jenkins':
    location => 'https://pkg.jenkins.io/debian',
    repos    => 'binary/',
  } ->
  package { 'jenkins':
    ensure  => latest,
  } ->
  service { 'jenkins':
    ensure  => running,
    enable  => true,
  }
}