aboutsummaryrefslogtreecommitdiffstats
path: root/modules/icecream
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-01 00:33:34 +0000
committerMichael Scherer <misc@mageia.org>2011-02-01 00:33:34 +0000
commit6b46e47c42123e8688c38220ce3049108e246f01 (patch)
tree4276fbca5bf933dc51320954c1cd7266394b8475 /modules/icecream
parent843ca45f73eaf736b5d46216f7db7969b36805b4 (diff)
downloadpuppet-6b46e47c42123e8688c38220ce3049108e246f01.tar
puppet-6b46e47c42123e8688c38220ce3049108e246f01.tar.gz
puppet-6b46e47c42123e8688c38220ce3049108e246f01.tar.bz2
puppet-6b46e47c42123e8688c38220ce3049108e246f01.tar.xz
puppet-6b46e47c42123e8688c38220ce3049108e246f01.zip
add icecream module
Diffstat (limited to 'modules/icecream')
-rw-r--r--modules/icecream/manifests/init.pp36
-rw-r--r--modules/icecream/templates/sysconfig89
2 files changed, 125 insertions, 0 deletions
diff --git a/modules/icecream/manifests/init.pp b/modules/icecream/manifests/init.pp
new file mode 100644
index 00000000..437ef8c3
--- /dev/null
+++ b/modules/icecream/manifests/init.pp
@@ -0,0 +1,36 @@
+class icecream {
+ class scheduler {
+ package { "icecream-scheduler":
+ ensure => installed,
+ }
+
+ service { "icecream-scheduler":
+ ensure => running,
+ hasstatus => true,
+ subscribe => [Package['icecream-scheduler']],
+ }
+ }
+
+ class client_common {
+ package { "icecream":
+ ensure => installed,
+ }
+
+ service { "icecream":
+ ensure => running,
+ hasstatus => true,
+ subscribe => [Package['icecream']],
+ }
+ }
+
+ define client($host => '') {
+ include icecream::client_common
+ file { "/etc/sysconfig/icecream":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 640,
+ content => template("icecream/sysconfig"),
+ }
+ }
+}
diff --git a/modules/icecream/templates/sysconfig b/modules/icecream/templates/sysconfig
new file mode 100644
index 00000000..a3ae80c8
--- /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
+## Defaut: /var/log/iceccd
+#
+# icecream daemon log file
+#
+ICECREAM_LOG_FILE="/var/log/icecream.log"
+
+#
+## Type: string
+## Path: Applications/icecream
+## Defaut: no
+#
+# Start also the scheduler?
+#
+ICECREAM_RUN_SCHEDULER="no"
+
+#
+## Type: string
+## Path: Applications/icecream
+## Defaut: /var/log/icecc_scheduler
+#
+# icecream scheduler log file
+#
+ICECREAM_SCHEDULER_LOG_FILE="/var/log/scheduler.log"
+
+#
+## Type: string
+## Path: Applications/icecream
+## Defaut: ""
+#
+# 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
+## Defaut: ""
+#
+# 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
+## Defaut: ""
+## 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"