File tree Expand file tree Collapse file tree 3 files changed +91
-12
lines changed
Expand file tree Collapse file tree 3 files changed +91
-12
lines changed Original file line number Diff line number Diff line change 22 when 'mac_os_x'
33 unless File . exists? ( "/usr/libexec/apache2/mod_jk.so" )
44
5- remote_file "#{ Chef ::Config [ :file_cache_path ] } /tomcat-connectors-1.2.37 -src.tar.gz" do
6- source "http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.37 -src.tar.gz"
5+ remote_file "#{ Chef ::Config [ :file_cache_path ] } /tomcat-connectors-1.2.40 -src.tar.gz" do
6+ source "http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.40 -src.tar.gz"
77 owner node [ 'current_user' ]
88 end
99
1010 execute "extract tomcat-connectors" do
11- command "tar vxzf #{ Chef ::Config [ :file_cache_path ] } /tomcat-connectors-1.2.37 -src.tar.gz -C #{ Chef ::Config [ :file_cache_path ] } /"
11+ command "tar vxzf #{ Chef ::Config [ :file_cache_path ] } /tomcat-connectors-1.2.40 -src.tar.gz -C #{ Chef ::Config [ :file_cache_path ] } /"
1212 user node [ 'current_user' ]
1313 end
1414
1515 execute "symlink Xcode" do
16- command "cd /Applications/Xcode.app/Contents/Developer/Toolchains;sudo ln -s XcodeDefault.xctoolchain OSX10.8 .xctoolchain"
16+ command "cd /Applications/Xcode.app/Contents/Developer/Toolchains;sudo ln -s XcodeDefault.xctoolchain OSX10.10 .xctoolchain"
1717 end
1818
1919 bash "install_program" do
2020 user "root"
21- cwd "#{ Chef ::Config [ :file_cache_path ] } /tomcat-connectors-1.2.37 -src/native"
21+ cwd "#{ Chef ::Config [ :file_cache_path ] } /tomcat-connectors-1.2.40 -src/native"
2222 code <<-EOH
2323 ./configure --with-apxs=/usr/sbin/apxs
2424 make
3636 action :create
3737 recursive true
3838 end
39+
40+ template "/etc/apache2/other/000-modjk.conf" do
41+ source "apache/jk.conf.erb"
42+ end
3943 when 'debian'
4044 Chef ::Log . debug ( "This recipe is OSX only" )
4145end
Original file line number Diff line number Diff line change 7878 not_if do ::File . exists? ( "#{ dblocation } /.grant-postgresql-skylab-user-success" ) end
7979end
8080
81- # git "/opt/skylab" do
82- # repository "https://github.com/Kunstmaan/skylab.git"
83- # user node['current_user']
84- # reference "master"
85- # enable_checkout false
86- # action :sync
87- # end
81+ git "/opt/skylab" do
82+ repository "https://github.com/Kunstmaan/skylab.git"
83+ user node [ 'current_user' ]
84+ reference "master"
85+ enable_checkout false
86+ action :sync
87+ end
8888
8989execute "get-skylab" do
9090 user node [ 'current_user' ]
9595 cwd "/usr/local/bin/"
9696 command "mv skylab.phar /usr/local/bin/skylab"
9797end
98+
99+ link '/opt/jdk/default' do
100+ to '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home'
101+ user 'root'
102+ end
103+
104+ template "/etc/skylab.yml" do
105+ source "skylab.yml.erb"
106+ end
Original file line number Diff line number Diff line change 1+ projects:
2+ path: "/home/projects"
3+ backuppath: "/home/backupped-projects"
4+
5+ users:
6+ superuser: root
7+ supergroup: root
8+ wwwuser: nginx
9+ postgresuser: postgres
10+
11+ apache:
12+ admin: support@kunstmaan.be
13+ vhostdir: /etc/apache2/conf/projects.d
14+
15+ nginx:
16+ sitesavailable: /etc/nginx/sites-available
17+ sitesenabled: /etc/nginx/sites-enabled
18+ port: 80
19+
20+ webserver:
21+ engine: apache
22+ hostmachine: dev.kunstmaan.be
23+
24+ php:
25+ slowlog_timeout: 10s
26+
27+ awstats:
28+ password: password
29+
30+ mysql:
31+ user: root
32+ password: password
33+
34+ postgresql:
35+ user: skylab
36+ password: password
37+
38+ pingdom:
39+ username:
40+ password:
41+ token:
42+ contactids:
43+
44+ skeletons:
45+ base: Kunstmaan\Skylab\Skeleton\BaseSkeleton
46+ mysql: Kunstmaan\Skylab\Skeleton\MySQLSkeleton
47+ apache: Kunstmaan\Skylab\Skeleton\WebserverSkeleton
48+ nginx: Kunstmaan\Skylab\Skeleton\WebserverSkeleton
49+ php5: Kunstmaan\Skylab\Skeleton\PHPSkeleton
50+ symfony: Kunstmaan\Skylab\Skeleton\SymfonySkeleton
51+ awstats: false # with varnish this is useless
52+ anacron: Kunstmaan\Skylab\Skeleton\AnacronSkeleton
53+ fcron: false # We only support anacron at this point
54+ logrotate: false # Full functionality has been replaced by the Skylab chef cookbook
55+ nagios: false # We no longer use Nagios to monitor our websites
56+ mon: false # We no longer use Mon to monitor our websites
57+ pingdom: Kunstmaan\Skylab\Skeleton\PingdomSkeleton
58+ postgres: Kunstmaan\Skylab\Skeleton\PostgreSQLSkeleton
59+ tomcat: Kunstmaan\Skylab\Skeleton\TomcatSkeleton
60+ smartcms: Kunstmaan\Skylab\Skeleton\JavaSkeleton
61+ mongo: false
62+ dailycron: false
63+ solr: false
64+
65+ debug: true
66+ develmode: true
You can’t perform that action at this time.
0 commit comments