taperole 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/requirements.yml +0 -2
- data/roles/backend_checkout/tasks/main.yml +7 -1
- data/roles/backend_install_essentials/meta/main.yml +3 -3
- data/roles/frontend_install_essentials/meta/main.yml +1 -1
- data/{vendor/nodesource.node → roles/node}/tasks/main.yml +7 -12
- data/taperole.gemspec +1 -1
- data/vars/defaults.yml +2 -0
- metadata +2 -13
- data/vendor/nodesource.node/Dockerfile +0 -17
- data/vendor/nodesource.node/LICENSE.md +0 -11
- data/vendor/nodesource.node/README.md +0 -44
- data/vendor/nodesource.node/defaults/main.yml +0 -6
- data/vendor/nodesource.node/handlers/main.yml +0 -2
- data/vendor/nodesource.node/meta/.galaxy_install_info +0 -1
- data/vendor/nodesource.node/meta/main.yml +0 -18
- data/vendor/nodesource.node/role.yml +0 -6
- data/vendor/nodesource.node/templates/etc/apt/preferences.d/deb_nodesource_com_node.pref.2 +0 -5
- data/vendor/nodesource.node/tests/localhosts +0 -2
- data/vendor/nodesource.node/vars/main.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14766ea667904915df6837185b80d9e339e399ab
|
4
|
+
data.tar.gz: 9d7958eb9e84db1d650f2d81f0e578cba7589e4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c69f92b24b574ee18890ce189cf5108c797d6fdac14e9e17568b0ac44c17513646829081df36e1fb0306fad401c1aaf178685a76123b8c600187945dd93c94e8
|
7
|
+
data.tar.gz: 1fed050ee05a2a97e231248a9315b74b0cec4c243a64f37558288da41ec09cf70ccf9ffc4b68290c904c4e5da1d1221bb240d64b100a90c7dd65a822ca73c1e6
|
data/requirements.yml
CHANGED
@@ -1,14 +1,20 @@
|
|
1
|
+
- name: Check if path exists
|
2
|
+
stat: path={{ be_app_path }}
|
3
|
+
register: be_app_path_stat
|
4
|
+
tags: [be_deploy]
|
5
|
+
|
1
6
|
- name: Check if there are commited changes on {{ be_app_branch }}
|
2
7
|
remote_user: "{{ deployer_user.name }}"
|
3
8
|
command: bash -lc "git fetch origin && git diff --name-only origin/{{ be_app_branch }}"
|
4
9
|
args:
|
5
10
|
chdir: "{{be_app_path}}"
|
6
11
|
register: changes_on_remote
|
12
|
+
when: be_app_path_stat.stat.exists
|
7
13
|
tags: [be_deploy]
|
8
14
|
|
9
15
|
- name: Inform User if there are no changes
|
10
16
|
debug: msg={{no_changes_found_error.split('\n')}}
|
11
|
-
when: changes_on_remote.stdout_lines == []
|
17
|
+
when: be_app_path_stat.stat.exists and changes_on_remote.stdout_lines == []
|
12
18
|
tags: [be_deploy]
|
13
19
|
|
14
20
|
- name: Check out application
|
@@ -1,12 +1,10 @@
|
|
1
|
-
# Install Node.js using packages crafted by NodeSource
|
2
|
-
---
|
3
1
|
- name: Ensure the system can use the HTTPS transport for APT
|
4
2
|
stat:
|
5
3
|
path: /usr/lib/apt/methods/https
|
6
4
|
register: apt_https_transport
|
7
5
|
|
8
6
|
- name: Install HTTPS transport for APT
|
9
|
-
apt:
|
7
|
+
apt:
|
10
8
|
pkg: apt-transport-https
|
11
9
|
state: installed
|
12
10
|
when: not apt_https_transport.stat.exists
|
@@ -18,22 +16,19 @@
|
|
18
16
|
|
19
17
|
- name: Add NodeSource deb repository
|
20
18
|
apt_repository:
|
21
|
-
repo: 'deb https://deb.nodesource.com/node_{{
|
19
|
+
repo: 'deb https://deb.nodesource.com/node_{{ nodejs_version }} {{ ansible_distribution_release }} main'
|
22
20
|
state: present
|
23
21
|
|
24
22
|
- name: Add NodeSource deb-src repository
|
25
23
|
apt_repository:
|
26
|
-
repo: 'deb-src https://deb.nodesource.com/node_{{
|
24
|
+
repo: 'deb-src https://deb.nodesource.com/node_{{ nodejs_version }} {{ ansible_distribution_release }} main'
|
27
25
|
state: present
|
28
26
|
|
29
|
-
- name: Add NodeSource repository preferences
|
30
|
-
template:
|
31
|
-
src: etc/apt/preferences.d/deb_nodesource_com_node.pref.2
|
32
|
-
dest: /etc/apt/preferences.d/deb_nodesource_com_node.pref
|
33
|
-
|
34
27
|
- name: Install Node.js
|
35
28
|
apt:
|
36
|
-
pkg:
|
37
|
-
- nodejs={{ nodejs_version }}*
|
29
|
+
pkg: nodejs
|
38
30
|
state: installed
|
39
31
|
update_cache: yes
|
32
|
+
|
33
|
+
- name: Update npm
|
34
|
+
command: bash -lc "npm install -g npm"
|
data/taperole.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "taperole"
|
3
|
-
spec.version = '1.5.
|
3
|
+
spec.version = '1.5.2'
|
4
4
|
spec.authors = ['Jack Forrest', 'Smashing Boxes', 'Brandon Mathis']
|
5
5
|
spec.description = "General purpose server provisioning and application deployment toolkit"
|
6
6
|
spec.email = ['jack@smashingboxes.com', 'brandon@sbox.es']
|
data/vars/defaults.yml
CHANGED
@@ -37,6 +37,8 @@ allowed_ports:
|
|
37
37
|
- 80
|
38
38
|
- 443
|
39
39
|
|
40
|
+
nodejs_version: "4.x"
|
41
|
+
|
40
42
|
no_changes_found_error: |
|
41
43
|
‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️ ‼️
|
42
44
|
No Changes detected on remote branch proceeding with deploy anyway
|
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.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Forrest
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- roles/nginx/tasks/main.yml
|
87
87
|
- roles/nginx/templates/nginx_monit.j2
|
88
88
|
- roles/nginx/templates/nginx_unicorn.j2
|
89
|
+
- roles/node/tasks/main.yml
|
89
90
|
- roles/postgres/meta/main.yml
|
90
91
|
- roles/redis/tasks/main.yml
|
91
92
|
- roles/redis/templates/redis.j2
|
@@ -191,18 +192,6 @@ files:
|
|
191
192
|
- vendor/lxhunter.apt/test.yml
|
192
193
|
- vendor/lxhunter.apt/test/integration/default/bats/simple.bats
|
193
194
|
- vendor/lxhunter.apt/test/integration/default/default.yml
|
194
|
-
- vendor/nodesource.node/Dockerfile
|
195
|
-
- vendor/nodesource.node/LICENSE.md
|
196
|
-
- vendor/nodesource.node/README.md
|
197
|
-
- vendor/nodesource.node/defaults/main.yml
|
198
|
-
- vendor/nodesource.node/handlers/main.yml
|
199
|
-
- vendor/nodesource.node/meta/.galaxy_install_info
|
200
|
-
- vendor/nodesource.node/meta/main.yml
|
201
|
-
- vendor/nodesource.node/role.yml
|
202
|
-
- vendor/nodesource.node/tasks/main.yml
|
203
|
-
- vendor/nodesource.node/templates/etc/apt/preferences.d/deb_nodesource_com_node.pref.2
|
204
|
-
- vendor/nodesource.node/tests/localhosts
|
205
|
-
- vendor/nodesource.node/vars/main.yml
|
206
195
|
- vendor/tersmitten.htop/.gitignore
|
207
196
|
- vendor/tersmitten.htop/.travis.yml
|
208
197
|
- vendor/tersmitten.htop/LICENSE.txt
|
@@ -1,17 +0,0 @@
|
|
1
|
-
FROM ubuntu:trusty
|
2
|
-
MAINTAINER Mark Wolfe <mark@wolfe.id.au>
|
3
|
-
|
4
|
-
# http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu
|
5
|
-
RUN apt-get install software-properties-common -y --force-yes
|
6
|
-
RUN apt-add-repository ppa:ansible/ansible
|
7
|
-
RUN apt-get update
|
8
|
-
RUN apt-get install ansible -y --force-yes
|
9
|
-
|
10
|
-
|
11
|
-
ENV WORKDIR /build/ansible-nodejs
|
12
|
-
ADD . /build/ansible-nodejs
|
13
|
-
ADD . /etc/ansible/roles/ansible-nodejs-role
|
14
|
-
ADD ./tests/localhosts /etc/ansible/hosts
|
15
|
-
|
16
|
-
RUN ansible-playbook $WORKDIR/role.yml -c local
|
17
|
-
RUN node -v
|
@@ -1,11 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
=====================
|
3
|
-
|
4
|
-
Copyright (c) 2014 NodeSource and Mark Wolfe
|
5
|
-
--------------------------------------------
|
6
|
-
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
8
|
-
|
9
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
10
|
-
|
11
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# ansible-nodejs-role
|
2
|
-
|
3
|
-
This is an Ansible role which adds the the NodeSource APT repository and installs Node.js.
|
4
|
-
|
5
|
-
Currently this role supports the following operating systems and releases.
|
6
|
-
|
7
|
-
* **Ubuntu 12.04 LTS** (Precise Pangolin)
|
8
|
-
* **Ubuntu 14.04 LTS** (Trusty Tahr)
|
9
|
-
|
10
|
-
## Usage
|
11
|
-
|
12
|
-
Install the playbook via Ansible Galaxy:
|
13
|
-
|
14
|
-
```text
|
15
|
-
$ ansible-galaxy install nodesource.node
|
16
|
-
```
|
17
|
-
|
18
|
-
Then configure it as follows:
|
19
|
-
|
20
|
-
```yaml
|
21
|
-
- hosts: servers
|
22
|
-
roles:
|
23
|
-
- nodesource.node
|
24
|
-
```
|
25
|
-
|
26
|
-
## Role Variables
|
27
|
-
|
28
|
-
- `nodejs_nodesource_pin_priority`: Pin-Priority of the NodeSource repository (default: `500`).
|
29
|
-
|
30
|
-
## Testing
|
31
|
-
|
32
|
-
To test this role using Docker:
|
33
|
-
|
34
|
-
```
|
35
|
-
$ docker build .
|
36
|
-
```
|
37
|
-
|
38
|
-
## Author
|
39
|
-
|
40
|
-
Mark Wolfe <mark@wolfe.id.au>
|
41
|
-
|
42
|
-
## License
|
43
|
-
|
44
|
-
This code is Copyright (c) 2014 NodeSource and Mark Wolfe and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.
|
@@ -1 +0,0 @@
|
|
1
|
-
{install_date: 'Thu Feb 11 23:57:14 2016', version: master}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
---
|
2
|
-
galaxy_info:
|
3
|
-
author: Mark Wolfe
|
4
|
-
description: Installs the NodeSource Node.js binary packages
|
5
|
-
company: NodeSource
|
6
|
-
license: MIT
|
7
|
-
min_ansible_version: 1.2
|
8
|
-
platforms:
|
9
|
-
- name: Ubuntu
|
10
|
-
versions:
|
11
|
-
- precise
|
12
|
-
- trusty
|
13
|
-
categories:
|
14
|
-
- development
|
15
|
-
- networking
|
16
|
-
- packaging
|
17
|
-
- web
|
18
|
-
dependencies: []
|