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 - } - } -}