Commit 0e8b326b authored by mh's avatar mh

refactor things for >2.7

parent 22190565
......@@ -6,18 +6,18 @@
# Marcel Härry haerry+puppet(at)puzzle.ch
# Simon Josi josi+puppet(at)puzzle.ch
#
# This program is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License version 3 as published by
# This program is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License version 3 as published by
# the Free Software Foundation.
#
class bash {
case $operatingsystem {
case $::operatingsystem {
openbsd: { include bash::openbsd }
centos: { include bash::centos }
default: {
case $kernel {
case $::kernel {
linux: { include bash::linux }
default: { include bash::base }
}
......
......@@ -2,16 +2,15 @@ define bash::profile(
$source,
$destination = '/root/.bash_profile',
$uid = root,
$gid = 0
$gid = 0
){
file {$name:
path => $destination,
source => [
"puppet:///modules/site-bash/${fqdn}/${source}",
"puppet:///modules/site-bash/${source}",
"puppet:///modules/bash/module/${source}",
source => [
"puppet:///modules/site_bash/${::fqdn}/${source}",
"puppet:///modules/site_bash/${source}",
"puppet:///modules/bash/${source}"
],
owner => $uid, group => $gid, mode => 600;
}
}
}
class bash::timeout {
include bash
case $operatingsystem{
case $::operatingsystem{
debian: { include bash::timeout::debian }
default: { include bash::timeout::base }
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment