diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-20 18:34:25 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-20 18:34:25 +0000 |
commit | f304ad06de1a65efe90f52d80ce76f93e2eb3748 (patch) | |
tree | db07d6b4525d61d84e8c9386ba483403839e1c5c /modules/icecream | |
parent | 072eb3f43d6de4347882ee1c0d9e666239bb10c4 (diff) | |
download | puppet-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/icecream')
-rw-r--r-- | modules/icecream/manifests/client.pp | 6 | ||||
-rw-r--r-- | modules/icecream/manifests/client_common.pp | 7 | ||||
-rw-r--r-- | modules/icecream/manifests/init.pp | 25 | ||||
-rw-r--r-- | modules/icecream/manifests/scheduler.pp | 7 |
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'], + } +} |