Merge branch '1.9'

This commit is contained in:
Bryan Boreham committed 2017-05-15 12:44:08 +00:00
commit cbe0f4e6e5
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -7,12 +7,13 @@ import (
const ( const (
// This array: // This array:
// * Must include only printable UTF8 characters that are represented with a single byte // * Must include only printable UTF8 characters that are represented with a single byte (http://www.utf8-chartable.de/)
// * Must be at least of length 85 (`len("weave-") + l(2^160)/l(85)` equals 31, the maximum ipset name length) // * Must be at least of length 85 (`len("weave-") + l(2^160)/l(85)` equals 31, the maximum ipset name length)
// * Must not include commas as those are treated specially by `ipset add` when adding a named set to a list:set // * Must not include commas as those are treated specially by `ipset add` when adding a named set to a list:set
// * Should not include space for readability // * Should not include space for readability
// * Should not include invalid chars for XML `<>&"'`
// * Should not include single quote or backslash to be nice to shell users // * Should not include single quote or backslash to be nice to shell users
ShortNameSymbols = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789(){}[]<>_$%^&*|/?.;:@#~" ShortNameSymbols = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789(){}[]+=_$%^!*|/?.;:@#~"
) )
// sha1 hash an arbitrary string and represent it using the full range of // sha1 hash an arbitrary string and represent it using the full range of
+1 -1
View File
@@ -284,7 +284,7 @@ function configure() {
local inventory_file=$(mktemp /tmp/ansible_inventory_XXXXX) local inventory_file=$(mktemp /tmp/ansible_inventory_XXXXX)
echo "[all]" >"$inventory_file" echo "[all]" >"$inventory_file"
# shellcheck disable=SC2001 # shellcheck disable=SC2001
echo "$2" | sed "s/$/:$3/" >>"$inventory_file" echo "$2" | sed "s/\$/:$3/" >>"$inventory_file"
# Configure the provisioned machines using Ansible, allowing up to 3 retries upon failure (e.g. APT connectivity issues, etc.): # Configure the provisioned machines using Ansible, allowing up to 3 retries upon failure (e.g. APT connectivity issues, etc.):
for i in $(seq 3); do for i in $(seq 3); do