taperole 1.3.6 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +11 -12
  4. data/lib/tape/ansible_runner.rb +1 -1
  5. data/lib/tape/installer.rb +0 -8
  6. data/lib/tape.rb +2 -2
  7. data/requirements.yml +5 -5
  8. data/roles/backend_install_essentials/meta/main.yml +2 -2
  9. data/roles/frontend_install_essentials/meta/main.yml +1 -1
  10. data/roles/frontend_install_essentials/tasks/main.yml +6 -2
  11. data/roles/node/tasks/main.yml +35 -0
  12. data/roles/node/templates/nvm.sh +5 -0
  13. data/taperole.gemspec +1 -1
  14. data/vars/defaults.yml +3 -2
  15. data/vendor/ANXS.postgresql/.travis.yml +25 -10
  16. data/vendor/ANXS.postgresql/README.md +29 -5
  17. data/vendor/ANXS.postgresql/Vagrantfile +14 -6
  18. data/vendor/ANXS.postgresql/ansible.cfg +2 -0
  19. data/vendor/ANXS.postgresql/defaults/main.yml +49 -25
  20. data/vendor/ANXS.postgresql/handlers/main.yml +1 -1
  21. data/vendor/ANXS.postgresql/meta/.galaxy_install_info +1 -1
  22. data/vendor/ANXS.postgresql/meta/main.yml +1 -1
  23. data/vendor/ANXS.postgresql/tasks/configure.yml +76 -10
  24. data/vendor/ANXS.postgresql/tasks/databases.yml +21 -11
  25. data/vendor/ANXS.postgresql/tasks/extensions/contrib.yml +9 -1
  26. data/vendor/ANXS.postgresql/tasks/install.yml +2 -2
  27. data/vendor/ANXS.postgresql/tasks/install_yum.yml +36 -0
  28. data/vendor/ANXS.postgresql/tasks/main.yml +11 -0
  29. data/vendor/ANXS.postgresql/tasks/users.yml +2 -1
  30. data/vendor/ANXS.postgresql/templates/HOWTO.postgresql.conf +21 -0
  31. data/vendor/ANXS.postgresql/templates/etc_systemd_system_postgresql.service.d_custom.conf.j2 +11 -0
  32. data/vendor/ANXS.postgresql/templates/pg_hba.conf.j2 +4 -0
  33. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.1.j2 +561 -0
  34. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.2.j2 +578 -0
  35. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.3.j2 +4 -0
  36. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.4.j2 +4 -0
  37. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.5.j2 +622 -0
  38. data/vendor/ANXS.postgresql/tests/idempotence_check.sh +28 -0
  39. data/vendor/ANXS.postgresql/tests/playbook.yml +9 -0
  40. data/vendor/ANXS.postgresql/{vars/test.yml → tests/vars.yml} +10 -1
  41. data/vendor/ANXS.postgresql/vagrant-inventory +1 -1
  42. data/vendor/ANXS.postgresql/vars/Debian.yml +4 -0
  43. data/vendor/ANXS.postgresql/vars/RedHat.yml +14 -0
  44. data/vendor/ANXS.postgresql/vars/empty.yml +2 -0
  45. data/vendor/geerlingguy.memcached/.gitignore +1 -0
  46. data/vendor/geerlingguy.memcached/.travis.yml +34 -0
  47. data/vendor/geerlingguy.memcached/README.md +53 -0
  48. data/vendor/geerlingguy.memcached/defaults/main.yml +9 -0
  49. data/vendor/geerlingguy.memcached/handlers/main.yml +3 -0
  50. data/vendor/geerlingguy.memcached/meta/.galaxy_install_info +1 -0
  51. data/vendor/geerlingguy.memcached/meta/main.yml +24 -0
  52. data/vendor/geerlingguy.memcached/tasks/main.yml +29 -0
  53. data/vendor/geerlingguy.memcached/tasks/setup-Debian.yml +6 -0
  54. data/vendor/geerlingguy.memcached/tasks/setup-RedHat.yml +3 -0
  55. data/vendor/{bennojoy.memcached/templates/memcached_debian.j2 → geerlingguy.memcached/templates/memcached-Debian.conf.j2} +7 -29
  56. data/vendor/geerlingguy.memcached/templates/memcached-RedHat.conf.j2 +19 -0
  57. data/vendor/geerlingguy.memcached/tests/inventory +1 -0
  58. data/vendor/geerlingguy.memcached/tests/test.yml +5 -0
  59. data/vendor/geerlingguy.memcached/vars/Debian.yml +3 -0
  60. data/vendor/geerlingguy.memcached/vars/RedHat.yml +3 -0
  61. data/vendor/jnv.mosh/meta/.galaxy_install_info +1 -1
  62. data/vendor/jnv.unattended-upgrades/README.md +8 -2
  63. data/vendor/jnv.unattended-upgrades/meta/.galaxy_install_info +1 -1
  64. data/vendor/jnv.unattended-upgrades/tasks/main.yml +5 -0
  65. data/vendor/jnv.unattended-upgrades/tasks/reboot.yml +12 -0
  66. data/vendor/jnv.unattended-upgrades/vars/Debian.yml +1 -1
  67. data/vendor/lxhunter.apt/meta/.galaxy_install_info +1 -1
  68. data/vendor/tersmitten.htop/meta/.galaxy_install_info +1 -1
  69. data/vendor/zzet.rbenv/README.md +10 -10
  70. data/vendor/zzet.rbenv/defaults/main.yml +9 -9
  71. data/vendor/zzet.rbenv/meta/.galaxy_install_info +1 -1
  72. data/vendor/zzet.rbenv/tasks/main.yml +41 -10
  73. metadata +35 -46
  74. data/vendor/ANXS.postgresql/test.yml +0 -8
  75. data/vendor/bennojoy.memcached/README.md +0 -49
  76. data/vendor/bennojoy.memcached/defaults/main.yml +0 -8
  77. data/vendor/bennojoy.memcached/handlers/main.yml +0 -3
  78. data/vendor/bennojoy.memcached/meta/.galaxy_install_info +0 -1
  79. data/vendor/bennojoy.memcached/meta/main.yml +0 -26
  80. data/vendor/bennojoy.memcached/tasks/main.yml +0 -30
  81. data/vendor/bennojoy.memcached/templates/memcached_redhat.j2 +0 -5
  82. data/vendor/bennojoy.memcached/vars/main.yml +0 -14
  83. data/vendor/nodesource.node/Dockerfile +0 -16
  84. data/vendor/nodesource.node/LICENSE.md +0 -11
  85. data/vendor/nodesource.node/README.md +0 -46
  86. data/vendor/nodesource.node/defaults/main.yml +0 -3
  87. data/vendor/nodesource.node/handlers/main.yml +0 -2
  88. data/vendor/nodesource.node/meta/.galaxy_install_info +0 -1
  89. data/vendor/nodesource.node/meta/main.yml +0 -18
  90. data/vendor/nodesource.node/role.yml +0 -6
  91. data/vendor/nodesource.node/tasks/main.yml +0 -26
  92. data/vendor/nodesource.node/templates/etc/apt/preferences.d/deb_nodesource_com_node.pref.2 +0 -5
  93. data/vendor/nodesource.node/tests/localhosts +0 -2
  94. data/vendor/nodesource.node/vars/main.yml +0 -2
  95. data/vendor/williamyeh.nodejs/.gitignore +0 -1
  96. data/vendor/williamyeh.nodejs/LICENSE +0 -22
  97. data/vendor/williamyeh.nodejs/README.md +0 -107
  98. data/vendor/williamyeh.nodejs/Vagrantfile +0 -33
  99. data/vendor/williamyeh.nodejs/circle.yml +0 -32
  100. data/vendor/williamyeh.nodejs/defaults/main.yml +0 -17
  101. data/vendor/williamyeh.nodejs/files/nodesource.gpg.key +0 -52
  102. data/vendor/williamyeh.nodejs/meta/.galaxy_install_info +0 -1
  103. data/vendor/williamyeh.nodejs/meta/main.yml +0 -27
  104. data/vendor/williamyeh.nodejs/tasks/main.yml +0 -19
  105. data/vendor/williamyeh.nodejs/tasks/set-role-variables.yml +0 -15
  106. data/vendor/williamyeh.nodejs/tasks/use-apt.yml +0 -88
  107. data/vendor/williamyeh.nodejs/tasks/use-yum.yml +0 -34
  108. data/vendor/williamyeh.nodejs/test/Dockerfile-centos6 +0 -29
  109. data/vendor/williamyeh.nodejs/test/Dockerfile-centos7 +0 -29
  110. data/vendor/williamyeh.nodejs/test/Dockerfile-debian7 +0 -29
  111. data/vendor/williamyeh.nodejs/test/Dockerfile-debian8 +0 -29
  112. data/vendor/williamyeh.nodejs/test/Dockerfile-ubuntu12.04 +0 -29
  113. data/vendor/williamyeh.nodejs/test/Dockerfile-ubuntu14.04 +0 -29
  114. data/vendor/williamyeh.nodejs/test.yml +0 -12
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.3.6
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Forrest
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-19 00:00:00.000000000 Z
13
+ date: 2016-01-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: slack-notifier
@@ -86,6 +86,8 @@ 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
90
+ - roles/node/templates/nvm.sh
89
91
  - roles/postgres/meta/main.yml
90
92
  - roles/redis/tasks/main.yml
91
93
  - roles/redis/templates/redis.j2
@@ -113,6 +115,7 @@ files:
113
115
  - vendor/ANXS.postgresql/LICENSE
114
116
  - vendor/ANXS.postgresql/README.md
115
117
  - vendor/ANXS.postgresql/Vagrantfile
118
+ - vendor/ANXS.postgresql/ansible.cfg
116
119
  - vendor/ANXS.postgresql/defaults/main.yml
117
120
  - vendor/ANXS.postgresql/handlers/main.yml
118
121
  - vendor/ANXS.postgresql/meta/.galaxy_install_info
@@ -124,27 +127,44 @@ files:
124
127
  - vendor/ANXS.postgresql/tasks/extensions/dev_headers.yml
125
128
  - vendor/ANXS.postgresql/tasks/extensions/postgis.yml
126
129
  - vendor/ANXS.postgresql/tasks/install.yml
130
+ - vendor/ANXS.postgresql/tasks/install_yum.yml
127
131
  - vendor/ANXS.postgresql/tasks/main.yml
128
132
  - vendor/ANXS.postgresql/tasks/monit.yml
129
133
  - vendor/ANXS.postgresql/tasks/users.yml
130
134
  - vendor/ANXS.postgresql/tasks/users_privileges.yml
135
+ - vendor/ANXS.postgresql/templates/HOWTO.postgresql.conf
131
136
  - vendor/ANXS.postgresql/templates/etc_apt_preferences.d_apt_postgresql_org_pub_repos_apt.pref.j2
132
137
  - vendor/ANXS.postgresql/templates/etc_monit_conf.d_postgresql.j2
138
+ - vendor/ANXS.postgresql/templates/etc_systemd_system_postgresql.service.d_custom.conf.j2
133
139
  - vendor/ANXS.postgresql/templates/pg_hba.conf.j2
140
+ - vendor/ANXS.postgresql/templates/postgresql.conf-9.1.j2
141
+ - vendor/ANXS.postgresql/templates/postgresql.conf-9.2.j2
134
142
  - vendor/ANXS.postgresql/templates/postgresql.conf-9.3.j2
135
143
  - vendor/ANXS.postgresql/templates/postgresql.conf-9.4.j2
136
- - vendor/ANXS.postgresql/test.yml
144
+ - vendor/ANXS.postgresql/templates/postgresql.conf-9.5.j2
145
+ - vendor/ANXS.postgresql/tests/idempotence_check.sh
146
+ - vendor/ANXS.postgresql/tests/playbook.yml
147
+ - vendor/ANXS.postgresql/tests/vars.yml
137
148
  - vendor/ANXS.postgresql/vagrant-inventory
