-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility to enable Persistent Local Storage using Ansible #6250
Add possibility to enable Persistent Local Storage using Ansible #6250
Conversation
Can one of the admins verify this patch?
|
e5657df
to
09f0291
Compare
226f7cf
to
1d3b498
Compare
1d3b498
to
365470f
Compare
d729f66
to
18a43cd
Compare
18a43cd
to
d32950e
Compare
15d4a67
to
474a850
Compare
09fa03d
to
af825ba
Compare
tasks: | ||
- name: Create Persistent Local Storage Classes Directories | ||
file: | ||
path: "/mnt/local-storage/{{ item }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path should be configurable
/test crio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, although default /mnt/local-storage
is defined multiple times across the playbook, it would be nice to have it set in one place only
fieldPath: metadata.namespace | ||
- name: VOLUME_CONFIG_NAME | ||
value: local-volume-provisioner-config | ||
image: quay.io/external_storage/local-volume-provisioner:v1.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Image location and version should be parametrized
@@ -585,6 +585,11 @@ openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', | |||
# openshift_storageclass_name=gp2 | |||
# openshift_storageclass_parameters={'type': 'gp2', 'encrypted': 'false'} | |||
# | |||
# PersistentLocalStorage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
example hosts should include openshift_persistentlocalstorage_path
(with default value)
aee199e
to
efce631
Compare
@vrutkovs I guess the duplication of the default value comes from my inexperience with ansible, but I do not see how to reduce it further than what I already did (I removed the default value from the role. I thought that roles should be independent from the playbook and thus put the defaults there, too) |
Can this PR been updated, rebased and reviewed please ? |
5d81ef3
to
b882647
Compare
b882647
to
6500d24
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dabelenda Assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…fined feature-gate entry for node config)
/lgtm |
Adapted from PR#6250 to openshift-ansible, originally authored by Diego Abelenda <[email protected]> for OpenShift Ansible 3.10. PR reference: openshift#6250
No description provided.