alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Add docc helpers
author
Jes Olson
date
4 years ago
(Nov 19, 2021, 12:06 PM -0600)
commit
f4916ef6
f4916ef6da9914347355c26b8639ed3e5c10fcc1
parent
12f48e4d
12f48e4dd06e899e13457f346217f7faba7214db
+28
2 changed files
Expand all
Collapse all
Unified
Split
bin
docc-refresh
docc-restart
+14
bin/docc-refresh
Reviewed
···
1
1
+
#!/bin/sh
2
2
+
3
3
+
app="$1"
4
4
+
contexts="bolt dash dust flux kiwi luca navy nova puff taro vega wolf"
5
5
+
6
6
+
if [ -z "$app" ]; then
7
7
+
printf "%s\n" "app name required"
8
8
+
exit 1
9
9
+
fi
10
10
+
11
11
+
for i in $contexts; do
12
12
+
# vault login
13
13
+
docc --context "$i" update secret-sync -n chef "$app" --secret-auth token,$(cat ~/.vault-token)
14
14
+
done
+14
bin/docc-restart
Reviewed
···
1
1
+
#!/bin/sh
2
2
+
3
3
+
app="$1"
4
4
+
contexts="bolt dash dust flux kiwi luca navy nova puff taro vega wolf"
5
5
+
6
6
+
if [ -z "$app" ]; then
7
7
+
printf "%s\n" "app name required"
8
8
+
exit 1
9
9
+
fi
10
10
+
11
11
+
for i in $contexts; do
12
12
+
# vault login
13
13
+
docc --context "$i" -n chef restart "$app"
14
14
+
done