Fix CentOS swap creation

The bootstrap_host_swap_size variable contains a string and it is
being repeated 1024 times. This patch ensures that the variable
returns an integer so that it is calculated properly.

Change-Id: I0f1da21482f29e112bc6a96cd57654c631ac0f61
This commit is contained in:
Major Hayden 2017-05-16 14:50:47 -05:00
parent c78faa84ce
commit 46acf2d05c
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

View File

@ -31,7 +31,7 @@ packages_install:
packages_remove: []
swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs=1M count={{ bootstrap_host_swap_size*1024 }}"
swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs=1M count={{ (bootstrap_host_swap_size | int) * 1024 }}"
rc_local: /etc/rc.d/rc.local
rc_local_insert_before: "^touch /var/lock/subsys/local$"