summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-12 13:08:48 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-12 13:08:48 +0200
commitab04c7d1d51b92c42bb38742c26cdc6137f1ba46 (patch)
tree40f4195abae45352b148386ae2d784c17d36a657
parent410940af667be6a11494b0cdc145869784b96f8c (diff)
downloadcacert-puppet-ab04c7d1d51b92c42bb38742c26cdc6137f1ba46.tar.gz
cacert-puppet-ab04c7d1d51b92c42bb38742c26cdc6137f1ba46.tar.xz
cacert-puppet-ab04c7d1d51b92c42bb38742c26cdc6137f1ba46.zip
Setup Jenkins repository on jenkins
-rw-r--r--sitemodules/profiles/manifests/jenkins.pp42
-rw-r--r--sitemodules/roles/manifests/jenkins.pp1
2 files changed, 43 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/jenkins.pp b/sitemodules/profiles/manifests/jenkins.pp
new file mode 100644
index 0000000..298dbd0
--- /dev/null
+++ b/sitemodules/profiles/manifests/jenkins.pp
@@ -0,0 +1,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,
+ }
+}
diff --git a/sitemodules/roles/manifests/jenkins.pp b/sitemodules/roles/manifests/jenkins.pp
index 0af7fe0..da68870 100644
--- a/sitemodules/roles/manifests/jenkins.pp
+++ b/sitemodules/roles/manifests/jenkins.pp
@@ -25,4 +25,5 @@ class roles::jenkins {
include profiles::rsyslog
include profiles::purge_nrpe_agent
include profiles::icinga2_agent
+ include profiles::jenkins
}