Last active
August 29, 2015 14:01
-
-
Save bavadim/49b41873dd6c767f9b89 to your computer and use it in GitHub Desktop.
Puppet manifest for setup developer environment
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/vadim/.storm/": | |
ensure => directory, | |
owner => "vadim", | |
group => "vadim", | |
mode => "755", | |
}-> | |
file { "/home/vadim/.storm/storm.yaml": | |
owner => "vadim", | |
group => "vadim", | |
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 => "vadim", | |
} | |
#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, | |
# } -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment