commit | 7f83d9f0380afd91377afac002d667c5cb0d93d8 | [log] [tgz] |
---|---|---|
author | Lachlan Evenson <lachlan.evenson@lithium.com> | Fri Jan 22 20:36:09 2016 -0800 |
committer | Lachlan Evenson <lachlan.evenson@lithium.com> | Fri Jan 22 20:36:09 2016 -0800 |
tree | b6ed9c74695471414ff48da2a30e848275a39183 | |
parent | 3067651fd35c2c4a769630ff5e5bb6ab87519787 [diff] |
change to swap.device variable
diff --git a/linux/storage/swap.sls b/linux/storage/swap.sls index ccae5f6..3fa4a0d 100644 --- a/linux/storage/swap.sls +++ b/linux/storage/swap.sls
@@ -15,7 +15,7 @@ linux_set_swap_partition_{{ swap.device }}: cmd.run: - name: 'swapon {{ swap.device }}' - - unless: grep $(readlink -f /dev/vg0/swap) /proc/swaps + - unless: grep $(readlink -f {{ swap.device }}) /proc/swaps - require: - cmd: linux_create_swap_partition_{{ swap.device }}