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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56786611ba0aec628e29a941d3bbef08e068a67c
4
- data.tar.gz: ca2a73598e61d109b4b52c01b94d7708727bdca7
3
+ metadata.gz: 14766ea667904915df6837185b80d9e339e399ab
4
+ data.tar.gz: 9d7958eb9e84db1d650f2d81f0e578cba7589e4a
5
5
  SHA512:
6
- metadata.gz: f80e07973ce732adaa9077a870cd77e267ef3b6a7aa1e0fbf1e1b1ae6b510b8907768e213bf2b34dc0744d164fbe2461f0132597eaa0b63d9fb115033da2c75a
7
- data.tar.gz: 076a1801c5f5811de0950fd2a80ff94807e6e5dcc0fda74e720e6f6739c287f9f7dfe4c12c8bf17cbd8d93b6e754df9714aa271626093c8e0053d55ac8396006
6
+ metadata.gz: c69f92b24b574ee18890ce189cf5108c797d6fdac14e9e17568b0ac44c17513646829081df36e1fb0306fad401c1aaf178685a76123b8c600187945dd93c94e8
7
+ data.tar.gz: 1fed050ee05a2a97e231248a9315b74b0cec4c243a64f37558288da41ec09cf70ccf9ffc4b68290c904c4e5da1d1221bb240d64b100a90c7dd65a822ca73c1e6
data/requirements.yml CHANGED
@@ -15,5 +15,3 @@
15
15
  version: 1.0.4
16
16
 
17
17
  - src: tersmitten.htop
18
-
19
- - src: nodesource.node
@@ -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,5 +1,5 @@
1
1
  ---
2
2
  dependencies:
3
- - role: geerlingguy.memcached
4
- - role: zzet.rbenv
5
- - role: nodesource.node
3
+ # - role: geerlingguy.memcached
4
+ # - role: zzet.rbenv
5
+ - role: node
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  dependencies:
3
- - role: nodesource.node
3
+ - role: node
@@ -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_{{ debian_repo_version }} {{ ansible_distribution_release }} main'
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_{{ debian_repo_version }} {{ ansible_distribution_release }} main'
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.1'
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.1
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,6 +0,0 @@
1
- ---
2
- # Pin-Priority of NodeSource repository
3
- nodejs_nodesource_pin_priority: 500
4
-
5
- # 0.10 or 0.12 or 4.x
6
- nodejs_version: "4.3"
@@ -1,2 +0,0 @@
1
- ---
2
- # handlers file for nodejs
@@ -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: []
@@ -1,6 +0,0 @@
1
- ---
2
- - name: Test the Node.js role
3
- hosts: all
4
- sudo: yes
5
- roles:
6
- - role: "ansible-nodejs-role"
@@ -1,5 +0,0 @@
1
- # {{ ansible_managed }}
2
-
3
- Package: *
4
- Pin: release o=Node Source
5
- Pin-Priority: {{ nodejs_nodesource_pin_priority }}
@@ -1,2 +0,0 @@
1
- [local]
2
- localhost
@@ -1,3 +0,0 @@
1
- ---
2
- # vars file for nodejs
3
- debian_repo_version: "{{ nodejs_version if '4' not in nodejs_version else '4.x' }}"