mirror of https://github.com/ceph/ceph-ansible.git
commit
3c5fccbc2d
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
@ -32,7 +32,16 @@ EOF
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
|
sed '/^---/d; s/^\([A-Za-z[:space:]]\)/#\1/' \
|
||||||
|
"$defaults" >> "$basedir"/group_vars/"$output"
|
||||||
|
echo >> "$basedir"/group_vars/"$output"
|
||||||
|
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||||
sed '/^---/d; s/^\([A-Za-z[:space:]].\+\)/#\1/' \
|
sed '/^---/d; s/^\([A-Za-z[:space:]].\+\)/#\1/' \
|
||||||
"$defaults" >> "$basedir"/group_vars/"$output"
|
"$defaults" >> "$basedir"/group_vars/"$output"
|
||||||
echo >> "$basedir"/group_vars/"$output"
|
echo >> "$basedir"/group_vars/"$output"
|
||||||
|
else
|
||||||
|
echo "Unsupported platform"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue