capones_recipes 1.19.1 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 1.20.0
2
+ ======
3
+ * Allow domainless hostnames with up to two dots when looking up FQDN for webserver in DB server grant.
4
+
1
5
  1.19.1
2
6
  ======
3
7
  * Add pessimistic version restriction on capistrano ~> 2.0
@@ -17,7 +17,7 @@ Capistrano::Configuration.instance.load do
17
17
  # TODO: support more than one server
18
18
  web_server = find_servers(:roles => :app).first
19
19
  # lookup fqdn for web servers
20
- fqdn_web_server = `host #{web_server} | cut -f 1 -d ' '`.delete("\n")
20
+ fqdn_web_server = `host -N 2 #{web_server} | cut -f 1 -d ' '`.delete("\n")
21
21
  run "mysql -u root -p #{db_database} -e \"GRANT ALL PRIVILEGES ON #{db_database}.* TO '#{db_username}'@'#{fqdn_web_server}' IDENTIFIED BY '#{db_password}'\"" do |channel, stream, data|
22
22
  if data =~ /^Enter password:/
23
23
  logger.info "#{channel[:host]} asked for password"
@@ -1,3 +1,3 @@
1
1
  module CaponesRecipes
2
- VERSION = "1.19.1"
2
+ VERSION = "1.20.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capones_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.1
4
+ version: 1.20.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-01-10 00:00:00.000000000 Z
13
+ date: 2014-08-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano