-
-
Save d3zorg/5adea414a3dac5ca7f99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install soft | |
$soft = ['wget', 'curl', 'zsh', 'cowsay', 'fortune', 'strace', | |
'sudo', 'mc', 'make', 'gcc', 'tree', 'ntpdate', 'dh-make', | |
'debhelper', 'devscripts', 'fakeroot', 'openjdk-7-jdk', 'git', | |
'storm', 'vim', 'md5deep', 'dpkg', 'debconf', 'lintian'] | |
apt::source { 'edisoft': | |
location => 'http://10.20.20.75:8080/static/edisoft', | |
release => 'wheezy', | |
repos => 'main', | |
key => 'D5EFD011', | |
key_source => "http://10.20.20.75:8080/static/edisoft/conf/edisoft.gpg", | |
include_src => false, | |
}-> | |
package { $soft: | |
ensure => "installed", | |
}-> | |
file { "/home/$user/.storm/": | |
ensure => directory, | |
owner => "$user", | |
group => "$user", | |
mode => "755", | |
}-> | |
file { "/home/$user/.storm/storm.yaml": | |
owner => "$user", | |
group => "$user", | |
ensure => file, | |
content => 'nimbus.host: | |
\"10.20.20.82\"\ndrpc.servers:\n - | |
\"10.20.20.82\"', | |
} | |
exec { 'rvm-install': | |
command => 'curl -sSL https://get.rvm.io | bash', | |
path => [ '/bin', '/usr/bin', '/usr/local/bin' ], | |
logoutput => 'true', | |
user => "$user", | |
} | |
#install diffmerge | |
exec {"download_diffmerge": | |
command => "wget http://download-us.sourcegear.com/DiffMerge/4.2.0/diffmerge_4.2.0.697.stable_amd64.deb", | |
cwd => '/tmp', | |
path => "/usr/bin" | |
} -> | |
package {"install diffmerge_4.2.0.697.stable_amd64.deb": | |
ensure => "installed", | |
provider => dpkg, | |
source => '/tmp/diffmerge_4.2.0.697.stable_amd64.deb', | |
} | |
#install ideaIC | |
exec {"download_ideaIC": | |
command => "/usr/bin/wget http://download.jetbrains.com/idea/ideaIC-13.1.1.tar.gz", | |
cwd => '/tmp', | |
} -> | |
exec {"unpack_ideaIC": | |
command => "tar -xvf /tmp/ideaIC-13.1.1.tar.gz", | |
cwd => '/opt', | |
path => "/bin", | |
} | |
#config storm | |
#$nimbus_host_ip = '10.20.20.82' | |
# host { 'coordinator': | |
# ip => $nimbus_host_ip, | |
# } | |
# user { "storm": | |
# ensure => "present", | |
# managehome => true, | |
# } -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facter.add("user") do | |
setcode do | |
Facter::Util::Resolution.exec("/usr/bin/who | /bin/grep ':0' | /usr/bin/cut -d ' ' -f1 | /usr/bin/head -1") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment