Skip to content

Commit e8ef0ee

Browse files
committed
Merge pull request #4676 from mboersma/jq-is-installed
ref(contrib): assume jq utility is available
2 parents 25653e3 + 7b58d37 commit e8ef0ee

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

contrib/coreos/user-data.example

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ coreos:
8585
Description=etcd debugging service
8686

8787
[Service]
88-
ExecStartPre=/usr/bin/curl -sSL -o /opt/bin/jq http://stedolan.github.io/jq/download/linux64/jq
89-
ExecStartPre=/usr/bin/chmod +x /opt/bin/jq
90-
ExecStart=/usr/bin/bash -c "while true; do curl -sL http://127.0.0.1:4001/v2/stats/self | /opt/bin/jq . ; sleep 1 ; done"
88+
ExecStart=/usr/bin/bash -c "while true; do curl -sL http://127.0.0.1:4001/v2/stats/self | jq . ; sleep 1 ; done"
9189
- name: increase-nf_conntrack-connections.service
9290
command: start
9391
content: |

contrib/util/custom-firewall.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
#!/bin/env bash
22

3-
if [ ! -f /opt/bin/jq ]; then
4-
echo "/opt/bin/jq is missing. Downloading..."
5-
curl -sSL -o /opt/bin/jq http://stedolan.github.io/jq/download/linux64/jq
6-
chmod +x /opt/bin/jq
7-
fi
8-
93
# obtain the etcd node members and check that at least there is three
104
ETCD_NODES=$(curl -s http://localhost:4001/v2/members | jq '.[] | .[].peerURLs | length' | wc -l)
115
if test $ETCD_NODES -lt 3; then

0 commit comments

Comments
 (0)