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:
parent
c78faa84ce
commit
46acf2d05c
@ -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$"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user