freighthop 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/data/common.json CHANGED
@@ -2,5 +2,6 @@
2
2
  "classes": ["freighthop"],
3
3
  "freighthop::ppas": [],
4
4
  "freighthop::packages": ["build-essential", "git"],
5
- "freighthop::languages": []
5
+ "freighthop::languages": [],
6
+ "freighthop::web::apache::passenger_app_env": "development"
6
7
  }
@@ -1,3 +1,3 @@
1
1
  module Freighthop
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -1,7 +1,14 @@
1
1
  define freighthop::database::mysql::grant(
2
- $user
2
+ $user = $title,
3
3
  ) {
4
- mysql_grant { "freighthop_mysql_grant_for_${user}":
4
+ mysql_grant { "freighthop_mysql_grant_for_${user}_localhost":
5
+ ensure => 'present',
6
+ options => ['GRANT'],
7
+ privileges => ['ALL'],
8
+ table => '*.*',
9
+ user => "${user}@localhost",
10
+ }
11
+ mysql_grant { "freighthop_mysql_grant_for_${user}_external":
5
12
  ensure => 'present',
6
13
  options => ['GRANT'],
7
14
  privileges => ['ALL'],
@@ -3,6 +3,7 @@ class freighthop::web::apache(
3
3
  $ssl_cert_path,
4
4
  $ssl_key_path,
5
5
  $server_name,
6
+ $passenger_app_env,
6
7
  $port = $freighthop::params::http_port,
7
8
  $ssl_port = $freighthop::params::https_port,
8
9
  $upstream_port = $freighthop::params::upstream_port,
@@ -7,6 +7,12 @@
7
7
  # Points to the ruby interpreter that will be used to run applications
8
8
  PassengerDefaultRuby /home/vagrant/.rbenv/shims/ruby
9
9
 
10
+ # Passenger will run as vagrant, where rbenv is installed
11
+ PassengerDefaultUser vagrant
12
+
13
+ # Set the rack/rails environment
14
+ PassengerAppEnv <%= @passenger_app_env %>
15
+
10
16
  # Send uploads directly to Rack application without buffering them first.
11
17
  # Allows application to deal in streams for large uploads.
12
18
  # Requires Passenger 4.0.26 or higher; defaults to Off
@@ -1,7 +1,14 @@
1
1
  define freighthop::database::mysql::grant(
2
- $user
2
+ $user = $title,
3
3
  ) {
4
- mysql_grant { "freighthop_mysql_grant_for_${user}":
4
+ mysql_grant { "freighthop_mysql_grant_for_${user}_localhost":
5
+ ensure => 'present',
6
+ options => ['GRANT'],
7
+ privileges => ['ALL'],
8
+ table => '*.*',
9
+ user => "${user}@localhost",
10
+ }
11
+ mysql_grant { "freighthop_mysql_grant_for_${user}_external":
5
12
  ensure => 'present',
6
13
  options => ['GRANT'],
7
14
  privileges => ['ALL'],
@@ -3,6 +3,7 @@ class freighthop::web::apache(
3
3
  $ssl_cert_path,
4
4
  $ssl_key_path,
5
5
  $server_name,
6
+ $passenger_app_env,
6
7
  $port = $freighthop::params::http_port,
7
8
  $ssl_port = $freighthop::params::https_port,
8
9
  $upstream_port = $freighthop::params::upstream_port,
@@ -7,6 +7,12 @@
7
7
  # Points to the ruby interpreter that will be used to run applications
8
8
  PassengerDefaultRuby /home/vagrant/.rbenv/shims/ruby
9
9
 
10
+ # Passenger will run as vagrant, where rbenv is installed
11
+ PassengerDefaultUser vagrant
12
+
13
+ # Set the rack/rails environment
14
+ PassengerAppEnv <%= @passenger_app_env %>
15
+
10
16
  # Send uploads directly to Rack application without buffering them first.
11
17
  # Allows application to deal in streams for large uploads.
12
18
  # Requires Passenger 4.0.26 or higher; defaults to Off
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freighthop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-14 00:00:00.000000000 Z
12
+ date: 2014-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler