summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client.pp10
-rw-r--r--manifests/client/base.pp8
-rw-r--r--manifests/client/debian.pp7
3 files changed, 18 insertions, 7 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index cd342be..f375a51 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -1,12 +1,8 @@
class mysql::client {
- package{ 'mysql':
- name => $operatingsystem ? {
- 'debian' => 'mysql-client',
- default => 'mysql',
- },
- alias => 'mysql-client',
- ensure => present,
+ case $operatingsystem {
+ debian: { include mysql::client::debian }
+ default: { include mysql::client::base }
}
if $use_shorewall {
diff --git a/manifests/client/base.pp b/manifests/client/base.pp
new file mode 100644
index 0000000..d992b0f
--- /dev/null
+++ b/manifests/client/base.pp
@@ -0,0 +1,8 @@
+class mysql::client::base {
+
+ package { 'mysql':
+ ensure => present,
+ alias => 'mysql-client',
+ }
+
+}
diff --git a/manifests/client/debian.pp b/manifests/client/debian.pp
new file mode 100644
index 0000000..b400c4a
--- /dev/null
+++ b/manifests/client/debian.pp
@@ -0,0 +1,7 @@
+class mysql::client::debian inherits mysql::client::base {
+
+ Package['mysql'] {
+ name => 'mysql-client',
+ }
+
+}