taperole 1.1.5 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tape/ansible_runner.rb +4 -1
- data/roles/frontend_deploy/tasks/main.yml +28 -6
- data/roles/frontend_install_essentials/tasks/main.yml +3 -0
- data/taperole.gemspec +1 -1
- data/templates/base/omnibox.example.yml +1 -0
- data/templates/base/tape_vars.example.yml +2 -1
- data/templates/static_html/omnibox.example.yml +1 -0
- data/templates/static_html/tape_vars.example.yml +2 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f1b355dd70b804e1303b2526ac99a120223e571
|
4
|
+
data.tar.gz: a02ded99244f722784a1f589dca590f26b38fa2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a73c51e2cc6efa2830a41af42d380f93aed5913c71b1a66d49d379fab1d86b917295827446111b3da30f04f5287c7ec8a3e4b6278887068541f479b91ed548
|
7
|
+
data.tar.gz: 2787da3e289173e713a981c48001ab8b1ff97aee54a285f52b34a273949b0a0aeb8b4f30274426e94361b1058b4fbc454b1674a2da384837669b670217f39eb5
|
data/lib/tape/ansible_runner.rb
CHANGED
@@ -30,11 +30,14 @@ class AnsibleRunner < ExecutionModule
|
|
30
30
|
action :bundle,
|
31
31
|
proc {ansible '-t bundle -e force_bundle=true'},
|
32
32
|
"Bundles the gems running on the app servers"
|
33
|
+
action :be_deploy,
|
34
|
+
proc {ansible_deploy '-t be_deploy'},
|
35
|
+
"Re-deploys fe code"
|
33
36
|
action :fe_deploy,
|
34
37
|
proc {ansible_deploy '-t fe_deploy'},
|
35
38
|
"Re-deploys fe code"
|
36
39
|
action :deploy,
|
37
|
-
proc {ansible_deploy '-t be_deploy'},
|
40
|
+
proc {ansible_deploy '-t be_deploy,fe_deploy'},
|
38
41
|
"Checks out app code, installs dependencies and restarts unicorns for "\
|
39
42
|
"both FE and BE code."
|
40
43
|
action :everything, proc {ansible}, "This does it all."
|
@@ -1,8 +1,30 @@
|
|
1
|
-
- name: rsync the FE app
|
1
|
+
# - name: rsync the FE app
|
2
|
+
# remote_user: "{{ deployer_user.name }}"
|
3
|
+
# synchronize:
|
4
|
+
# src={{ fe_app_local_path }}/
|
5
|
+
# dest={{ fe_app_path }}
|
6
|
+
# tags: [fe_deploy]
|
7
|
+
# register: fe_app_checkout
|
8
|
+
# when: fe_app_local_path is defined
|
9
|
+
|
10
|
+
|
11
|
+
- name: clone the FE app
|
2
12
|
remote_user: "{{ deployer_user.name }}"
|
3
|
-
|
4
|
-
|
5
|
-
|
13
|
+
git: dest={{ fe_app_path }}
|
14
|
+
repo={{ fe_app_repo }}
|
15
|
+
version={{ fe_app_branch }}
|
16
|
+
accept_hostkey=true
|
17
|
+
force=yes
|
18
|
+
tags: [fe_deploy]
|
19
|
+
|
20
|
+
- name: NPM install
|
21
|
+
command: bash -lc
|
22
|
+
command: chdir={{ fe_app_path }}
|
23
|
+
bash -lc 'npm install'
|
24
|
+
tags: [fe_deploy]
|
25
|
+
|
26
|
+
- name: Build FE
|
27
|
+
command: bash -lc
|
28
|
+
command: chdir={{ fe_app_path }}
|
29
|
+
bash -lc 'gulp build'
|
6
30
|
tags: [fe_deploy]
|
7
|
-
register: fe_app_checkout
|
8
|
-
when: fe_app_local_path is defined
|
data/taperole.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "taperole"
|
3
|
-
spec.version = '1.
|
3
|
+
spec.version = '1.2.0'
|
4
4
|
spec.authors = ['Jack Forrest', 'Smashing Boxes', 'Brandon Mathis']
|
5
5
|
spec.email = ['jack@smashingboxes.com', 'brandon@sbox.es']
|
6
6
|
spec.summary = 'A tool for provisioning and deploying boxes for hosting Rails apps'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taperole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Forrest
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- roles/deployer_user/tasks/main.yml
|
57
57
|
- roles/frontend_deploy/handlers/main.yml
|
58
58
|
- roles/frontend_deploy/tasks/main.yml
|
59
|
+
- roles/frontend_install_essentials/tasks/main.yml
|
59
60
|
- roles/general/meta/main.yml
|
60
61
|
- roles/general/tasks/basic_packages.yml
|
61
62
|
- roles/general/tasks/main.yml
|