Compare commits

..

No commits in common. "846ded0e57c4762101d3ff67585a0a610154a149" and "559513e629d8241feaf9db9733a589359367ce3c" have entirely different histories.

2 changed files with 6 additions and 9 deletions

View File

@ -19,22 +19,22 @@ debrelease="{{ debrelease }}"
{%- if debmirror is defined and debmirror %}
# The Debian mirror to use (overrides the default)
debmirror="{{ debmirror }}"
{% endif %}
{%- endif %}
{%- if addpkglist is defined and addpkglist %}
# Additional packages (comma-separated) to install in the base system
addpkglist="{{ addpkglist }}"
{% endif %}
{%- endif %}
{%- if filesystem is defined and filesystem %}
# Alternate filesystem for system volumes (/, /var/lib/ceph, /var/lib/zookeeper)
filesystem="{{ filesystem }}"
{% endif %}
{%- endif %}
{%- if skip_blockcheck is defined and skip_blockcheck %}
# Skip block zeroing; only recommended for testing, slow, low-endurance, or known-zeroed block devices.
skip_blockcheck="y"
{% endif %}
{%- endif %}
###
### Per-host definitions (required)

View File

@ -243,11 +243,8 @@ seed_config() {
is_match="$(
python <<EOF
from re import sub
try:
b_size = float(sub(r'\D.','','${b_size}'))
t_size = float(sub(r'\D.','','${size}'))
except ValueError:
exit(0)
b_size = float(sub(r'\D','','${b_size}'))
t_size = float(sub(r'\D','','${size}'))
plustwopct = t_size * 1.02
minustwopct = t_size * 0.98
if b_size > minustwopct and b_size < plustwopct: