aboutsummaryrefslogtreecommitdiffstats
path: root/modules/icecream
diff options
context:
space:
mode:
Diffstat (limited to 'modules/icecream')
-rw-r--r--modules/icecream/manifests/client.pp6
-rw-r--r--modules/icecream/manifests/client_common.pp7
-rw-r--r--modules/icecream/manifests/init.pp1
-rw-r--r--modules/icecream/manifests/scheduler.pp7
-rw-r--r--modules/icecream/templates/sysconfig89
5 files changed, 110 insertions, 0 deletions
diff --git a/modules/icecream/manifests/client.pp b/modules/icecream/manifests/client.pp
new file mode 100644
index 00000000..5364d87d
--- /dev/null
+++ b/modules/icecream/manifests/client.pp
@@ -0,0 +1,6 @@
+define icecream::client($host = '') {
+ include icecream::client_common
+ file { '/etc/sysconfig/icecream':
+ content => template('icecream/sysconfig'),
+ }
+}
diff --git a/modules/icecream/manifests/client_common.pp b/modules/icecream/manifests/client_common.pp
new file mode 100644
index 00000000..b4ee4ac5
--- /dev/null
+++ b/modules/icecream/manifests/client_common.pp
@@ -0,0 +1,7 @@
+class icecream::client_common {
+ package { 'icecream': }
+
+ service { 'icecream':
+ subscribe => Package['icecream'],
+ }
+}
diff --git a/modules/icecream/manifests/init.pp b/modules/icecream/manifests/init.pp
new file mode 100644
index 00000000..01828f03
--- /dev/null
+++ b/modules/icecream/manifests/init.pp
@@ -0,0 +1 @@
+class icecream { }
diff --git a/modules/icecream/manifests/scheduler.pp b/modules/icecream/manifests/scheduler.pp
new file mode 100644
index 00000000..e3d876b8
--- /dev/null
+++ b/modules/icecream/manifests/scheduler.pp
@@ -0,0 +1,7 @@
+class icecream::scheduler {
+ package { 'icecream-scheduler': }
+
+ service { 'icecream-scheduler':
+ subscribe => Package['icecream-scheduler'],
+ }
+}
diff --git a/modules/icecream/templates/sysconfig b/modules/icecream/templates/sysconfig
new file mode 100644
index 00000000..8a5bc92c
--- /dev/null
+++ b/modules/icecream/templates/sysconfig
@@ -0,0 +1,89 @@
+#
+## Type: integer(0:19)
+## Path: Applications/icecream
+## Description: Icecream settings
+## ServiceRestart: icecream
+## Default: 5
+#
+# Nice level of running compilers
+#
+ICECREAM_NICE_LEVEL="5"
+
+#
+## Type: string
+## Path: Applications/icecream
+## Default: /var/log/iceccd
+#
+# icecream daemon log file
+#
+ICECREAM_LOG_FILE="/var/log/icecream.log"
+
+#
+## Type: string
+## Path: Applications/icecream
+## Default: no
+#
+# Start also the scheduler?
+#
+ICECREAM_RUN_SCHEDULER="no"
+
+#
+## Type: string
+## Path: Applications/icecream
+## Default: /var/log/icecc_scheduler
+#
+# icecream scheduler log file
+#
+ICECREAM_SCHEDULER_LOG_FILE="/var/log/scheduler.log"
+
+#
+## Type: string
+## Path: Applications/icecream
+## Default: ""
+#
+# Identification for the network the scheduler and daemon run on.
+# You can have several distinct icecream networks in the same LAN
+# for whatever reason.
+#
+ICECREAM_NETNAME=""
+
+#
+## Type: string
+## Path: Applications/icecream
+## Default: ""
+#
+# If the daemon can't find the scheduler by broadcast (e.g. because
+# of a firewall) you can specify it.
+#
+ICECREAM_SCHEDULER_HOST="<%= @host %>"
+
+#
+## Type: string
+## Path: Applications/icecream
+## Default: ""
+## Type: integer
+#
+# You can overwrite here the number of jobs to run in parallel. Per
+# default this depends on the number of (virtual) CPUs installed.
+#
+ICECREAM_MAX_JOBS=""
+
+#
+## Type: string
+## Path: Applications/icecream
+## Default: "/var/cache/icecream"
+#
+# This is the directory where the icecream daemon stores the environments
+# it compiles in. In a big network this can grow quite a bit, so use some
+# path if your /tmp is small - but the user icecream has to write to it.
+#
+ICECREAM_BASEDIR="/var/cache/icecream"
+
+#
+## Type: string
+## Path: Applications/icecream
+# Default: ""
+#
+# Just set the environment var to enable DEBUG
+ICECREAM_DEBUG="1"
+ICECREAM_SCHEDULER_DEBUG="1"