Skip to content
GitLab
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
b0420ff5
Commit
b0420ff5
authored
May 11, 2009
by
Marcel Haerry
Browse files
merged with immerda
parents
d72d18db
a4b31c9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
files/centos
0 → 100644
View file @
b0420ff5
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
files/openbsd
View file @
b0420ff5
export PKG_PATH=ftp://mirror.switch.ch/pub/OpenBSD/`uname -r`/packages/`uname -m`
export PS1="`hostname -s`$ "
export PS1="[\u@\h \W]\$ "
manifests/init.pp
View file @
b0420ff5
...
...
@@ -12,8 +12,6 @@
# the Free Software Foundation.
#
#modules_dir { "bash": }
class
bash
{
case
$operatingsystem
{
openbsd
:
{
include
bash::openbsd
}
...
...
@@ -30,27 +28,25 @@ class bash::base {
class
bash::centos
inherits
bash::base
{
package
{
'bash-completion'
:
package
{
[
'bash-completion'
,
'rootfiles'
]:
ensure
=>
present
,
}
bash::deploy_profile
{
bash_profile_root
:
source
=>
'centos'
}
include
bash::timeout
}
class
bash::openbsd
inherits
bash::base
{
package
{
'libiconv'
:
ensure
=>
present
,
}
package
{
'
libiconv
'
:
ensure
=>
'
present
'
,
source
=>
'ftp://mirror.switch.ch/pub/OpenBSD/4.2/packages/i386/libiconv-1.9.2p3.tgz'
}
package
{
'
gettext
'
:
ensure
=>
present
,
require
=>
Package
[
libiconv
],
}
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
]{
s
o
ur
c
e
=>
'ftp://mirror.switch.ch/pub/OpenBSD/4.2/packages/i386/bash-3.2.17.tgz'
,
en
sure
=>
present
,
require
=>
Package
[
gettext
],
}
bash::deploy_profile
{
bash_profile_root
:
source
=>
'openbsd'
}
...
...
@@ -59,15 +55,19 @@ class bash::openbsd inherits bash::base {
define
bash::deploy_profile
(
$source
,
$destination
=
'/root/.bash_profile'
,
$uid
=
'
root
'
,
$gid
=
'0'
){
$uid
=
root
,
$gid
=
0
){
file
{
$name
:
file
{
$name
:
path
=>
$destination
,
owner
=>
$uid
,
group
=>
$gid
,
mode
=>
600
,
source
=>
"puppet://
$server
/bash/
${source}
"
,
source
=>
[
"puppet://
$server
/files/bash/
${fqdn}
/
${source}
"
,
"puppet://
$server
/files/bash/
${source}
"
,
"puppet://
$server
/bash/module/
${source}
"
,
"puppet://
$server
/bash/
${source}
"
],
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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