Commit f62ee7dc authored by mh's avatar mh

default bash stuff

parent ebb5380b
......@@ -5,27 +5,44 @@
#modules_dir { "bash": }
class bash {
case $operatingsystem {
openbsd: { include bash::openbsd }
centos: { include bash::centos }
default: { include bash::base }
}
}
case $operatingsystem {
OpenBSD: {
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',
require => Package[libiconv],
}
package { 'bash':
ensure => 'present',
source => 'ftp://mirror.switch.ch/pub/OpenBSD/4.2/packages/i386/bash-3.2.17.tgz',
require => Package[gettext],
}
}
}
class bash::base {
package{bash:
ensure => present,
}
}
class bash::centos inherits bash::base {
package{'bash-completion':
ensure => present,
}
}
class bash::openbsd inherits bash::base {
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',
require => Package[libiconv],
}
Package[bash]{
source => 'ftp://mirror.switch.ch/pub/OpenBSD/4.2/packages/i386/bash-3.2.17.tgz',
require => Package[gettext],
}
bash::deploy_profile{bash_profile_root: source => 'openbsd' }
}
define bash::deploy_profile(
......
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