138
- - vendor/ANXS.postgresql/vars/test.yml
139
- - vendor/bennojoy.memcached/README.md
140
- - vendor/bennojoy.memcached/defaults/main.yml
141
- - vendor/bennojoy.memcached/handlers/main.yml
142
- - vendor/bennojoy.memcached/meta/.galaxy_install_info
143
- - vendor/bennojoy.memcached/meta/main.yml
144
- - vendor/bennojoy.memcached/tasks/main.yml
145
- - vendor/bennojoy.memcached/templates/memcached_debian.j2
146
- - vendor/bennojoy.memcached/templates/memcached_redhat.j2
147
- - vendor/bennojoy.memcached/vars/main.yml
149
+ - vendor/ANXS.postgresql/vars/Debian.yml
150
+ - vendor/ANXS.postgresql/vars/RedHat.yml
151
+ - vendor/ANXS.postgresql/vars/empty.yml
152
+ - vendor/geerlingguy.memcached/.gitignore
153
+ - vendor/geerlingguy.memcached/.travis.yml
154
+ - vendor/geerlingguy.memcached/README.md
155
+ - vendor/geerlingguy.memcached/defaults/main.yml
156
+ - vendor/geerlingguy.memcached/handlers/main.yml
157
+ - vendor/geerlingguy.memcached/meta/.galaxy_install_info
158
+ - vendor/geerlingguy.memcached/meta/main.yml
159
+ - vendor/geerlingguy.memcached/tasks/main.yml
160
+ - vendor/geerlingguy.memcached/tasks/setup-Debian.yml
161
+ - vendor/geerlingguy.memcached/tasks/setup-RedHat.yml
162
+ - vendor/geerlingguy.memcached/templates/memcached-Debian.conf.j2
163
+ - vendor/geerlingguy.memcached/templates/memcached-RedHat.conf.j2
164
+ - vendor/geerlingguy.memcached/tests/inventory
165
+ - vendor/geerlingguy.memcached/tests/test.yml
166
+ - vendor/geerlingguy.memcached/vars/Debian.yml
167
+ - vendor/geerlingguy.memcached/vars/RedHat.yml
148
168
  - vendor/jnv.mosh/LICENSE
149
169
  - vendor/jnv.mosh/README.md
150
170
  - vendor/jnv.mosh/meta/.galaxy_install_info
@@ -164,6 +184,7 @@ files:
164
184
  - vendor/jnv.unattended-upgrades/meta/main.yml
165
185
  - vendor/jnv.unattended-upgrades/role.yml
166
186
  - vendor/jnv.unattended-upgrades/tasks/main.yml
187
+ - vendor/jnv.unattended-upgrades/tasks/reboot.yml
167
188
  - vendor/jnv.unattended-upgrades/templates/unattended-upgrades.j2
168
189
  - vendor/jnv.unattended-upgrades/vars/Debian.yml
169
190
  - vendor/jnv.unattended-upgrades/vars/Ubuntu.yml
@@ -177,18 +198,6 @@ files:
177
198
  - vendor/lxhunter.apt/test.yml
178
199
  - vendor/lxhunter.apt/test/integration/default/bats/simple.bats
179
200
  - vendor/lxhunter.apt/test/integration/default/default.yml
180
- - vendor/nodesource.node/Dockerfile
181
- - vendor/nodesource.node/LICENSE.md
182
- - vendor/nodesource.node/README.md
183
- - vendor/nodesource.node/defaults/main.yml
184
- - vendor/nodesource.node/handlers/main.yml
185
- - vendor/nodesource.node/meta/.galaxy_install_info
186
- - vendor/nodesource.node/meta/main.yml
187
- - vendor/nodesource.node/role.yml
188
- - vendor/nodesource.node/tasks/main.yml
189
- - vendor/nodesource.node/templates/etc/apt/preferences.d/deb_nodesource_com_node.pref.2
190
- - vendor/nodesource.node/tests/localhosts
191
- - vendor/nodesource.node/vars/main.yml
192
201
  - vendor/tersmitten.htop/.gitignore
193
202
  - vendor/tersmitten.htop/.travis.yml
194
203
  - vendor/tersmitten.htop/LICENSE.txt
@@ -205,26 +214,6 @@ files:
205
214
  - vendor/tersmitten.htop/tests/test.yml
206
215
  - vendor/tersmitten.htop/tests/vagrant.yml
207
216
  - vendor/tersmitten.htop/vars/main.yml
