Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed May 11, 2015
2 parents 7f911a0 + a70bbeb commit 2eeb6f3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Vagrant.require_version '>= 1.5'

Vagrant.configure(2) do |config|

vccw_version = '2.8.2';

_conf = YAML.load(
File.open(
File.join(File.dirname(__FILE__), 'provision/default.yml'),
Expand Down Expand Up @@ -139,6 +141,7 @@ Vagrant.configure(2) do |config|
:rewrite_structure => _conf['rewrite_structure']
},
:vccw => {
:version => vccw_version,
:wordmove => {
:movefile => File.join('/vagrant', 'Movefile'),
:url => 'http://' << File.join(_conf['hostname'], _conf['wp_home']),
Expand Down
12 changes: 12 additions & 0 deletions provision/site-cookbooks/vccw/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,15 @@
)
action :create_if_missing
end

# Generate Banner
template "/etc/motd" do
source "motd.erb"
owner "root"
group "root"
mode "0644"
variables(
:version => node[:vccw][:version]
)
action :create
end
18 changes: 18 additions & 0 deletions provision/site-cookbooks/vccw/templates/default/motd.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
___ ___ ___
___ / /\ / /\ /__/\
/__/\ / /:/ / /:/ _\_ \:\
\ \:\ / /:/ / /:/ /__/\ \:\
\ \:\ / /:/ ___ / /:/ ___ _\_ \:\ \:\
___ \__\:\ /__/:/ / /\ /__/:/ / /\ /__/\ \:\ \:\
/__/\ | |:| \ \:\ / /:/ \ \:\ / /:/ \ \:\ \:\/:/
\ \:\| |:| \ \:\ /:/ \ \:\ /:/ \ \:\ \::/
\ \:\__|:| \ \:\/:/ \ \:\/:/ \ \:\/:/
\__\::::/ \ \::/ \ \::/ \ \::/
~~~~ \__\/ \__\/ \__\/

VCCW v<%= @version %>
http://vccw.cc/

Initial code by Takayuki Miyauchi.
https://github.com/miya0001

0 comments on commit 2eeb6f3

Please sign in to comment.