subspace 1.0.3 → 1.0.4
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/ansible/roles/common/tasks/main.yml +7 -0
- data/ansible/roles/common/templates/motd +1 -1
- data/lib/subspace/cli.rb +3 -0
- data/lib/subspace/commands/bootstrap.rb +16 -0
- data/lib/subspace/commands/provision.rb +1 -1
- data/lib/subspace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d685d102ccd5aab546e77d660dfc7c8dcf25c2ee
|
4
|
+
data.tar.gz: 7fd7f5d5cb9b04a97872ce5e8d5b3ccd90700acd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44ac08b92ec270e6f838ea9f8e4b2cced96c99a0f0f088889282a4182268d6aeed714bf8758a63921d7a1724aca8cefa819a52a7f31078cb800e12551b81b20b
|
7
|
+
data.tar.gz: ed6b80fa239c6e6ca40dd3115fb0ac515249f0bfe21f03018833365dd6394e6a3e5b268e429c3df7e6339904b066f63607f0b85fa283416e0e2eebb69787d09f
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,14 @@ This project attempts to follow [semantic versioning](https://semver.org/)
|
|
8
8
|
|
9
9
|
* _nada_
|
10
10
|
|
11
|
+
## 1.0.4 - 2018-10-18
|
12
|
+
|
13
|
+
* enhancement
|
14
|
+
* Add way to specify private key when running the bootstrap command.
|
15
|
+
* Add way to specify only certain hosts to run the playbook on when running the
|
16
|
+
provision command.
|
17
|
+
* The common role now runs `apt-get autoremove` after doing the update and upgrade.
|
18
|
+
|
11
19
|
## 1.0.3 - 2018-10-08
|
12
20
|
|
13
21
|
* bug fixes
|
@@ -4,7 +4,7 @@ This server brought to you by:
|
|
4
4
|
\___ \| | | | '_ \___ \| '_ \ / _` |/ __/ _ \
|
5
5
|
___) | |_| | |_) |__) | |_) | (_| | (_| __/
|
6
6
|
|____/ \__,_|_.__/____/| .__/ \__,_|\___\___|
|
7
|
-
|_| v1.0.
|
7
|
+
|_| v1.0.4
|
8
8
|
~~~ https://github.com/tenforwardconsulting/subspace ~~~
|
9
9
|
|
10
10
|
If you need to make configuration changes to the server, please modify the
|
data/lib/subspace/cli.rb
CHANGED
@@ -39,6 +39,9 @@ class Subspace::Cli
|
|
39
39
|
copy the authorized_keys file. You will possibly need to type a password here.'
|
40
40
|
c.option '--password', "Ask for a password instead of using ssh keys"
|
41
41
|
c.option '--yum', "Use yum instead of apt to install python"
|
42
|
+
Subspace::Commands::Bootstrap::PASS_THROUGH_PARAMS.each do |param_name|
|
43
|
+
c.option "--#{param_name} #{param_name.upcase}", "Passed directly through to ansible-playbook command"
|
44
|
+
end
|
42
45
|
c.when_called Subspace::Commands::Bootstrap
|
43
46
|
end
|
44
47
|
|
@@ -1,6 +1,9 @@
|
|
1
1
|
class Subspace::Commands::Bootstrap < Subspace::Commands::Base
|
2
|
+
PASS_THROUGH_PARAMS = ["private-key"]
|
3
|
+
|
2
4
|
def initialize(args, options)
|
3
5
|
@host_spec = args.first
|
6
|
+
@options = options
|
4
7
|
@ask_pass = options.password
|
5
8
|
@yum = options.yum
|
6
9
|
run
|
@@ -23,6 +26,7 @@ class Subspace::Commands::Bootstrap < Subspace::Commands::Base
|
|
23
26
|
"path=/home/{{ansible_ssh_user}}/.ssh state=directory mode=0700",
|
24
27
|
"-vvvv"
|
25
28
|
]
|
29
|
+
cmd = add_pass_through_params cmd
|
26
30
|
bootstrap_command cmd
|
27
31
|
end
|
28
32
|
|
@@ -37,6 +41,7 @@ class Subspace::Commands::Bootstrap < Subspace::Commands::Base
|
|
37
41
|
"--become",
|
38
42
|
"-vvvv"
|
39
43
|
]
|
44
|
+
cmd = add_pass_through_params cmd
|
40
45
|
bootstrap_command cmd
|
41
46
|
end
|
42
47
|
|
@@ -47,4 +52,15 @@ class Subspace::Commands::Bootstrap < Subspace::Commands::Base
|
|
47
52
|
ansible_command *cmd
|
48
53
|
end
|
49
54
|
|
55
|
+
def add_pass_through_params(cmd)
|
56
|
+
PASS_THROUGH_PARAMS.each do |param_name|
|
57
|
+
x = param_name.split('-')[1..-1].map(&:upcase).join('_')
|
58
|
+
hash_key = (param_name.gsub('-', '_') + (x == '' ? '' : "_#{x}")).to_sym
|
59
|
+
value = @options.__hash__[hash_key]
|
60
|
+
if value
|
61
|
+
cmd += ["--#{param_name}", value]
|
62
|
+
end
|
63
|
+
end
|
64
|
+
cmd
|
65
|
+
end
|
50
66
|
end
|
data/lib/subspace/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Samson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|