Skip to content
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

London local storage kvm #160

Open
wants to merge 2 commits into
base: sofia-lab
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Ansible/roles/kvm/tasks/add_local_storage.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---

- name: Create new partition
shell: parted /dev/sdb mklabel gpt mkpart primary 1 100% -s
shell: parted /dev/sda mklabel gpt mkpart primary 1 100% -s
ignore_errors: true
tags:
- kvm
- local_storage

- name: Format new partition
shell: mkfs.ext4 /dev/sdb1
shell: mkfs.ext4 /dev/sda1
tags:
- kvm
- local_storage
Expand All @@ -22,7 +22,7 @@
- name: update FSTAB
mount:
name: "{{ kvm_localstorage_mount }}"
src: /dev/sdb1
src: /dev/sda1
fstype: ext4
state: mounted
tags:
Expand Down
4 changes: 2 additions & 2 deletions Ansible/templates/nestedgroupvars.j2
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ cks_images_location: "{{ cks_images_location | default ( def_cks_images_location
{% if run_smoke_tests is not defined %}{% set run_smoke_tests = no %}{% endif %}run_smoke_tests: {{ run_smoke_tests }}
{% if baseurl_marvin is not defined %}
{% if rooturl_cloudstack is defined %}
{% set marvinbaseurl = rooturl_cloudstack~"centos7"~"/"~env_repo_version_var~"/" %}
{% set marvinbaseurl = rooturl_cloudstack~baseurl_mgmt_suffix~"/"~env_repo_version_var~"/" %}
{% else %}
{% set marvinbaseurl = def_rooturl_cloudstack~"centos7"~"/"~env_repo_version_var~"/" %}
{% set marvinbaseurl = def_rooturl_cloudstack~baseurl_mgmt_suffix~"/"~env_repo_version_var~"/" %}
{% endif %}
{% else %}
{% set marvinbaseurl = baseurl_marvin %}
Expand Down