Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
bash
Commits
f62ee7dc
Commit
f62ee7dc
authored
Apr 29, 2008
by
mh
Browse files
default bash stuff
parent
ebb5380b
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
f62ee7dc
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment