Browse Source

change to swap.device variable

tags/2016.12
Lachlan Evenson 9 years ago
parent
commit
7f83d9f038
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      linux/storage/swap.sls

+ 1
- 1
linux/storage/swap.sls View File

linux_set_swap_partition_{{ swap.device }}: linux_set_swap_partition_{{ swap.device }}:
cmd.run: cmd.run:
- name: 'swapon {{ swap.device }}' - name: 'swapon {{ swap.device }}'
- unless: grep $(readlink -f /dev/vg0/swap) /proc/swaps
- unless: grep $(readlink -f {{ swap.device }}) /proc/swaps
- require: - require:
- cmd: linux_create_swap_partition_{{ swap.device }} - cmd: linux_create_swap_partition_{{ swap.device }}



Loading…
Cancel
Save