Skip to content

Commit

Permalink
Add metadata describing archive paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nephomaniac committed Apr 6, 2016
1 parent 989ce11 commit e4c12d4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipes/create_beachhead_archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
sandbox_dir = node['beachhead']['dependency_sandbox_dir']
archive_name = node['beachhead']['dependency_archive_name']
archive_path = File.join(sandbox_dir, archive_name)
rpm_subdir = node['beachhead']['rpm_subdir']
python_subdir = node['beachhead']['python_subdir']
metadata_path = File.join(sandbox_dir, 'beachhead_metadata')

template metadata_path do
source "beachhead_metadata.erb"
action :create
variables({ :python_subdir => python_subdir,
:rpm_subdir => rpm_subdir
})
end

yum_package "tar" do
action :install
Expand Down
2 changes: 2 additions & 0 deletions templates/default/beachhead_metadata.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rpm_subdir = <%= @rpm_subdir%>
python_subdir = <%= @python_subdir%>
26 changes: 26 additions & 0 deletions templates/default/euca_beach_head_web.conf.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<VirtualHost *:80>
ServerName <%= node['hostname'] %>

DocumentRoot <%= node['beachhead']["httpd"]["docroot"] %>
<Directory <%= node['beachhead']['dependency_sandbox_dir'] %> >
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory <%= node['beachhead']["httpd"]["docroot"] %> >
Options Indexes FollowSymLinks MultiViews
AllowOverride None
</Directory>

ErrorLog /var/log/httpd/error.log

LogLevel debug

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
CustomLog /var/log/httpd/access.log combined

ServerSignature Off

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php index.html
</VirtualHost>

0 comments on commit e4c12d4

Please sign in to comment.