propro 0.4.2 → 0.4.3

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: 2c6717883ed5d6aa6b1b84699959f6a9a29df5e4
4
- data.tar.gz: 23b26e30d0cce9ecc404a814cb9f7d1c6c6eb5c1
3
+ metadata.gz: 5c502589f40be1481a47fcfe531c1cb52cabd254
4
+ data.tar.gz: 471c29f3c8dd302cfd62fe46de730b86f52dce1f
5
5
  SHA512:
6
- metadata.gz: d38596eeb7ea5bad0ad17c07a5ee48fced95cf269e145175f719c144ec40581bef0edf4901bce6973ad39e914121ec86884cd3ca9142572412cccac56b9fd4b1
7
- data.tar.gz: 138ec684c4b04153eb2ef9783596de1bef9dc8af685961ddec3ad803b7effb9ba6b48e202d5aa82c4ab4d3454b1e622f04712f7da9fdc140e40ce3993299de7f
6
+ metadata.gz: 1bbaf3c00f4dfc501af427bddc3f4c4357995c86549eed9f3a5c0ca5173ad01201d6689b49e9f3735b8cbb20d109d6b131fcfb60e098094c0ff7f4230d4211a5
7
+ data.tar.gz: 835a703fe482208a1be310fcc632c3b61c443f73732ce1dbe28c00e9a0f6f0ae4ffa7c7fa0b2f3ed7a4761d32a3fa191916f1a6dcee003664392c1de02bca029
data/ext/bash/app/rvm.sh CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # requires app.sh
3
- export APP_RVM_RUBY_VERSION="2.0.0" # @specify
3
+ export APP_RVM_RUBY_VERSION="2.1.1" # @specify
4
4
 
