Skip to content

Commit

Permalink
Merge pull request #164 from gluster-deploy/master
Browse files Browse the repository at this point in the history
Add cachemode variable for setup-cache action
  • Loading branch information
sac authored Sep 9, 2016
2 parents 26fc33f + 13fbb93 commit 62d6f9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gdeployfeatures/lv/lv.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@
"required": "false",
"name": "ignore_lv_errors",
"default": "yes"
},
{
"name": "cachemode",
"required": "false",
"default": "writethrough"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion playbooks/cache_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
ignore_errors: yes

- name: Setup SSD for caching | Convert an existing logical volume to a cache pool LV
lv: action=convert lvtype=cache-pool
lv: action=convert lvtype=cache-pool cachemode="{{ cachemode }}"
poolmetadata="{{ cache_meta_lv }}" poolmetadataspare=n
vgname="{{ vgname }}" lvname="{{ cache_lv }}" force="{{ force }}"
ignore_errors: yes
Expand Down

0 comments on commit 62d6f9b

Please sign in to comment.