taperole 1.5.5 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +3 -0
  3. data/.travis.yml +10 -0
  4. data/CHANGELOG.md +9 -0
  5. data/README.md +22 -5
  6. data/bin/tape +6 -0
  7. data/lib/tape/ansible_runner.rb +1 -0
  8. data/lib/tape/overwriter.rb +14 -0
  9. data/requirements.yml +1 -2
  10. data/roles/backend_install_essentials/meta/main.yml +1 -1
  11. data/roles/backend_install_essentials/tasks/main.yml +5 -0
  12. data/roles/backend_install_essentials/templates/gemrc.j2 +1 -0
  13. data/roles/postgres/meta/main.yml +2 -0
  14. data/roles/ruby/defaults/main.yml +11 -0
  15. data/roles/ruby/files/gemrc +5 -0
  16. data/{vendor/zzet.rbenv → roles/ruby}/tasks/apt_build_depends.yml +2 -3
  17. data/roles/ruby/tasks/main.yml +120 -0
  18. data/taperole.gemspec +1 -1
  19. data/templates/base/tape_vars.example.yml +17 -0
  20. data/test/base_docker_box/Dockerfile +38 -0
  21. data/test/rails/Dockerfile +34 -0
  22. data/test/rails/start_rails.sh +6 -0
  23. data/test/rails/tape_vars.yml +12 -0
  24. data/vars/defaults.yml +26 -0
  25. data/vendor/Stouts.backup/.bumpversion.cfg +6 -0
  26. data/vendor/Stouts.backup/.gitignore +1 -0
  27. data/vendor/Stouts.backup/.travis.yml +34 -0
  28. data/vendor/Stouts.backup/CONTRIBUTORS +7 -0
  29. data/vendor/Stouts.backup/LICENSE +21 -0
  30. data/vendor/Stouts.backup/Makefile +20 -0
  31. data/vendor/Stouts.backup/README.md +169 -0
  32. data/vendor/Stouts.backup/defaults/main.yml +93 -0
  33. data/vendor/Stouts.backup/meta/.galaxy_install_info +1 -0
  34. data/vendor/Stouts.backup/meta/main.yml +16 -0
  35. data/vendor/Stouts.backup/tasks/backup.yml +10 -0
  36. data/vendor/Stouts.backup/tasks/configure.yml +53 -0
  37. data/vendor/Stouts.backup/tasks/install.deb.yml +19 -0
  38. data/vendor/Stouts.backup/tasks/main.yml +5 -0
  39. data/vendor/Stouts.backup/tasks/remove.yml +12 -0
  40. data/vendor/Stouts.backup/templates/conf.j2 +78 -0
  41. data/vendor/Stouts.backup/templates/cron.j2 +10 -0
  42. data/vendor/Stouts.backup/templates/duply.sh.j2 +2240 -0
  43. data/vendor/Stouts.backup/templates/exclude.j2 +3 -0
  44. data/vendor/Stouts.backup/templates/logrotate.j2 +14 -0
  45. data/vendor/Stouts.backup/templates/post.j2 +14 -0
  46. data/vendor/Stouts.backup/templates/pre.j2 +26 -0
  47. data/vendor/Stouts.backup/templates/restore.j2 +29 -0
  48. data/vendor/Stouts.backup/test.yml +6 -0
  49. metadata +42 -26
  50. data/id_rsa_sb_basebox +0 -27
  51. data/vendor/zzet.rbenv/.kitchen.yml +0 -40
  52. data/vendor/zzet.rbenv/.travis.yml +0 -15
  53. data/vendor/zzet.rbenv/README.md +0 -100
  54. data/vendor/zzet.rbenv/defaults/main.yml +0 -20
  55. data/vendor/zzet.rbenv/files/default-gems +0 -1
  56. data/vendor/zzet.rbenv/files/gemrc +0 -4
  57. data/vendor/zzet.rbenv/meta/.galaxy_install_info +0 -1
  58. data/vendor/zzet.rbenv/meta/main.yml +0 -27
  59. data/vendor/zzet.rbenv/role.yml +0 -10
  60. data/vendor/zzet.rbenv/tasks/homebrew_build_depends.yml +0 -12
  61. data/vendor/zzet.rbenv/tasks/main.yml +0 -226
  62. data/vendor/zzet.rbenv/tasks/pacman_build_depends.yml +0 -2
  63. data/vendor/zzet.rbenv/tasks/yum_build_depends.yml +0 -15
  64. data/vendor/zzet.rbenv/test/integration/default/serverspec/rbenv_spec.rb +0 -26
  65. data/vendor/zzet.rbenv/test/integration/helpers/serverspec/spec_helper.rb +0 -10
  66. data/vendor/zzet.rbenv/test/integration/site.yml +0 -8
  67. data/vendor/zzet.rbenv/vars/user.yml +0 -2
  68. /data/{vendor/zzet.rbenv → roles/ruby}/files/vars +0 -0
  69. /data/{vendor/zzet.rbenv → roles/ruby}/handlers/main.yml +0 -0
  70. /data/{vendor/zzet.rbenv → roles/ruby}/templates/rbenv.sh.j2 +0 -0
  71. /data/{vendor/zzet.rbenv → roles/ruby}/vars/main.yml +0 -0
  72. /data/{vendor/zzet.rbenv → roles/ruby}/vars/system.yml +0 -0
@@ -0,0 +1,3 @@
1
+ {% for exclude in item.exclude|default(backup_exclude) %}
2
+ - {{exclude}}
3
+ {% endfor %}
@@ -0,0 +1,14 @@
1
+ # This file was generated by Ansible for {{ansible_fqdn}}
2
+ # Do NOT modify this file by hand!
3
+
4
+ {% for profile in backup_profiles %}
5
+ {{backup_logdir}}/{{profile.name}}.log {
6
+ compress
7
+ copytruncate
8
+ daily
9
+ dateext
10
+ missingok
11
+ rotate 7
12
+ size 10M
13
+ }
14
+ {% endfor %}
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+
3
+ # This file was generated by Ansible for {{ ansible_fqdn }}
4
+ # Do NOT modify this file by hand!
5
+
6
+ WORKDIR={{backup_work}}/{{item.name}}
7
+
8
+ {% if item.source.startswith('postgresql://') or item.source.startswith('mysql://') or item.source.startswith('mongo://') %}
9
+ rm -rf $WORKDIR/dump
10
+ {% endif %}
11
+
12
+ {% for action in item.post_actions|default([]) %}
13
+ {{ action }}
14
+ {% endfor %}
@@ -0,0 +1,26 @@
1
+ #!/bin/bash
2
+
3
+ # This file was generated by Ansible for {{ ansible_fqdn }}
4
+ # Do NOT modify this file by hand!
5
+
6
+ WORKDIR={{backup_work}}/{{item.name}}
7
+
8
+ {% if item.source.startswith('postgresql://') %}
9
+
10
+ DBNAME={{item.source.split('postgresql://')[-1]}}
11
+ pg_dump -U {{backup_postgres_user}} {{ '-h ' + backup_postgres_host if backup_postgres_host else ''}} {{ ('-p %s' % backup_postgres_port) if backup_postgres_port else ''}} -c $DBNAME -f ${WORKDIR}/dump
12
+
13
+ {% elif item.source.startswith('mysql://') %}
14
+
15
+ DBNAME={{item.source.split('mysql://')[-1]}}
16
+ mysqldump -u {{backup_mysql_user}} -p{{backup_mysql_pass}} $DBNAME > ${WORKDIR}/dump
17
+
18
+ {% elif item.source.startswith('mongo://') %}
19
+
20
+ mongodump --out $WORKDIR/dump
21
+
22
+ {% endif %}
23
+
24
+ {% for action in item.pre_actions|default([]) %}
25
+ {{ action }}
26
+ {% endfor %}
@@ -0,0 +1,29 @@
1
+ #!/bin/bash
2
+
3
+ # This file was generated by Ansible for {{ ansible_fqdn }}
4
+ # Do NOT modify this file by hand!
5
+
6
+ WORKDIR={{backup_work}}/{{item.name}}
7
+
8
+ {% if item.source.startswith('postgresql://') %}
9
+
10
+ DBNAME={{item.source.split('postgresql://')[-1]}}
11
+ psql -U {{backup_postgres_user}} {{ '-h ' + backup_postgres_host if backup_postgres_host else ''}} {{ ('-p %s' % backup_postgres_port) if backup_postgres_port else ''}} $DBNAME < $WORKDIR/dump
12
+ rm -rf $WORKDIR/dump
13
+
14
+ {% elif item.source.startswith('mysql://') %}
15
+
16
+ DBNAME={{item.source.split('mysql://')[-1]}}
17
+ mysql -u {{backup_mysql_user}} -p{{backup_mysql_pass}} $DBNAME < ${WORKDIR}/dump
18
+ rm -rf $WORKDIR/dump
19
+
20
+ {% elif item.source.startswith('mongo://') %}
21
+
22
+ mongorestore --drop $WORKDIR/dump
23
+ rm -rf $WORKDIR/dump
24
+
25
+ {% endif %}
26
+
27
+ {% for action in item.restore_actions|default([]) %}
28
+ {{ action }}
29
+ {% endfor %}
@@ -0,0 +1,6 @@
1
+ - hosts: all
2
+ tasks:
3
+ - include: tasks/main.yml
4
+ vars_files:
5
+ - defaults/main.yml
6
+ - .travis.yml
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.5
4
+ version: 1.6.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-03-16 00:00:00.000000000 Z
13
+ date: 2016-05-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: slack-notifier
@@ -37,6 +37,7 @@ extra_rdoc_files: []
37
37
  files:
38
38
  - ".gitignore"
39
39
  - ".hound.yml"
40
+ - ".travis.yml"
40
41
  - CHANGELOG.md
41
42
  - CONTRIBUTING.md
42
43
  - LICENSE
@@ -45,12 +46,12 @@ files:
45
46
  - ansible.cfg
46
47
  - bin/tape
47
48
  - config/style_guides/ruby.yml
48
- - id_rsa_sb_basebox
49
49
  - lib/tape.rb
50
50
  - lib/tape/ansible_runner.rb
51
51
  - lib/tape/info.rb
52
52
  - lib/tape/installer.rb
53
53
  - lib/tape/notifiers/slack.rb
54
+ - lib/tape/overwriter.rb
54
55
  - lib/tape/qemu_provisioner.rb
55
56
  - requirements.yml
56
57
  - roles/after_deploy/tasks/main.yml
@@ -61,6 +62,7 @@ files:
61
62
  - roles/backend_config/templates/env_config.yml.j2
62
63
  - roles/backend_install_essentials/meta/main.yml
63
64
  - roles/backend_install_essentials/tasks/main.yml
65
+ - roles/backend_install_essentials/templates/gemrc.j2
64
66
  - roles/backend_install_essentials/templates/memcached.j2
65
67
  - roles/database_load/defaults/main.yml
66
68
  - roles/database_load/tasks/db_reset.yml
@@ -90,6 +92,15 @@ files:
90
92
  - roles/postgres/meta/main.yml
91
93
  - roles/redis/tasks/main.yml
92
94
  - roles/redis/templates/redis.j2
95
+ - roles/ruby/defaults/main.yml
96
+ - roles/ruby/files/gemrc
97
+ - roles/ruby/files/vars
98
+ - roles/ruby/handlers/main.yml
99
+ - roles/ruby/tasks/apt_build_depends.yml
100
+ - roles/ruby/tasks/main.yml
101
+ - roles/ruby/templates/rbenv.sh.j2
102
+ - roles/ruby/vars/main.yml
103
+ - roles/ruby/vars/system.yml
93
104
  - roles/sidekiq/defaults/main.yml
94
105
  - roles/sidekiq/meta/main.yml
95
106
  - roles/sidekiq/tasks/main.yml
@@ -109,6 +120,10 @@ files:
109
120
  - templates/static_html/deploy.example.yml
110
121
  - templates/static_html/omnibox.example.yml
111
122
  - templates/static_html/tape_vars.example.yml
123
+ - test/base_docker_box/Dockerfile
124
+ - test/rails/Dockerfile
125
+ - test/rails/start_rails.sh
126
+ - test/rails/tape_vars.yml
112
127
  - vars/defaults.yml
113
128
  - vendor/ANXS.postgresql/.gitignore
114
129
  - vendor/ANXS.postgresql/.travis.yml
@@ -149,6 +164,30 @@ files:
149
164
  - vendor/ANXS.postgresql/vars/Debian.yml
150
165
  - vendor/ANXS.postgresql/vars/RedHat.yml
151
166
  - vendor/ANXS.postgresql/vars/empty.yml
167
+ - vendor/Stouts.backup/.bumpversion.cfg
168
+ - vendor/Stouts.backup/.gitignore
169
+ - vendor/Stouts.backup/.travis.yml
170
+ - vendor/Stouts.backup/CONTRIBUTORS
171
+ - vendor/Stouts.backup/LICENSE
172
+ - vendor/Stouts.backup/Makefile
173
+ - vendor/Stouts.backup/README.md
174
+ - vendor/Stouts.backup/defaults/main.yml
175
+ - vendor/Stouts.backup/meta/.galaxy_install_info
176
+ - vendor/Stouts.backup/meta/main.yml
177
+ - vendor/Stouts.backup/tasks/backup.yml
178
+ - vendor/Stouts.backup/tasks/configure.yml
179
+ - vendor/Stouts.backup/tasks/install.deb.yml
180
+ - vendor/Stouts.backup/tasks/main.yml
181
+ - vendor/Stouts.backup/tasks/remove.yml
182
+ - vendor/Stouts.backup/templates/conf.j2
183
+ - vendor/Stouts.backup/templates/cron.j2
184
+ - vendor/Stouts.backup/templates/duply.sh.j2
185
+ - vendor/Stouts.backup/templates/exclude.j2
186
+ - vendor/Stouts.backup/templates/logrotate.j2
187
+ - vendor/Stouts.backup/templates/post.j2
188
+ - vendor/Stouts.backup/templates/pre.j2
189
+ - vendor/Stouts.backup/templates/restore.j2
190
+ - vendor/Stouts.backup/test.yml
152
191
  - vendor/geerlingguy.memcached/.gitignore
153
192
  - vendor/geerlingguy.memcached/.travis.yml
154
193
  - vendor/geerlingguy.memcached/README.md
@@ -208,29 +247,6 @@ files:
208
247
  - vendor/tersmitten.htop/tests/test.yml
209
248
  - vendor/tersmitten.htop/tests/vagrant.yml
210
249
  - vendor/tersmitten.htop/vars/main.yml
211
- - vendor/zzet.rbenv/.kitchen.yml
212
- - vendor/zzet.rbenv/.travis.yml
213
- - vendor/zzet.rbenv/README.md
214
- - vendor/zzet.rbenv/defaults/main.yml
215
- - vendor/zzet.rbenv/files/default-gems
216
- - vendor/zzet.rbenv/files/gemrc
217
- - vendor/zzet.rbenv/files/vars
218
- - vendor/zzet.rbenv/handlers/main.yml
219
- - vendor/zzet.rbenv/meta/.galaxy_install_info
220
- - vendor/zzet.rbenv/meta/main.yml
221
- - vendor/zzet.rbenv/role.yml
222
- - vendor/zzet.rbenv/tasks/apt_build_depends.yml
223
- - vendor/zzet.rbenv/tasks/homebrew_build_depends.yml
224
- - vendor/zzet.rbenv/tasks/main.yml
225
- - vendor/zzet.rbenv/tasks/pacman_build_depends.yml
226
- - vendor/zzet.rbenv/tasks/yum_build_depends.yml
227
- - vendor/zzet.rbenv/templates/rbenv.sh.j2
228
- - vendor/zzet.rbenv/test/integration/default/serverspec/rbenv_spec.rb
229
- - vendor/zzet.rbenv/test/integration/helpers/serverspec/spec_helper.rb
230
- - vendor/zzet.rbenv/test/integration/site.yml
231
- - vendor/zzet.rbenv/vars/main.yml
232
- - vendor/zzet.rbenv/vars/system.yml
233
- - vendor/zzet.rbenv/vars/user.yml
234
250
  homepage: https://github.com/smashingboxes/taperole
235
251
  licenses:
236
252
  - MIT
data/id_rsa_sb_basebox DELETED
@@ -1,27 +0,0 @@
1
- -----BEGIN RSA PRIVATE KEY-----
2
- MIIEowIBAAKCAQEAzdGlX5Ostx5Tuq8s3ZlImcs3lw5SmDbRi4SCdbnKKeTQJ/M6
3
- Tjfluj3SVy1ZwzL0gQWLLS9aGBX8/6XRCyddBuBDkkK7Tl+7Xvaz4IuXbl6JOgYr
4
- zYa4i8SM+mKxUwjfNTgK7df//K4Htzs9dW19CpYvzAnRDE1ghT5RBkLinfuTb3+z
5
- IjvYWKsovJTiv624OWeRZxWSvIyalfsRKlGBvbjJC5PlAxOzrVbnyEeNh5JAGtiP
6
- lG/sikqtz0Vd08jXRlwsG/pz65hzWKN8XwTZvKIjXJgdwXyY8VJOjHnsdWOV9JSN
7
- m5+/nHVpZLBh8u1Ms3As4FngCvsO9Z8dU+f+4QIDAQABAoIBAEjAuJJGYyD/qV0u
8
- Gs/iJRWoDehpeaywg/WrS2pN2DZi2WmlwpBvldb1j2qdb0Neuar5yK6aNGCbNSkw
9
- 9enZajrJ/1iuGgOkN1lkH0VaUpcC98L493bZDlbpjWPciw3s7umi+8oDNkudQMD2
10
- Qc1GfJLHb/HR7oFIwLuYwY9TCUQKTU8KP77HSwKto1MMEBrA+wHd5G6eLKLC+Gvh
11
- XXkiG2nafs/xgKX6aq4YKcKBJJO7f4tAIeqQZL1x9dJQqhtopj31P8Hv7xNh1zxc
12
- V61O7gCNM/kP7Mur3XYUFPvLnQOUfPaZCUzxWoJphh5UzBkJyCq4pquA6Q6cx/Im
13
- NLha5oECgYEA6cCTUCmC7yiKcgUUcw1RFYE91bgxlSo6dliGev9eXbP84N3IReCV
14
- 8+0TZqTjLKVVANYOBGf3uYC8o0CO6c9Q4t/7bYt0/TuZD/PciCCSNt2GLsr/LVHB
15
- Qoum6kytm4ZRJDWUPUVv+89xYhXgwogdrZXZc5yR/K0sJUnl+S8St8kCgYEA4Wh4
16
- Gkp8YKsSCdUaKR46AWRpOh6P4YllcfBj7eeW5+Dp78yLw6bjfxOqNgfMtP3oyKR4
17
- tic0u0tBIvn3GFFwca+PpYhejdXNivmXGq6bADu+qOQJXtCpOVWhA6rqslJEuAnb
18
- yAmvwoWEecti4Rqx52z3wV/PWiqfkMTUI7IWSlkCgYBSU7sOnrA430RziAp9wxDt
19
- zAklPqxn5umUSPWEWHC5++xynmotAj6OHM+adTR1wv0/QCTLtHpxYUAPF2u+OYA5
20
- h72cBWP81ILCNZdUcnRM0pSx4lkhcwvoDhuJpdv3TMVDRYOiWNRqEdPTQfVZTmt1
21
- ebOOnnRkU/GaaH6Q1t120QKBgQCF8M0FWmOEEcNbQl0UN9jiAOeiWIzIyRsV1HGc
22
- 6bO7P+Pi0ZnvfdjLJ0VKa+IRXpuXtlvgaXWlIben7/8LXUFC3L6v71O4VmaYAW3v
23
- tfd28Ql/VFnZFIaqAh72jfZ+VfJtpbYKrO7a2Pn6YYf1GSbDzPV/283b114P6VXh
24
- jC5AqQKBgEF8TyZNb5ERgfsbzS9TerP+MbJ4jC7lVrOUZlQeF8URbq81aERIM4Or
25
- 18RwSXyAywObJWCXYdPdEFjYYaSBw7rSub87/bNiQHZoyTC08R8ZEAIub58HTNav
26
- taWNCo22rsYcaJysHeIqKhl6iFOYhdOucLFZJZO4Vi/PkGQ9v5V7
27
- -----END RSA PRIVATE KEY-----
@@ -1,40 +0,0 @@
1
- ---
2
- driver:
3
- name: vagrant
4
-
5
- provisioner:
6
- # ansible_platform: ubuntu
7
- name: ansible_playbook
8
- # roles_path:
9
- hosts: test-kitchen
10
- require_ansible_repo: true
11
- ansible_verbose: true
12
- ansible_verbosity: 1
13
- sudo: true
14
- extra_vars:
15
- rbenv:
16
- env: system
17
- version: v0.4.0
18
- ruby_version: 2.1.2
19
-
20
- platforms:
21
- # - name: ubuntu-10.04 # lucid
22
- - name: ubuntu-12.04 # precise
23
- - name: ubuntu-13.10 # saucy
24
- - name: ubuntu-14.04 # trusty
25
- # - name: ubuntu-14.10 # utopic ## No bento box yet... Official Scheduled Release: October 23rd 2014
26
- # - name: centos-5.10 # TODO: NOT TESTED YET... unsure if kitchen-ansible works yet...
27
- - name: centos-6.4
28
- - name: centos-6.5
29
- # - name: centos-7.0 # TODO: Needs work to fix kitchen-ansible repo to use
30
- # - name: nocm_centos-6.5
31
- # driver_plugin: vagrant
32
- # driver_config:
33
- # box: nocm_centos-6.5
34
- # box_url: http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box
35
- # network:
36
- # - ['forwarded_port', {guest: 8080, host: 8080}]
37
- # - [ 'private_network', { ip: '192.168.33.11' } ]
38
-
39
- suites:
40
- - name: default
@@ -1,15 +0,0 @@
1
- ---
2
- language: python
3
- python: "2.7"
4
- before_install:
5
- - sudo apt-get update -qq
6
- - sudo apt-get install -qq python-apt python-pycurl
7
- install:
8
- - pip install ansible
9
- script:
10
- - echo localhost > inventory
11
- - ansible-playbook --syntax-check -i inventory role.yml
12
- - ansible-playbook -i inventory role.yml --connection=local --sudo -vvvv
13
- os:
14
- - linux
15
- - osx
@@ -1,100 +0,0 @@
1
- rbenv
2
- ========
3
-
4
- Role for installing [rbenv](https://github.com/sstephenson/rbenv).
5
-
6
- Role ready status
7
- ------------
8
-
9
- [![Build Status](https://travis-ci.org/zzet/ansible-rbenv-role.png?branch=master)](https://travis-ci.org/zzet/ansible-rbenv-role)
10
-
11
- Requirements
12
- ------------
13
-
14
- none
15
-
16
- Role Variables
17
- --------------
18
-
19
- Default variables are:
20
-
21
- rbenv:
22
- env: system
23
- version: v0.4.0
24
- ruby_version: 2.2.3
25
-
26
- rbenv_repo: "https://github.com/sstephenson/rbenv.git"
27
-
28
- rbenv_plugins:
29
- - { name: "rbenv-vars",
30
- repo: "https://github.com/sstephenson/rbenv-vars.git",
31
- version: "v1.2.0" }
32
-
33
- - { name: "ruby-build",
34
- repo: "https://github.com/sstephenson/ruby-build.git",
35
- version: "v20151028" }
36
-
37
- - { name: "rbenv-default-gems",
38
- repo: "https://github.com/sstephenson/rbenv-default-gems.git",
39
- version: "v1.0.0" }
40
-
41
- - { name: "rbenv-installer",
42
- repo: "https://github.com/fesplugas/rbenv-installer.git",
43
- version: "8bb9d34d01f78bd22e461038e887d6171706e1ba" }
44
-
45
- - { name: "rbenv-update",
46
- repo: "https://github.com/rkh/rbenv-update.git",
47
- version: "32218db487dca7084f0e1954d613927a74bc6f2d" }
48
-
49
- - { name: "rbenv-whatis",
50
- repo: "https://github.com/rkh/rbenv-whatis.git",
51
- version: "v1.0.0" }
52
-
53
- - { name: "rbenv-use",
54
- repo: "https://github.com/rkh/rbenv-use.git",
55
- version: "v1.0.0" }
56
-
57
- rbenv_root: "{% if rbenv.env == 'system' %}/usr/local/rbenv{% else %}$HOME/.rbenv{% endif %}"
58
-
59
- rbenv_users: []
60
-
61
- Description:
62
-
63
- - ` rbenv.env ` - Type of rbenv installation. Allows 'system' or 'user' values
64
- - ` rbenv.version ` - Version of rbenv to install (tag from [rbenv releases page](https://github.com/sstephenson/rbenv/releases))
65
- - ` rbenv.ruby_version ` - Version of ruby to install as global rbenv ruby
66
- - ` rbenv_repo ` - Repository with source code of rbenv to install
67
- - ` rbenv_plugins ` - Array of Hashes with information about plugins to install
68
- - ` rbenv_root ` - Install path
69
- - ` rbenv_users ` - Array of usernames for multiuser install. User must be present in the system
70
- - ` default_gems_file ` - This is Rbenv's plugin _rbenv-default-gems_. Sets the path to a default-gems file of your choice (_don't set it_ if you want to use the default file `files/default-gems`)
71
-
72
- Example:
73
-
74
- - hosts: web
75
- vars:
76
- rbenv:
77
- env: user
78
- version: v0.4.0
79
- ruby_version: 2.0.0-p353
80
- roles:
81
- - role: zzet.rbenv
82
- rbenv_users:
83
- - user
84
-
85
- Dependencies
86
- ------------
87
-
88
- none
89
-
90
- License
91
- -------
92
-
93
- MIT
94
-
95
- Author Information
96
- ------------------
97
-
98
- [Andrew Kumanyaev](http://github.com/zzet)
99
-
100
- [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/zzet/ansible-rbenv-role/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
@@ -1,20 +0,0 @@
1
- ---
2
- rbenv:
3
- env: system
4
- version: v0.4.0
5
- ruby_version: 2.2.3
6
-
7
- rbenv_repo: "https://github.com/sstephenson/rbenv.git"
8
-
9
- rbenv_plugins:
10
- - { name: "rbenv-vars", repo: "https://github.com/sstephenson/rbenv-vars.git", version: "v1.2.0" }
11
- - { name: "ruby-build", repo: "https://github.com/sstephenson/ruby-build.git", version: "v20151028" }
12
- - { name: "rbenv-default-gems", repo: "https://github.com/sstephenson/rbenv-default-gems.git", version: "v1.0.0" }
13
- - { name: "rbenv-installer", repo: "https://github.com/fesplugas/rbenv-installer.git", version: "22cc96aa45d06faca5958b1aa1688596198407a3" }
14
- - { name: "rbenv-update", repo: "https://github.com/rkh/rbenv-update.git", version: "bf757453498337807a46e24074d29173f1a8abec" }
15
- - { name: "rbenv-whatis", repo: "https://github.com/rkh/rbenv-whatis.git", version: "v1.0.0" }
16
- - { name: "rbenv-use", repo: "https://github.com/rkh/rbenv-use.git", version: "v1.0.0" }
17
-
18
- rbenv_root: "{% if rbenv.env == 'system' %}/usr/local/rbenv{% else %}~/.rbenv{% endif %}"
19
-
20
- rbenv_users: []
@@ -1 +0,0 @@
1
- bundler
@@ -1,4 +0,0 @@
1
- ---
2
- :sources:
3
- - https://rubygems.org
4
- gem: --no-ri --no-rdoc
@@ -1 +0,0 @@
1
- {install_date: 'Wed Jan 20 20:33:40 2016', version: 2.1.7}
@@ -1,27 +0,0 @@
1
- ---
2
- galaxy_info:
3
- author: "Andrew Kumanyaev"
4
- description: rbenv
5
- company: Undev
6
- license: MIT
7
- min_ansible_version: 1.7.1
8
- version: 0.2
9
-
10
- platforms:
11
- - name: EL
12
- versions:
13
- # - 5
14
- - 6
15
- # - 7
16
- - name: Ubuntu
17
- versions:
18
- # - lucid # 10.04 ## package is named git-core 10.04... also geerlingguy.git doesn't support 10.04 either
19
- - precise # 12.04
20
- - saucy # 13.10
21
- - trusty # 14.04
22
- # - utopic # 14.10
23
- categories:
24
- - development
25
- - system
26
-
27
- dependencies: []
@@ -1,10 +0,0 @@
1
- ---
2
- - hosts: localhost
3
- remote_user: root
4
- vars_files:
5
- - 'vars/main.yml'
6
- - 'defaults/main.yml'
7
- tasks:
8
- - include: 'tasks/main.yml'
9
- handlers:
10
- - include: 'handlers/main.yml'
@@ -1,12 +0,0 @@
1
- ---
2
- - homebrew: name={{ item }} state=present
3
- with_items:
4
- - openssl
5
- - libyaml
6
-
7
- # required for building Ruby <= 1.9.3-p0
8
- - homebrew_tap: tap=homebrew/dupes state=present
9
- when: rbenv.ruby_version <= '1.9.3-p0'
10
-
11
- - homebrew: name=apple-gcc42 state=present
12
- when: rbenv.ruby_version <= '1.9.3-p0'