mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Updated Vagrantfile to support Vagrant 1.1.2 - you will probably need to download
Vagrant again! http://downloads.vagrantup.com/
This commit is contained in:
@@ -5,6 +5,5 @@ site 'http://community.opscode.com/api/v1'
|
||||
|
||||
cookbook 'apt'
|
||||
cookbook 'vim'
|
||||
cookbook 'phantomjs'
|
||||
cookbook 'build-essential'
|
||||
cookbook 'omnibus_updater'
|
||||
|
||||
@@ -4,13 +4,11 @@ SITE
|
||||
apt (1.8.4)
|
||||
build-essential (1.3.4)
|
||||
omnibus_updater (0.1.2)
|
||||
phantomjs (0.0.10)
|
||||
vim (1.0.2)
|
||||
|
||||
DEPENDENCIES
|
||||
apt (>= 0)
|
||||
build-essential (>= 0)
|
||||
omnibus_updater (>= 0)
|
||||
phantomjs (>= 0)
|
||||
vim (>= 0)
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
phantomjs CHANGELOG
|
||||
===================
|
||||
|
||||
v.0.0.6
|
||||
-------
|
||||
- Initial CHANGELOG created
|
||||
@@ -1,27 +0,0 @@
|
||||
phantomjs Cookbook
|
||||
==================
|
||||
[](http://travis-ci.org/customink-webops/phantomjs)
|
||||
|
||||
Installs the phantomjs cookbook and necessary packages. This repository also features a full test suite!
|
||||
|
||||
Attributes
|
||||
----------
|
||||
- `default['phantomjs']['version']` - the version number to install
|
||||
|
||||
Contributing
|
||||
------------
|
||||
1. Fork the project
|
||||
2. Create a feature branch (i.e. `add_feature_x`)
|
||||
3. Make your changes
|
||||
4. Write or change specs as necessary
|
||||
5. Ensure the specs pass:
|
||||
|
||||
$ bundle exec rspec
|
||||
|
||||
6. Submit a pull request on github
|
||||
|
||||
License and Authors
|
||||
-------------------
|
||||
Author: [Seth Vargo](https://github.com/sethvargo)
|
||||
|
||||
Copyright 2012, CustomInk, LLC
|
||||
@@ -1,3 +0,0 @@
|
||||
default['phantomjs'] = {
|
||||
'version' => '1.7.0'
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
{
|
||||
"name": "phantomjs",
|
||||
"description": "Installs/Configures phantomjs",
|
||||
"long_description": "phantomjs Cookbook\n==================\n[](http://travis-ci.org/customink-webops/phantomjs)\n\nInstalls the phantomjs cookbook and necessary packages. This repository also features a full test suite!\n\nAttributes\n----------\n- `default['phantomjs']['version']` - the version number to install\n\nContributing\n------------\n1. Fork the project\n2. Create a feature branch (i.e. `add_feature_x`)\n3. Make your changes\n4. Write or change specs as necessary\n5. Ensure the specs pass:\n\n $ bundle exec rspec\n\n6. Submit a pull request on github\n\nLicense and Authors\n-------------------\nAuthor: [Seth Vargo](https://github.com/sethvargo)\n\nCopyright 2012, CustomInk, LLC\n",
|
||||
"maintainer": "CustomInk",
|
||||
"maintainer_email": "webops@customink.com",
|
||||
"license": "Apache 2.0",
|
||||
"platforms": {
|
||||
"amazon": ">= 0.0.0",
|
||||
"centos": ">= 0.0.0",
|
||||
"debian": ">= 0.0.0",
|
||||
"fedora": ">= 0.0.0",
|
||||
"oracle": ">= 0.0.0",
|
||||
"rhel": ">= 0.0.0",
|
||||
"scientific": ">= 0.0.0",
|
||||
"ubuntu": ">= 0.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
},
|
||||
"recommendations": {
|
||||
},
|
||||
"suggestions": {
|
||||
},
|
||||
"conflicting": {
|
||||
},
|
||||
"providing": {
|
||||
},
|
||||
"replacing": {
|
||||
},
|
||||
"attributes": {
|
||||
"version": {
|
||||
"display_name": "Version",
|
||||
"description": "The Version of phantomjs to install",
|
||||
"default": "1.7.0",
|
||||
"choice": [
|
||||
|
||||
],
|
||||
"calculated": false,
|
||||
"type": "string",
|
||||
"required": "optional",
|
||||
"recipes": [
|
||||
|
||||
]
|
||||
}
|
||||
},
|
||||
"groupings": {
|
||||
},
|
||||
"recipes": {
|
||||
"phantomjs::default": "Install phantomjs binary"
|
||||
},
|
||||
"version": "0.0.10"
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
name 'phantomjs'
|
||||
maintainer 'CustomInk'
|
||||
maintainer_email 'webops@customink.com'
|
||||
license 'Apache 2.0'
|
||||
description 'Installs/Configures phantomjs'
|
||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
version '0.0.10'
|
||||
|
||||
recipe 'phantomjs::default', 'Install phantomjs binary'
|
||||
|
||||
%w(amazon centos debian fedora oracle rhel scientific ubuntu).each do |os|
|
||||
supports os
|
||||
end
|
||||
|
||||
attribute 'version',
|
||||
:display_name => 'Version',
|
||||
:description => 'The Version of phantomjs to install',
|
||||
:default => '1.7.0'
|
||||
@@ -1,52 +0,0 @@
|
||||
#
|
||||
# Cookbook Name:: phantomjs
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright 2012, CustomInk
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# Packages
|
||||
case node['platform_family']
|
||||
when 'debian'
|
||||
%w(fontconfig libfreetype6).each do |package|
|
||||
package package
|
||||
end
|
||||
when 'fedora','rhel'
|
||||
%w(fontconfig freetype).each do |package|
|
||||
package package
|
||||
end
|
||||
end
|
||||
|
||||
basename = "phantomjs-#{node['phantomjs']['version']}-linux-#{node['kernel']['machine']}"
|
||||
|
||||
# Download the tarball
|
||||
remote_file "/usr/local/src/#{basename}.tar.bz2" do
|
||||
action :create_if_missing
|
||||
backup false
|
||||
mode '0644'
|
||||
checksum node['phantomjs']['checksum'] if node['phantomjs']['checksum']
|
||||
source "https://phantomjs.googlecode.com/files/#{basename}.tar.bz2"
|
||||
end
|
||||
|
||||
# Install phantomjs
|
||||
execute 'Install phantomjs' do
|
||||
command "tar -xvjf /usr/local/src/#{basename}.tar.bz2 -C /usr/local/"
|
||||
not_if "test -d /usr/local/#{basename}"
|
||||
end
|
||||
|
||||
# Set up the symbolic link
|
||||
link '/usr/local/bin/phantomjs' do
|
||||
to "/usr/local/#{basename}/bin/phantomjs"
|
||||
end
|
||||
Reference in New Issue
Block a user