itamae-plugin-recipe-nginx_build 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b75d4b79a1bb893aeb03a62e0731e4aada34b603
4
- data.tar.gz: 7268167d0dc35809ab82a9ef5fa5a395db03e3b5
3
+ metadata.gz: ddf76e85ddac516da9b395b7823fc14a5b221cc3
4
+ data.tar.gz: 0ca8dddcd9a98ba1408b3afcd2dbe0eace415ee2
5
5
  SHA512:
6
- metadata.gz: a551bfb637e8233afaa7c9a2e078b3fceaefef34c67b5c3c94448e494cd20ff7adc9ae02d4fa1f5fd6c6c2ba45c59923d183a7a7acf4e4b2b63eb369132b6767
7
- data.tar.gz: c5cac409991322c39061199f88ff6f2947f94da269b8e21127d526c070102b37741244b3d73a7f1d79eb51327b0ca720c5c141cabe1682792e4ec03db26a344f
6
+ metadata.gz: 0a87fe5126e5e86443168630a352fc00feb06fe9a664882776f6d64d00ba094bbb094ef70e005a17c1aeea34984071e0f55df361b528d0f651219a3b955a5829
7
+ data.tar.gz: 85b6e4c039d63aebb6410745bf87ae923d904e574cb455d2f4e0c36c60a8dba1ce18bef24a4f97d2cafa5c55e1259ee96047c8b58e2181aabbc467d937f1ba20
data/README.md CHANGED
@@ -33,6 +33,7 @@ all parameter is optional.
33
33
 
34
34
  ```yaml
35
35
  nginx_build:
36
+ build_user: ec2-user
36
37
  platform: linux ( or darwin )
37
38
  version: 0.6.4
38
39
  bin: /usr/local/bin/
@@ -31,6 +31,9 @@ nginx_modules3rds = node[:nginx_build][:modules3rds] if node[:nginx_build] && no
31
31
  nginx_version = "1.8.0"
32
32
  nginx_version = node[:nginx_build][:nginx_version] if node[:nginx_build] && node[:nginx_build][:nginx_version]
33
33
 
34
+ build_user = "ec2-user"
35
+ build_user = node[:nginx_build][:build_user] if node[:nginx_build] && node[:nginx_build][:build_user]
36
+
34
37
  if configure_path =~ /^(.+)\/([^\/]+)$/
35
38
  directory $1
36
39
 
@@ -65,9 +68,9 @@ if modules3rd_path =~ /^(.+)\/([^\/]+)$/
65
68
  end
66
69
 
67
70
  execute "build-nginx" do
68
- command "#{nginx_build_bin}nginx-build -d work -v #{nginx_version} -c #{configure_path} -m #{modules3rd_path}"
69
- command "cd ~/work/nginx/#{nginx_version}/nginx-#{nginx_version} && sudo make install"
70
- action :nothing
71
+ command "#{nginx_build_bin}nginx-build -d work -v #{nginx_version} -c #{configure_path} -m #{modules3rd_path} && cd ~/work/nginx/#{nginx_version}/nginx-#{nginx_version} && sudo make install"
72
+ user build_user
73
+ # action :nothing
71
74
  end
72
75
 
73
76
  template "/etc/init.d/nginx" do
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module NginxBuild
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-nginx_build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae