-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.pp
More file actions
125 lines (123 loc) · 3.25 KB
/
base.pp
File metadata and controls
125 lines (123 loc) · 3.25 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package {'git':
ensure=>'present',
provider=>'yum'
} ->
package {'java-1.6.0-openjdk-devel':
ensure=> 'present',
provider=>'yum'
} ->
exec {'set_java_home':
require=>Package['java-1.6.0-openjdk-devel'],
command=>"/bin/echo 'export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64' >> /home/vagrant/.bashrc"
} ->
exec{'move_tool-jar':
path=>['/usr/bin', '/usr/sbin/', '/bin'],
command=>'sudo cp /usr/lib/jvm/java-1.6.0-openjdk.x86_64/lib/tools.jar /usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/ext/'
} ->
package{'ruby':
ensure=>'present',
provider=>'yum'
}->
package{'unzip':
ensure=>'present',
provider=>'yum'
}->
package {'curl':
ensure=>'present',
provider=>'yum'
}
exec {'install_gvm':
cwd=>'/home/vagrant',
command=>"curl -s get.gvmtool.net | bash",
path=>['/usr/bin', '/usr/sbin', '/bin'],
require=> Package['curl']
}->
exec {'source_gvm_init':
provider=>'shell',
cwd=>'/home/vagrant/.gvm/bin',
refreshonly=>true,
command => 'source gvm-init.sh',
}->
package {'rubygems':
ensure=>'present',
provider=>'yum'
}->
package {'sass':
provider=>'gem',
ensure=>'3.1.3',
require=>Package['rubygems']
}->
package{'compass':
provider=>'gem',
ensure=>'0.11.3',
require=>Package['rubygems']
}->
exec {'install_grails_1.3.7':
path=>'/usr/bin/',
cwd=>'/home/vagrant/',
command=>'wget http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-1.3.7.zip',
creates=>'/home/vagrant/grails-1.3.7.zip',
logoutput=>true
}->
exec {'unzip_grails':
cwd=>'/home/vagrant',
command=> '/usr/bin/unzip grails-1.3.7.zip',
creates => '/home/vagrant/grails-1.3.7'
}->
exec {'chmod_grails':
path=>'/bin/',
cwd=>'/home/vagrant/grails-1.3.7/bin',
command=>'chmod u+x grails'
}->
exec {'dl_groovy_1.8':
cwd=> '/opt',
command=> '/usr/bin/wget http://dist.groovy.codehaus.org/distributions/groovy-binary-1.8.9.zip',
creates=> '/opt/groovy-binary-1.8.9.zip',
}->
exec {'unzip_groovy':
cwd=>'/opt',
command=> '/usr/bin/unzip groovy-binary-1.8.9.zip',
creates => '/opt/groovy-1.8.9'
}->
exec {'dl_ant':
cwd=> '/opt',
command=> '/usr/bin/wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.8.3-bin.zip',
creates=> '/opt/apache-ant-1.8.3-bin.zip'
}->
exec {'untar_ant':
cwd=>'/opt',
command=> '/usr/bin/unzip -zxvf apache-ant-1.8.3-bin.zip',
creates => '/opt/apache-ant-1.8.3',
logoutput=>true
}->
package {'ant-contrib':
ensure=>'present',
provider=>'yum'
} ->
exec {'clone_owf':
cwd =>'/home/vagrant',
path => '/usr/bin',
command=>'git clone git://github.com/dmwilliamstech/owf.git',
timeout=>0,
require=>Package['git'],
logoutput=>true,
creates=>'/home/vagrant/owf'
} ->
exec{'change_owf_owner':
cwd=>'/home/vagrant',
path=>['/usr/bin', '/usr/sbin/', '/bin'],
command=>'chown -R vagrant owf'
}->
exec{'cp_ivy_jar':
cwd=>'/home/vagrant/owf/build-libs',
path=>['/usr/bin', '/usr/sbin/', '/bin'],
command=>'cp ivy-2.1.0.jar /usr/share/ant/lib'
}->
exec{'/tmp/vagrant-puppet/manifests/owf_module/exportPath.sh':
path=>['/bin/sh', '/bin/bash'],
command=>'/tmp/vagrant-puppet/manifests/owf_module/exportPath.sh',
} ->
exec {'restart_shell':
path=>['/bin/sh', '/bin/bash', '/usr/bin', '/bin', '/usr/sbin'],
command=>'bash'
}