208
- - vendor/williamyeh.nodejs/.gitignore
209
- - vendor/williamyeh.nodejs/LICENSE
210
- - vendor/williamyeh.nodejs/README.md
211
- - vendor/williamyeh.nodejs/Vagrantfile
212
- - vendor/williamyeh.nodejs/circle.yml
213
- - vendor/williamyeh.nodejs/defaults/main.yml
214
- - vendor/williamyeh.nodejs/files/nodesource.gpg.key
215
- - vendor/williamyeh.nodejs/meta/.galaxy_install_info
216
- - vendor/williamyeh.nodejs/meta/main.yml
217
- - vendor/williamyeh.nodejs/tasks/main.yml
218
- - vendor/williamyeh.nodejs/tasks/set-role-variables.yml
219
- - vendor/williamyeh.nodejs/tasks/use-apt.yml
220
- - vendor/williamyeh.nodejs/tasks/use-yum.yml
221
- - vendor/williamyeh.nodejs/test.yml
222
- - vendor/williamyeh.nodejs/test/Dockerfile-centos6
223
- - vendor/williamyeh.nodejs/test/Dockerfile-centos7
224
- - vendor/williamyeh.nodejs/test/Dockerfile-debian7
225
- - vendor/williamyeh.nodejs/test/Dockerfile-debian8
226
- - vendor/williamyeh.nodejs/test/Dockerfile-ubuntu12.04
227
- - vendor/williamyeh.nodejs/test/Dockerfile-ubuntu14.04
228
217
  - vendor/zzet.rbenv/.kitchen.yml
229
218
  - vendor/zzet.rbenv/.travis.yml
230
219
  - vendor/zzet.rbenv/README.md
@@ -268,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
257
  version: '0'
269
258
  requirements: []
270
259
  rubyforge_project:
271
- rubygems_version: 2.4.5
260
+ rubygems_version: 2.5.1
272
261
  signing_key:
273
262
  specification_version: 4
274
263
  summary: A tool for provisioning and deploying boxes for hosting Rails apps
@@ -1,8 +0,0 @@
1
- - hosts: all
2
- vars_files:
3
- - defaults/main.yml
4
- - vars/test.yml
5
- tasks:
6
- - include: tasks/main.yml
7
- handlers:
8
- - include: handlers/main.yml
@@ -1,49 +0,0 @@
1
- memcached
2
- ========
3
-
4
- This role helps to install a memcached server on the target host.
5
-
6
- Requirements
7
- ------------
8
-
9
- This role requires Ansible 1.4 or higher, and platform requirements are listed
10
- in the metadata file.
11
-
12
- Role Variables
13
- --------------
14
-
15
- The variables that can be passed to this role and a brief description about
16
- them are as follows:
17
-
18
- memcached_port: 11211 # The port in which memcached server should be listening
19
- memcached_listen_address: 0.0.0.0 # The IP address to listen on
20
- memcached_max_conn: 1024 # The number of max concurrent connections it should accept
21
- memcached_cache_size: 64 # The cache size
22
- memcached_fs_file_max: 756024 # The kernel parameter for max number of file handles
23
-
24
- Example
25
- -------
26
-
27
- The following play setup's memcached with a different port number and
28
- available memory.
29
-
30
- - hosts: all
31
- sudo: true
32
- roles:
33
- - {role: bennojoy.memcached, memcached_port: 11244, memcached_cache_size: 512 }
34
-
35
- Dependencies
36
- ------------
37
-
38
- None
39
-
40
- License
41
- -------
42
-
43
- BSD
44
-
45
- Author Information
46
- ------------------
47
-
48
- Benno Joy
49
-
@@ -1,8 +0,0 @@
1
- ---
2
-
3
- memcached_port: 11211
4
- memcached_listen_address: 0.0.0.0
5
- memcached_max_conn: 1024
6
- memcached_cache_size: 64
7
- memcached_fs_file_max: 756024
8
-
@@ -1,3 +0,0 @@
1
- ---
2
- - name: restart memcached
3
- service: name=memcached state=restarted
@@ -1 +0,0 @@
1
- {install_date: 'Mon Nov 16 16:35:32 2015', version: master}
@@ -1,26 +0,0 @@
1
- ---
2
- galaxy_info:
3
- author: "Benno Joy"
4
- company: AnsibleWorks
5
- license: BSD
6
- min_ansible_version: 1.4
7
- platforms:
8
- - name: EL
9
- versions:
10
- - 5
11
- - 6
12
- - name: Fedora
13
- versions:
14
- - 16
15
- - 17
16
- - 18
17
- - name: Ubuntu
18
- versions:
19
- - precise
20
- - quantal
21
- - raring
22
- - saucy
23
- categories:
24
- - web
25
- dependencies: []
26
-
@@ -1,30 +0,0 @@
1
- ---
2
-
3
- - name: Install the memcached packages
4
- yum: name={{ item }} state=present
5
- with_items: memcached_redhat_pkgs
6
- when: ansible_os_family == "RedHat"
7
-
8
- - name: Install the memcached packages
9
- apt: name={{ item }} state=present update_cache=yes
10
- with_items: memcached_ubuntu_pkgs
11
- environment: env
12
- when: ansible_os_family == "Debian"
13
-
14
- - name: Copy the client configuration file
15
- template: src=memcached_redhat.j2 dest=/etc/sysconfig/memcached
16
- notify:
17
- - restart memcached
18
- when: ansible_os_family == "RedHat"
19
-
20
- - name: Copy the client configuration file
21
- template: src=memcached_debian.j2 dest=/etc/memcached.conf
22
- notify: restart memcached
23
- when: ansible_os_family == "Debian"
24
-
25
- - name: Set the max open file descriptors
26
- sysctl: name=fs.file-max value={{ memcached_fs_file_max }} state=present ignoreerrors=yes
27
-
28
- - name: start the memcached service
29
- service: name=memcached state=started enabled=yes
30
-
@@ -1,5 +0,0 @@
1
- PORT={{ memcached_port }}
2
- USER="memcached"
3
- MAXCONN={{ memcached_max_conn }}
4
- CACHESIZE={{ memcached_cache_size }}
5
- OPTIONS="-l {{ memcached_listen_address }}"
@@ -1,14 +0,0 @@
1
- ---
2
-
3
- env:
4
- RUNLEVEL: 1
5
-
6
- memcached_redhat_pkgs:
7
- - libselinux-python
8
- - memcached
9
-
10
- memcached_ubuntu_pkgs:
11
- - python-selinux
12
- - memcached
13
-
14
-
@@ -1,16 +0,0 @@
1
- FROM ubuntu:trusty
2
- MAINTAINER Mark Wolfe <mark@wolfe.id.au>
3
-
4
- RUN apt-get update
5
- RUN apt-get install -y --force-yes \
6
- python-pycurl \
7
- python-apt \
8
- ansible \
9
- lsb-release
10
-
11
- ENV WORKDIR /build/ansible-nodejs
12
- ADD . /build/ansible-nodejs
13
- ADD ./tests/localhosts /etc/ansible/hosts
14
-
15
- RUN ansible-playbook $WORKDIR/role.yml -c local
16
- 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,46 +0,0 @@
1
- # ansible-nodejs-role
2
-
3
- <a href="https://nodesource.com"><img src="https://nodesource.com/assets/logo.svg" height="10%" width="10%"></a>
4
-
5
- This is an Ansible role which adds the the NodeSource APT repository and installs Node.js.
6
-
7
- Currently this role supports the following operating systems and releases.
8
-
9
- * **Ubuntu 12.04 LTS** (Precise Pangolin)
10
- * **Ubuntu 14.04 LTS** (Trusty Tahr)
11
-
12
- ## Usage
13
-
14
- Install the playbook via Ansible Galaxy:
15
-
16
- ```text
17
- $ ansible-galaxy install nodesource.node
18
- ```
19
-
20
- Then configure it as follows:
21
-
22
- ```yaml
23
- - hosts: servers
24
- roles:
25
- - nodesource.node
26
- ```
27
-
28
- ## Role Variables
29
-
30
- - `nodejs_nodesource_pin_priority`: Pin-Priority of the NodeSource repository (default: `500`).
31
-
32
- ## Testing
33
-
34
- To test this role using Docker:
35
-
36
- ```
37
- $ docker build .
38
- ```
39
-
40
- ## Author
41
-
42
- Mark Wolfe <mark@wolfe.id.au>
43
-
44
- ## License
45
-
46
- 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,3 +0,0 @@
1
- ---
2
- # Pin-Priority of NodeSource repository
3
- nodejs_nodesource_pin_priority: 500
@@ -1,2 +0,0 @@
1
- ---
2
- # handlers file for nodejs
@@ -1 +0,0 @@
1
- {install_date: 'Tue Feb 3 20:41:07 2015', 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
- tasks:
6
- - include: "tasks/main.yml"
@@ -1,26 +0,0 @@
1
- # Install Node.js using packages crafted by NodeSource
2
- ---
3
- - name: Ensure the system can use the HTTPS transport for APT
4
- stat: path=/usr/lib/apt/methods/https
5
- register: apt_https_transport
6
-
7
- - name: Install HTTPS transport for APT
8
- apt: pkg=apt-transport-https state=installed
9
- when: not apt_https_transport.stat.exists
10
-
11
- - name: Import the NodeSource GPG key into apt
12
- apt_key: url=https://deb.nodesource.com/gpgkey/nodesource.gpg.key state=present
13
-
14
- - name: Add NodeSource deb repository
15
- apt_repository: repo='deb https://deb.nodesource.com/node {{ ansible_distribution_release }} main' state=present
16
-
17
- - name: Add NodeSource deb-src repository
18
- apt_repository: repo='deb-src https://deb.nodesource.com/node {{ ansible_distribution_release }} main' state=present
19
-
20
- - name: Add NodeSource repository preferences
21
- template:
22
- src: etc/apt/preferences.d/deb_nodesource_com_node.pref.2
23
- dest: /etc/apt/preferences.d/deb_nodesource_com_node.pref
24
-
25
- - name: Install Node.js
26
- apt: pkg=nodejs state=installed update_cache=yes
@@ -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,2 +0,0 @@
1
- ---
2
- # vars file for nodejs
@@ -1 +0,0 @@
1
- .vagrant
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 William Yeh <william.pjyeh@gmail.com>
4
-
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
@@ -1,107 +0,0 @@
1
-
2
- williamyeh.nodejs for Ansible Galaxy
3
- ============
4
-
5
- [![Circle CI](https://circleci.com/gh/William-Yeh/ansible-nodejs.svg?style=shield)](https://circleci.com/gh/William-Yeh/ansible-nodejs)
6
-
7
-
8
- ## Summary
9
-
10
- Role name in Ansible Galaxy: **[williamyeh.nodejs](https://galaxy.ansible.com/list#/roles/3669)**
11
-
12
- This Ansible role has the following features for [Node.js](http://nodejs.org/):
13
-
14
- - Install specific version of Node.js (including [io.js](https://iojs.org/)).
15
-
16
-
17
-
18
-
19
- ## Role Variables
20
-
21
- ### Mandatory variables
22
-
23
- None.
24
-
25
-
26
-
27
- ### Optional variables
28
-
29
- Pick one version to install:
30
-
31
- ```yaml
32
- # Node.js version; e.g., "4.0", "0.12", "0.12.7"
33
- nodejs_version
34
-
35
-
36
- # io.js version; e.g., "3.3"
37
- iojs_version
38
- ```
39
-
40
- If neither `nodejs_version` nor `iojs_version` is defined, `nodejs_version` is defined automatically by `tasks/set-role-variables.yml` as:
41
-
42
- - `nodejs_default_in_apt` for Debian/Ubuntu.
43
- - `nodejs_default_in_yum` for CentOS.
44
-
45
-
46
- User-configurable defaults:
47
-
48
- ```yaml
49
- # install tools for compiling native addons from npm?
50
- nodejs_compile: True
51
- ```
52
-
53
-
54
- ## Usage
55
-
56
-
57
- ### Step 1: add role
58
-
59
- Add role name `williamyeh.nodejs` to your playbook file.
60
-
61
-
62
- ### Step 2: add variables
63
-
64
- Set vars in your playbook file.
65
-
66
- Simple example:
67
-
68
- ```yaml
69
- ---
70
- # file: simple-playbook.yml
71
-
72
- - hosts: all
73
- sudo: True
74
-
75
- roles:
76
- - williamyeh.nodejs
77
-
78
- vars:
79
- nodejs_version: 4.0
80
- ```
81
-
82
-
83
- ## Dependencies
84
-
85
- None.
86
-
87
-
88
- ## License
89
-
90
- Licensed under the MIT License. See the [LICENSE file](LICENSE) for details.
91
-
92
-
93
- ## History
94
-
95
- - 1.0 : From now on, the role installs Node.js from [NodeSource](https://github.com/nodesource/distributions) binary distributions.
96
-
97
-
98
-
99
- Older versions are based on NVM:
100
-
101
- - Rewritten from my pre-Galaxy version [server-config-template](https://github.com/William-Yeh/server-config-template) and Galaxy version [ansible-nvm-nodejs](https://github.com/William-Yeh/ansible-nvm-nodejs).
102
-
103
- - During refactoring, some roles on Ansible Galaxy also inspired me:
104
-
105
- - [leonidas.nvm](https://galaxy.ansible.com/list#/roles/694) forks, especially [ahmednuaman.nvm-ahmed](https://galaxy.ansible.com/list#/roles/2298) and then [g-div/ansible-nvm](https://github.com/g-div/ansible-nvm)
106
-
107
-
@@ -1,33 +0,0 @@
1
- Vagrant.configure(2) do |config|
2
-
3
- # main & default: normal OS series...
4
- config.vm.define "main", primary: true do |node|
5
- node.vm.box = "ubuntu/trusty64"
6
- #node.vm.box = "ubuntu/precise64"
7
- #node.vm.box = "debian/jessie64"
8
- #node.vm.box = "debian/wheezy64"
9
- #node.vm.box = "chef/centos-7.0"
10
- #node.vm.box = "chef/centos-6.6"
11
-
12
- node.vm.provision "ansible" do |ansible|
13
- ansible.playbook = "test.yml"
14
- end
15
- end
16
-
17
-
18
- # docker: for auto build & testing (e.g., Travis CI)
19
- config.vm.define "docker" do |node|
20
- node.vm.box = "williamyeh/ubuntu-trusty64-docker"
21
-
22
- node.vm.provision "shell", inline: <<-SHELL
23
- cd /vagrant
24
- docker build -f test/Dockerfile-ubuntu14.04 -t nodejs_trusty .
25
- docker build -f test/Dockerfile-ubuntu12.04 -t nodejs_precise .
26
- docker build -f test/Dockerfile-debian8 -t nodejs_jessie .
27
- docker build -f test/Dockerfile-debian7 -t nodejs_wheezy .
28
- docker build -f test/Dockerfile-centos7 -t nodejs_centos7 .
29
- docker build -f test/Dockerfile-centos6 -t nodejs_centos6 .
30
- SHELL
31
- end
32
-
33
- end
@@ -1,32 +0,0 @@
1
- machine:
2
- services:
3
- - docker
4
-
5
- dependencies:
6
- override:
7
- - docker info
8
- - docker version
9
-
10
- - docker build -f test/Dockerfile-ubuntu14.04 -t nodejs_trusty .
11
- - docker build -f test/Dockerfile-ubuntu12.04 -t nodejs_precise .
12
- - docker build -f test/Dockerfile-debian8 -t nodejs_jessie .
13
- - docker build -f test/Dockerfile-debian7 -t nodejs_wheezy .
14
- - docker build -f test/Dockerfile-centos7 -t nodejs_centos7 .
15
- - docker build -f test/Dockerfile-centos6 -t nodejs_centos6 .
16
-
17
- test:
18
- override:
19
- - docker run -i nodejs_trusty > result-ubuntu14.04
20
- - docker run -i nodejs_precise > result-ubuntu12.04
21
- - docker run -i nodejs_jessie > result-debian8
22
- - docker run -i nodejs_wheezy > result-debian7
23
- - docker run -i nodejs_centos7 > result-centos7
24
- - docker run -i nodejs_centos6 > result-centos6
25
-
26
- - echo "==> Validating the test results..."
27
- - sh -c "[ -s result-ubuntu14.04 ]"
28
- - sh -c "[ -s result-ubuntu12.04 ]"
29
- - sh -c "[ -s result-debian8 ]"
30
- - sh -c "[ -s result-debian7 ]"
31
- - sh -c "[ -s result-centos7 ]"
32
- - sh -c "[ -s result-centos6 ]"