~ubuntu-branches/ubuntu/utopic/hockeypuck/utopic-proposed

« back to all changes in this revision

Viewing changes to int-tests/roles/load-hockeypuck/tasks/main.yml

  • Committer: Package Import Robot
  • Author(s): Casey Marshall
  • Date: 2014-04-13 20:06:01 UTC
  • Revision ID: package-import@ubuntu.com-20140413200601-oxdlqn1gy0x8m55u
Tags: 1.0~rel20140413+7a1892a~trusty
Hockeypuck 1.0 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
---
 
2
- shell: mkdir -p {{ int_data }}
 
3
- name: Upload key material for integration tests
 
4
  copy: src=/var/data/sks-dump/{{ data_file }} dest={{ int_data }}/{{ data_file }} mode=644
 
5
- name: Stop Hockeypuck
 
6
  service: name=hockeypuck state=stopped
 
7
- name: Drop database constraints
 
8
  shell: su - hockeypuck -c 'hockeypuck db --config /etc/hockeypuck/hockeypuck.conf --drop-constraints'
 
9
- name: Load dump files
 
10
  shell: su - hockeypuck -c 'hockeypuck load --config /etc/hockeypuck/hockeypuck.conf --path {{int_data}}/*.pgp'
 
11
- name: Rebuild database constraints
 
12
  shell: su - hockeypuck -c 'hockeypuck db --config /etc/hockeypuck/hockeypuck.conf --dedup --create-constraints'
 
13
- name: Start Hockeypuck
 
14
  service: name=hockeypuck state=started