copr-keygen - add mounting of volume

This commit is contained in:
Miroslav Suchý 2016-01-13 13:58:42 +01:00
parent b3851786fa
commit 447792e14e
2 changed files with 8 additions and 3 deletions

View file

@ -4,12 +4,10 @@ image: "{{ fedora21_x86_64 }}"
keypair: fedora-admin-20130801
zone: nova
hostbase: copr-keygen-
# public_ip: 209.132.184.159
public_ip: 209.132.184.49
root_auth_users: msuchy vgologuz
description: copr key gen instance
# volumes: ['-d /dev/vdc vol-0000002e']
volumes: []
volumes: [ {volume_id: '761175dc-daaf-48c0-be09-5799990f97a7', device: '/dev/vdc'} ]
# security_group: default
security_group: web-80-anywhere-persistent,ssh-anywhere-persistent,default,allow-nagios-persistent,keygen-persistent

View file

@ -1,4 +1,11 @@
---
- name: prepare mount point
file: state=directory path=/var/lib/copr-keygen
- name: mount up disk of copr repo
mount: name=/var/lib/copr-keygen src='LABEL=copr-keygen' fstype=ext4 state=mounted
when: not devel
- name: install keygen specific packages
yum: name="{{ item }}" state=present
with_items: