init.pp 1.08 KB
Newer Older
mh's avatar
mh committed
1
2
3
4
5
6
7
8
9
10
# modules/bash/manifests/init.pp - manage bash stuff
# Copyright (C) 2007 admin@immerda.ch
#

modules_dir { "bash": }

class bash {

        case $operatingsystem {
                OpenBSD: {
mh's avatar
mh committed
11

mh's avatar
mh committed
12
13
14
15
16
17
18
19
			 package{'libiconv':
				ensure => 'present',
				source => 'ftp://mirror.switch.ch/pub/OpenBSD/4.2/packages/i386/libiconv-1.9.2p3.tgz'
			 }

			 package {'gettext':
				ensure => 'present',
				source => 'ftp://mirror.switch.ch/pub/OpenBSD/4.2/packages/i386/gettext-0.14.6p0.tgz',
mh's avatar
mh committed
20
				require => Package[libiconv],
mh's avatar
mh committed
21
			 }
mh's avatar
mh committed
22
23
			 package { 'bash':
		                ensure => 'present',
mh's avatar
mh committed
24
		                source => 'ftp://mirror.switch.ch/pub/OpenBSD/4.2/packages/i386/bash-3.2.17.tgz',
mh's avatar
mh committed
25
				require => Package[gettext],
mh's avatar
mh committed
26
27
28
29
30
        		}
                }
        }
}

mh's avatar
mh committed
31
define bash::deploy_profile( 
mh's avatar
mh committed
32
33
34
35
36
37
	$source, 
	$destination = '/root/.bash_profile',
	$uid    = 'root',
        $gid    = '0' ){

        file {$name:
mh's avatar
mh committed
38
                path => $destination,
mh's avatar
mh committed
39
40
41
42
43
44
                owner => $uid,
                group => $gid,
                mode => 600,
                source => "puppet://$server/bash/${source}",
        }
}