5
5
  function provision-app-rvm {
6
6
  rvm-install-for-user $APP_USER $APP_RVM_RUBY_VERSION
@@ -17,8 +17,8 @@ stop on runlevel [06]
17
17
  env APP_SIDEKIQ_CONF="$APP_SIDEKIQ_CONF_FILE"
18
18
 
19
19
  pre-start script
20
- for i in `cat \$APP_SIDEKIQ_CONF`; do
21
- app=`echo \$i | cut -d , -f 1`
20
+ for i in \`cat \$APP_SIDEKIQ_CONF_FILE\`; do
21
+ app=\`echo \$i | cut -d , -f 1\`
22
22
  logger -t "sidekiq-manager" "Starting \$app"
23
23
  start sidekiq app=\$app
24
24
  done
@@ -41,7 +41,7 @@ exec /bin/bash <<EOTT
41
41
  source \$HOME/.rvm/scripts/rvm
42
42
  logger -t sidekiq "Starting worker: \$app"
43
43
  cd \$app
44
- exec bundle exec sidekiq -C $APP_SIDEKIQ_CONFIG_FILE_RELATIVE -P $APP_SIDEKIQ_PID_FILE_RELATIVE
44
+ exec bundle exec sidekiq -e $APP_ENV -C $APP_SIDEKIQ_CONFIG_FILE_RELATIVE -P $APP_SIDEKIQ_PID_FILE_RELATIVE
45
45
  EOTT
46
46
  end script
47
47
 
data/ext/bash/app.sh CHANGED
@@ -27,8 +27,8 @@ function get-app-shared-sockets-dir {
27
27
  echo "$(get-app-shared-dir)/sockets"
28
28
  }
29
29
 
30
- function get-app-config-dir {
31
- echo "$(get-app-dir)/config"
30
+ function get-app-shared-config-dir {
31
+ echo "$(get-app-shared-dir)/config"
32
32
  }
33
33
 
34
34
  function get-app-current-dir {
@@ -75,7 +75,7 @@ function app-create-dirs {
75
75
  app-mkdir "$APPS_DIR"
76
76
  app-mkdir "$(get-app-dir)"
77
77
  app-mkdir "$(get-app-releases-dir)"
78
- app-mkdir "$(get-app-config-dir)"
78
+ app-mkdir "$(get-app-shared-config-dir)"
79
79
  app-mkdir "$(get-app-shared-dir)"
80
80
  app-mkdir "$(get-app-shared-tmp-dir)"
81
81
  app-mkdir "$(get-app-shared-log-dir)"
@@ -7,9 +7,17 @@ export FFMPEG_VERSION="git" # @specify (or a version to download: "2.1.4")
7
7
  export FFMPEG_YASM_VERSION="1.2.0"
8
8
  export FFMPEG_XVID_VERSION="1.3.2"
9
9
 
10
- FFMPEG_URL="http://ffmpeg.org/releases/ffmpeg-$FFMPEG_VERSION.tar.gz"
11
- FFMPEG_YASM_URL="http://www.tortall.net/projects/yasm/releases/yasm-$FFMPEG_YASM_VERSION.tar.gz"
12
- FFMPEG_XVID_URL="http://downloads.xvid.org/downloads/xvidcore-$FFMPEG_XVID_VERSION.tar.gz"
10
+ function get-ffmpeg-url {
11
+ echo "http://ffmpeg.org/releases/ffmpeg-$FFMPEG_VERSION.tar.gz"
12
+ }
13
+
14
+ function get-ffmpeg-yasm-url {
15
+ echo "http://www.tortall.net/projects/yasm/releases/yasm-$FFMPEG_YASM_VERSION.tar.gz"
16
+ }
17
+
18
+ function get-ffmpeg-xvid-url {
19
+ echo "http://downloads.xvid.org/downloads/xvidcore-$FFMPEG_XVID_VERSION.tar.gz"
20
+ }
13
21
 
14
22
  function ffmpeg-install {
15
23
  local tmpdir=$(get-tmp-dir)
@@ -23,7 +31,7 @@ function ffmpeg-install {
23
31
 
24
32
  announce-item "Yasm"
25
33
  announce-item "> Download"
26
- download $FFMPEG_YASM_URL
34
+ download $(get-ffmpeg-yasm-url)
27
35
 
28
36
  announce-item "> Extract"
29
37
  extract yasm-$FFMPEG_YASM_VERSION.tar.gz
@@ -58,7 +66,7 @@ function ffmpeg-install {
58
66
 
59
67
  announce-item "Xvid"
60
68
  announce-item "> Download"
61
- download $FFMPEG_XVID_URL
69
+ download $(get-ffmpeg-xvid-url)
62
70
 
63
71
  announce-item "> Extract"
64
72
  extract xvidcore-$FFMPEG_XVID_VERSION.tar.gz
@@ -79,7 +87,7 @@ function ffmpeg-install {
79
87
  git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
80
88
  cd ffmpeg
81
89
  else
82
- download $FFMPEG_URL
90
+ download $(get-ffmpeg-url)
83
91
 
84
92
  announce "Extract"
85
93
  extract ffmpeg-$FFMPEG_VERSION.tar.gz
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- export NGINX_VERSION="1.4.7" # @specify
2
+ export NGINX_VERSION="1.6.0" # @specify
3
3
  export NGINX_USER="nginx"
4
4
  export NGINX_CONFIGURE_OPTS="--with-http_ssl_module --with-http_gzip_static_module" # @specify
5
5
  export NGINX_CONF_FILE="/etc/nginx.conf"
@@ -17,6 +17,10 @@ export NGINX_WORKER_CONNECTIONS="2000" # @specify
17
17
  NGINX_SITES_DIR="$NGINX_ETC_DIR/sites"
18
18
  NGINX_CONF_DIR="$NGINX_ETC_DIR/conf"
19
19
 
20
+ function get-nginx-url {
21
+ echo "http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz"
22
+ }
23
+
20
24
  function nginx-install {
21
25
  local tmpdir=$(get-tmp-dir)
22
26
  cd "$tmpdir"
@@ -24,7 +28,7 @@ function nginx-install {
24
28
  install-packages $NGINX_DEPENDENCIES
25
29
 
26
30
  announce "Download $NGINX_VERSION"
27
- download http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz
31
+ download $(get-nginx-url)
28
32
 
29
33
  announce "Extract"
30
34
  extract nginx-$NGINX_VERSION.tar.gz
data/ext/bash/lib/pg.sh CHANGED
@@ -4,9 +4,12 @@ export PG_EXTENSIONS="btree_gin btree_gist fuzzystrmatch hstore intarray ltree p
4
4
  export PG_CONFIG_FILE="/etc/postgresql/$PG_VERSION/main/postgresql.conf"
5
5
  export PG_HBA_FILE="/etc/postgresql/$PG_VERSION/main/pg_hba.conf"
6
6
  export PG_TUNE_VERSION="0.9.3"
7
- export PG_TUNE_URL="http://pgfoundry.org/frs/download.php/2449/pgtune-$PG_TUNE_VERSION.tar.gz"
8
7
  export PG_USER="postgres"
9
8
 
9
+ function get-pg-tune-url {
10
+ echo "http://pgfoundry.org/frs/download.php/2449/pgtune-$PG_TUNE_VERSION.tar.gz"
11
+ }
12
+
10
13
  function pg-install-packages {
11
14
  install-packages postgresql-$PG_VERSION libpq-dev postgresql-contrib-$PG_VERSION
12
15
  }
@@ -16,7 +19,7 @@ function pg-tune {
16
19
  cd "$tmpdir"
17
20
 
18
21
  announce "Tune PostgreSQL $PG_VERSION"
19
- download $PG_TUNE_URL
22
+ download $(get-pg-tune-url)
20
23
  extract pgtune-$PG_TUNE_VERSION.tar.gz
21
24
 
22
25
  ./pgtune-$PG_TUNE_VERSION/pgtune -i $PG_CONFIG_FILE -o $PG_CONFIG_FILE.pgtune
@@ -1,17 +1,20 @@
1
1
  #!/usr/bin/env bash
2
- export REDIS_VERSION="2.8.7" # @specify
2
+ export REDIS_VERSION="2.8.9" # @specify
3
3
  export REDIS_USER="redis"
4
4
  export REDIS_CONF_FILE="/etc/redis.conf"
5
5
  export REDIS_DATA_DIR="/var/lib/redis"
6
6
  export REDIS_FORCE_64BIT="no" # @specify Force 64bit build even if available memory is lte 4GiB
7
- REDIS_URL="http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz"
7
+
8
+ function get-redis-url {
9
+ echo "http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz"
10
+ }
8
11
 
9
12
  function redis-install {
10
13
  local tmpdir=$(get-tmp-dir)
11
14
  cd "$tmpdir"
12
15
 
13
16
  announce "Download $REDIS_VERSION"
14
- download $REDIS_URL
17
+ download $(get-redis-url)
15
18
 
16
19
  announce "Extract"
17
20
  extract redis-$REDIS_VERSION.tar.gz
@@ -39,14 +39,16 @@ function add-repository {
39
39
  function add-sudoers-entries {
40
40
  for event in start status stop reload restart; do
41
41
  if [ $3 ]; then
42
- tee -a /etc/sudoers.d/$2.entries <<EOT
42
+ tee -a /etc/sudoers.d/$2-entries <<EOT
43
43
  $1 ALL=NOPASSWD: /sbin/$event $2 $3
44
44
  EOT
45
45
  else
46
- tee -a /etc/sudoers.d/$2.entries <<EOT
46
+ tee -a /etc/sudoers.d/$2-entries <<EOT
47
47
  $1 ALL=NOPASSWD: /sbin/$event $2
48
48
  EOT
49
49
  fi
50
+
51
+ chmod 0440 /etc/sudoers.d/$2-entries
50
52
  done
51
53
  }
52
54
 
@@ -9,7 +9,7 @@ export VPS_SYSTEM_ADMIN_USER="admin" # @specify
9
9
  export VPS_SYSTEM_PRIVATE_NETMASK="255.255.128.0" # @specify Default is for Linode, DigitalOcean: 255.255.0.0
10
10
  export VPS_SYSTEM_PUBLIC_NETMASK="255.255.255.0" # @specify Default is for Linode, DigitalOcean: 255.255.240.0
11
11
  export VPS_SYSTEM_ALLOW_PORTS="www 443 ssh"
12
- export VPS_SYSTEM_LIMIT_PORTS="ssh"
12
+ export VPS_SYSTEM_LIMIT_PORTS="ssh" # @specify Default will limit connection attempts from the same IP on SSH, this can cause problems with certain deployment techniques.
13
13
  export VPS_SYSTEM_ALLOW_PRIVATE_IPS="" # @specify
14
14
  export VPS_SYSTEM_ALLOW_PRIVATE_PORTS="5432 6379" # Postgres & Redis
15
15
  export VPS_SYSTEM_GET_PUBLIC_IP_SERVICE_URL="http://ipecho.net/plain"
@@ -1,3 +1,3 @@
1
1
  module Propro
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Nielsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-04 00:00:00.000000000 Z
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor