subspace 1.0.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 502252722c12c738a1eb7fdd9223000f97511661be03d875f9d85a4ee0371a2d
4
- data.tar.gz: 9d180bf402c16d0a178222a559548f1172877c175d16b2c7f01f3ef374993099
3
+ metadata.gz: 16fdeb6665189ad86b0afed09a135d46d09ab3ce3a7fb50965d4aa739cc18fc6
4
+ data.tar.gz: 28bc69bf843488eeb522f7eda442acd82c7c6c42deeb3ee235488d0d89f2a37f
5
5
  SHA512:
6
- metadata.gz: c42b398e7e586f80670135895e65b890578aa606a36596492876f359e39a2160037edc387418833e72a9bd5c255b9bf0b5f4361403468c96c37fda10efcaa083
7
- data.tar.gz: e0bec8f2360847cb043f657f63dfecde5397e6ecb78d8aca4b96fe4392ac508f01402378f7acef7bf87cb069296de1b7a7a4a74a057b3213f09fedb73f99ccd6
6
+ metadata.gz: 2faf2f488e2db5b407ee49e70195ab9989cdb4ebdc58cb02082eba0d36105db900f8af5a1fb5337832ca4d1db99c887baa993bc4e02a02eef343e8465a1e3e46
7
+ data.tar.gz: 56207ff0a0483b70baf34bbe7f131be492c8f9bf730a2d1da378ad543da782ef54221902864e3f494cfb4b2ba6c3bbbfe9951db0420491ceedc0212bac22b692
data/CHANGELOG.md CHANGED
@@ -10,6 +10,15 @@ This project attempts to follow [semantic versioning](https://semver.org/)
10
10
  * Not working on OSX - macs don't read from /etc/profile.d/
11
11
  * Stops showing color if you `sudo su`
12
12
 
13
+ ## 2.0.0
14
+
15
+ * breaking changes
16
+ * Add bundler_version to install specific bundler version. Is required.
17
+
18
+ * enhancements
19
+ * Updates rubygems in ruby-common task
20
+ * Logs apt updates to /opt/subspace/updates.log
21
+
13
22
  ## 1.0.8
14
23
 
15
24
  * enhancements
data/README.md CHANGED
@@ -331,6 +331,7 @@ Installs ruby on the machine. YOu can set a version by picking off the download
331
331
  ruby_version: ruby-2.4.1
332
332
  ruby_checksum: a330e10d5cb5e53b3a0078326c5731888bb55e32c4abfeb27d9e7f8e5d000250
333
333
  ruby_download_location: 'https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz'
334
+ bundler_version: 2.0.1
334
335
 
335
336
 
336
337
  ## sidekiq
@@ -9,19 +9,13 @@
9
9
  state: directory
10
10
  become: yes
11
11
 
12
- - name: Create terminal color file and make it executable
13
- file:
14
- path: "/etc/profile.d/termcolor.sh"
15
- state: touch
16
- mode: a+x
17
- become: true
18
-
19
12
  - name: Set terminal color
20
13
  vars:
21
14
  terminal_env_playbook: "{{terminal_env | default('not provided', true) }}"
22
15
  template:
23
16
  src: terminalcolor
24
17
  dest: "/etc/profile.d/termcolor.sh"
18
+ mode: a+x
25
19
  become: true
26
20
 
27
21
  - name: Set MOTD
@@ -71,7 +65,19 @@
71
65
  - upgrade
72
66
  register: out
73
67
 
74
- - debug: var=out
68
+ - name: Creates /opt/subspace
69
+ file:
70
+ path: /opt/subspace
71
+ state: directory
72
+ become: true
73
+
74
+ - name: Save updates to /opt/subspace/updates.log
75
+ lineinfile:
76
+ path: /opt/subspace/updates.log
77
+ line: "[{{ out.end }}]\n{{ out.stdout }}"
78
+ insertafter: EOF
79
+ create: yes
80
+ become: true
75
81
 
76
82
  - name: apt-get upgrade
77
83
  apt: upgrade=full
@@ -4,7 +4,7 @@ This server brought to you by:
4
4
  \___ \| | | | '_ \___ \| '_ \ / _` |/ __/ _ \
5
5
  ___) | |_| | |_) |__) | |_) | (_| | (_| __/
6
6
  |____/ \__,_|_.__/____/| .__/ \__,_|\___\___|
7
- |_| v1.0.8
7
+ |_| v2.0.0
8
8
  ~~~ https://github.com/tenforwardconsulting/subspace ~~~
9
9
 
10
10
  If you need to make configuration changes to the server, please modify the
@@ -21,6 +21,11 @@
21
21
  - name: Clean up old puma monit scripts
22
22
  shell: rm -f /etc/monit/conf.d/puma_*
23
23
 
24
+ - name: mkdir /etc/monit/conf-enabled
25
+ file:
26
+ path: /etc/monit/conf-enabled
27
+ state: directory
28
+
24
29
  - name: Enable puma monit script
25
30
  file:
26
31
  src: /etc/monit/conf-available/puma_{{project_name}}_{{rails_env}}
@@ -11,6 +11,7 @@
11
11
  - nodejs
12
12
  - zlib1g-dev
13
13
  become: true
14
+ when: ('Ubuntu' in ansible_distribution)
14
15
 
15
16
  - name: Install imagemagick
16
17
  apt:
@@ -18,6 +19,7 @@
18
19
  become: true
19
20
  tags:
20
21
  - imagemagick
22
+ when: ('Ubuntu' in ansible_distribution)
21
23
 
22
24
  - name: Update ImageMagick policy to enable reading PDF files
23
25
  lineinfile:
@@ -28,7 +30,7 @@
28
30
  become: true
29
31
  tags:
30
32
  - imagemagick
31
-
33
+ when: ('Ubuntu' in ansible_distribution)
32
34
 
33
35
  - name: Create /u/apps/{{project_name}}/shared/config
34
36
  file:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  - name: Update APT cache
3
3
  apt: update_cache=yes
4
- sudo: true
4
+ become: true
5
5
  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
6
6
 
7
7
  - name: Retrieve the number of cores that are available for compilation
@@ -10,7 +10,7 @@
10
10
 
11
11
  - name: Install APT prerequisite packages that are necessary to compile applications and gems with native extensions
12
12
  apt: pkg={{ item }}
13
- sudo: true
13
+ become: true
14
14
  with_items:
15
15
  - autoconf
16
16
  - build-essential
@@ -18,21 +18,21 @@
18
18
 
19
19
  - name: Install yum prerequisite packages that are necessary to compile applications and gems with native extensions
20
20
  yum: name="{{ item }}"
21
- sudo: true
21
+ become: true
22
22
  with_items:
23
23
  - autoconf
24
24
  - "@Developer tools"
25
25
  when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'Amazon'
26
26
 
27
27
  - name: Install APT Ruby dependencies
28
- sudo: true
28
+ become: true
29
29
  apt: pkg={{ item }}
30
30
  state=present
31
31
  with_items: "{{ ruby_apt_dependencies }}"
32
32
  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
33
33
 
34
34
  - name: Install yum Ruby dependencies
35
- sudo: true
35
+ become: true
36
36
  yum: name={{ item }}
37
37
  with_items: "{{ ruby_yum_dependencies }}"
38
38
  when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'Amazon'
@@ -41,7 +41,7 @@
41
41
  get_url: url={{ ruby_download_location }}
42
42
  dest=/usr/local/src/
43
43
  sha256sum={{ ruby_checksum }}
44
- sudo: true
44
+ become: true
45
45
 
46
46
  - name: Generate the Ruby installation script
47
47
  template: src=install-ruby.j2
@@ -49,12 +49,12 @@
49
49
  owner=root
50
50
  group=root
51
51
  mode=700
52
- sudo: true
52
+ become: true
53
53
 
54
54
  - name: Run the Ruby installation script
55
55
  command: /usr/local/src/install-ruby.sh
56
56
  creates={{ ruby_location }}/bin/ruby
57
- sudo: true
57
+ become: true
58
58
 
59
59
  - name: Generate the script that allows you to easily run Rake tasks with the correct RAILS_ENV environment variable, and the wrapper script that contains GC settings
60
60
  template: src={{ item }}.j2
@@ -62,19 +62,39 @@
62
62
  owner=root
63
63
  group=root
64
64
  mode=755
65
- sudo: true
65
+ become: true
66
66
  with_items:
67
67
  - rake-env
68
68
  - ruby-gc-wrapper
69
69
 
70
+ - name: Update rubygems
71
+ command: gem update --system
72
+ become: true
73
+
74
+ - name: Remove old bundler bin
75
+ file:
76
+ path: "{{ ruby_location }}/bin/bundle"
77
+ state: absent
78
+ become: true
79
+
80
+ - name: Uninstall Bundler
81
+ gem:
82
+ name: bundler
83
+ state: absent
84
+ user_install: no
85
+ become: true
86
+
70
87
  - name: Install Bundler
71
- command: "{{ ruby_location }}/bin/gem install bundler {{ ruby_bundler_flags }}
72
- creates={{ ruby_location }}/bin/bundle"
73
- sudo: true
88
+ gem:
89
+ name: bundler
90
+ version: "{{ bundler_version }}"
91
+ state: present
92
+ user_install: no
93
+ become: true
74
94
 
75
95
  - name: Make Ruby symlinks
76
96
  file: path=/usr/local/bin/{{ item }}
77
97
  src={{ ruby_location }}/bin/{{ item }}
78
98
  state=link
79
- sudo: true
99
+ become: true
80
100
  with_items: "{{ ruby_symlinks }}"
@@ -1,3 +1,3 @@
1
1
  module Subspace
2
- VERSION = "1.0.8"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-22 00:00:00.000000000 Z
11
+ date: 2019-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler