sambot 0.1.129 → 0.1.130
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/lib/sambot/templates/Vagrantfile.erb +0 -1
- data/lib/sambot/templates/bootstrap.sh +5 -7
- data/lib/sambot/version.rb +1 -1
- data/lib/sambot/workflow/session.rb +3 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f417d900528b581f8042ea65940b1dfef9618d2
|
4
|
+
data.tar.gz: c00d8d29969bf49566baee2af586f47b692fc4c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c64393f70886ca30650b72451fdcfb120256f44e5a2676095c59076ab90d01a7f33886f49d34f820382fe9282fc502db9bee2b3ae6197146f121596ab9368ca8
|
7
|
+
data.tar.gz: ed3ed704bfd4a3a41fc57ab3cdc312a7879ec5d1a0ec5b40f0e42f7cb0d89da1015c05d867caa4e9d91ceb879cb064af61345e2c81be29a11f5917752e00f0ad
|
@@ -86,7 +86,6 @@ Vagrant.configure("2") do |c|
|
|
86
86
|
<% end %>
|
87
87
|
|
88
88
|
<% if config[:box] =~ /centos/ %>
|
89
|
-
<% #c.vm.provision "file", source: "~/.vault-token", destination: "/tmp/vault-token" %>
|
90
89
|
c.vm.provision "shell", inline: "bash /vagrant/bootstrap.sh"
|
91
90
|
<% else %>
|
92
91
|
c.vm.provision "shell", inline: "powershell -ExecutionPolicy Bypass -File C:/Vagrant/bootstrap.ps1"
|
@@ -1,10 +1,8 @@
|
|
1
1
|
#!/bin/bash -e
|
2
|
-
#token=$(cat /tmp/vault-token)
|
3
|
-
#sudo mkdir /etc/vault
|
4
|
-
#echo "{\"skip-verify\": true, \"access\": \"$token\", \"vault-addr\": \"https://vault.brighter.io:8200\"}" > /etc/vault/tokens.json
|
5
|
-
#rm -f /tmp/vault-token
|
6
|
-
#host_ip=`ip route | awk '/default/ {print $3}'`
|
7
|
-
#echo "$host_ip vault.brighter.io" > /etc/hosts
|
8
2
|
sudo yum install -y unzip
|
9
|
-
|
3
|
+
curl -O "https://releases.hashicorp.com/vault/0.6.5/vault_0.6.5_linux_amd64.zip"
|
10
4
|
unzip vault_0.6.5_linux_amd64.zip -d /usr/bin
|
5
|
+
nohup vault server -dev -dev-root-token-id="root" < /dev/null &> /tmp/vault.log &
|
6
|
+
export VAULT_ADDR=http://127.0.0.1:8200
|
7
|
+
mkdir /etc/vault
|
8
|
+
echo '{ "vault-addr": "http://127.0.0.1:8200", "access": "root"}' > /etc/vault/tokens.json
|
data/lib/sambot/version.rb
CHANGED
@@ -19,23 +19,20 @@ module Sambot
|
|
19
19
|
BASTION_HOST_IP = '146.177.10.174'
|
20
20
|
|
21
21
|
FORWARDS = {
|
22
|
+
'rundeck.brighter.io': {
|
23
|
+
tunnel_port: 9004, dest_port: 4440, proxy_port: 443
|
24
|
+
},
|
22
25
|
'chef.brighter.io': {
|
23
26
|
tunnel_port: 9000, dest_port: 443, proxy_port: 443
|
24
27
|
},
|
25
28
|
'teamcity.brighter.io': {
|
26
29
|
tunnel_port: 9001, dest_port: 8111, proxy_port: 443
|
27
30
|
},
|
28
|
-
'rundeck.brighter.io': {
|
29
|
-
tunnel_port: 9008, dest_port: 4440, proxy_port: 443
|
30
|
-
},
|
31
31
|
'splunk.brighter.io': {
|
32
32
|
tunnel_port: 9002, dest_port: 8080, proxy_port: 443
|
33
33
|
},
|
34
34
|
'vault.brighter.io': {
|
35
35
|
tunnel_port: 9003, dest_port: 8200, proxy_port: 8200
|
36
|
-
},
|
37
|
-
'rundeck.brighter.io': {
|
38
|
-
tunnel_port: 9004, dest_port: 443, proxy_port: 443
|
39
36
|
}
|
40
37
|
}
|
41
38
|
|