-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpuppet_dev.pp
42 lines (36 loc) · 1.96 KB
/
puppet_dev.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Package { ensure => "installed" }
$common_packages = [ "tmux", "emacs", "ctags", "git", "ranger", "nmap", "mc", "zsh", "wget", "curl",
"rsync", "htop", "iotop", "lsof", "llvm", "make", "nmon", "autojump", "elinks", "ruby", "python",
"nodejs", "ncdu", "atop", "mosh",
#networking stuff
"nethogs", "nload", "bmon", "wavemon"]
$ubuntu_packages = ["vim-gtk", "ack-grep", "silversearcher-ag", "telnet", "autoconf", "bison", "build-essential",
"libssl-dev", "libyaml-dev", "libreadline6-dev", "zlib1g-dev", "libncurses5-dev",
# Ubuntu specific stuff
"ruby-dev", "npm"]
$debian_packages = $ubuntu_packages
$archgnulinux_packages = ["gvim", "ack", "silver-searcher-git", "inetutils", "base-devel",
#network stuff
"trafshow"]
$fedora_packages = ["vim-X11", "ack-grep", "silversearcher-ag", "telnet", "autoconf", "bison", "build-essential",
"libssl-dev", "libyaml-dev", "libreadline6-dev", "zlib1g-dev", "libncurses5-dev",
# Ubuntu specific stuff
"ruby-dev", "npm"]
case $operatingsystem {
# centos: { $os_specific_packages = "httpd" }
# Note that these matches are case-insensitive.
# redhat: { $os_specific_packages = "httpd" }
debian: { $os_specific_packages = $debian_packages }
ubuntu: { $os_specific_packages = $ubuntu_packages }
fedora: { $os_specific_packages = $fedora_packages }
Archlinux: { $os_specific_packages = $archgnulinux_packages }
default: { fail("Unrecognized operating system $operatingsystem") }
}
package { $common_packages: }
package { $os_specific_packages: }
$gem_packages = ["rake", "bundler", "rails", "pry", "spring", "pry-rails", "pry-nav", "pry-stack_explorer",
"pry-coolline", "bropages"]
package {$gem_packages:
ensure => 'installed',
provider => 'gem',
}