From 794d9c911e4f84b7cd3f90371839289950b7ba99 Mon Sep 17 00:00:00 2001 From: Jordi Prats Date: Tue, 8 Mar 2016 11:18:21 +0100 Subject: [PATCH] fora merda --- manifests/params.pp | 35 ----------------------------------- manifests/service.pp | 25 ------------------------- 2 files changed, 60 deletions(-) delete mode 100644 manifests/params.pp delete mode 100644 manifests/service.pp diff --git a/manifests/params.pp b/manifests/params.pp deleted file mode 100644 index 326f6ba..0000000 --- a/manifests/params.pp +++ /dev/null @@ -1,35 +0,0 @@ -class eyplib::params { - - case $::osfamily - { - 'redhat': - { - case $::operatingsystemrelease - { - /^[5-7].*$/: - { - } - default: { fail("Unsupported RHEL/CentOS version! - ${::operatingsystemrelease}") } - } - } - 'Debian': - { - case $::operatingsystem - { - 'Ubuntu': - { - case $::operatingsystemrelease - { - /^14.*$/: - { - } - default: { fail("Unsupported Ubuntu version! - ${::operatingsystemrelease}") } - } - } - 'Debian': { fail('Unsupported') } - default: { fail('Unsupported Debian flavour!') } - } - } - default: { fail('Unsupported OS!') } - } -} diff --git a/manifests/service.pp b/manifests/service.pp deleted file mode 100644 index ca60e15..0000000 --- a/manifests/service.pp +++ /dev/null @@ -1,25 +0,0 @@ -class eyplib::service ( - $manage_service=true, - $manage_docker_service=true, - $ensure ='running', - $enable =true, - ) inherits eyplib::params { - - # - validate_bool($manage_docker_service) - validate_bool($manage_service) - validate_bool($enable) - - validate_re($ensure, [ '^running$', '^stopped$' ], "Not a valid daemon status: ${ensure}") - - if(getvar('::eyp_docker_iscontainer')==undef or - getvar('::eyp_docker_iscontainer')==false or - getvar('::eyp_docker_iscontainer') =~ /false/ or - $manage_docker_service) - { - if($manage_service) - { - #service or exec here - } - } -}