init.pp 739 Bytes
Newer Older
mh's avatar
mh committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# modules/bash/manifests/init.pp - manage bash stuff
# Copyright (C) 2007 admin@immerda.ch
#

modules_dir { "bash": }

class bash {

        case $operatingsystem {
                OpenBSD: {
			 package { 'bash':
		                ensure => 'present',
		                source => 'ftp://mirror.switch.ch/pub/OpenBSD/4.2/packages/i386/bash-3.2.17.tgz',
        		}
                }
        }
}

mh's avatar
mh committed
19
define bash::deploy_profile( 
mh's avatar
mh committed
20
21
22
23
24
25
26
27
28
29
30
31
32
	$source, 
	$destination = '/root/.bash_profile',
	$uid    = 'root',
        $gid    = '0' ){

        file {$name:
                path => $target,
                owner => $uid,
                group => $gid,
                mode => 600,
                source => "puppet://$server/bash/${source}",
        }
}