aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-02-20 18:34:25 +0000
committerMichael Scherer <misc@mageia.org>2012-02-20 18:34:25 +0000
commitf304ad06de1a65efe90f52d80ce76f93e2eb3748 (patch)
treedb07d6b4525d61d84e8c9386ba483403839e1c5c /modules
parent072eb3f43d6de4347882ee1c0d9e666239bb10c4 (diff)
downloadpuppet-f304ad06de1a65efe90f52d80ce76f93e2eb3748.tar
puppet-f304ad06de1a65efe90f52d80ce76f93e2eb3748.tar.gz
puppet-f304ad06de1a65efe90f52d80ce76f93e2eb3748.tar.bz2
puppet-f304ad06de1a65efe90f52d80ce76f93e2eb3748.tar.xz
puppet-f304ad06de1a65efe90f52d80ce76f93e2eb3748.zip
split icecream in 4 files to please puppet-lint
Diffstat (limited to 'modules')
-rw-r--r--modules/icecream/manifests/client.pp6
-rw-r--r--modules/icecream/manifests/client_common.pp7
-rw-r--r--modules/icecream/manifests/init.pp25
-rw-r--r--modules/icecream/manifests/scheduler.pp7
4 files changed, 21 insertions, 24 deletions
diff --git a/modules/icecream/manifests/client.pp b/modules/icecream/manifests/client.pp
new file mode 100644
index 00000000..d58a5e65
--- /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
index a4440a87..01828f03 100644
--- a/modules/icecream/manifests/init.pp
+++ b/modules/icecream/manifests/init.pp
@@ -1,24 +1 @@
-class icecream {
- class scheduler {
- package { 'icecream-scheduler': }
-
- service { 'icecream-scheduler':
- subscribe => Package['icecream-scheduler'],
- }
- }
-
- class client_common {
- package { 'icecream': }
-
- service { 'icecream':
- subscribe => Package['icecream'],
- }
- }
-
- define client($host => '') {
- include icecream::client_common
- file { '/etc/sysconfig/icecream':
- content => template('icecream/sysconfig'),
- }
- }
-}
+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'],
+ }
+}