Commit fc05ca09 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge remote-tracking branch 'shibumi/shibumi/enable-controller-for-arch-boxes'

parents 2c2c2c05 def5c465
......@@ -3,5 +3,5 @@
archboxes_user: 'archboxes'
archboxes_home: '/srv/arch-boxes'
archboxes_git_dir: '/srv/arch-boxes/arch-boxes'
archboxes_time: '*-*-05 00:00:00'
archboxes_version: "1.1.3"
archboxes_time: '*-*-* 04:00:00'
archboxes_version: "1.2.0"
---
- name: install arch-boxes dependencies
pacman: name=packer,virtualbox,qemu-headless,virtualbox-host-modules-arch state=present
pacman: name=packer,virtualbox,qemu-headless,virtualbox-host-modules-arch,pyhon,python-urllib3 state=present
- name: create arch-boxes user
user: name={{ archboxes_user }} shell=/bin/bash home="{{ archboxes_home }}" createhome=yes
......@@ -19,6 +19,9 @@
- name: adjust permissions of git checkout
file: path="{{ archboxes_git_dir }}" state=directory recurse=yes owner="{{ archboxes_user }}" group="{{ archboxes_user }}"
- name: ensure controller.py of arch-boxes is executable
file: path="{{ archboxes_git_dir }}/controller.py" mode='0744'
- name: replace placeholder to vagrantcloud API Key
replace: path="{{ archboxes_git_dir }}/vagrant.json" regexp='PLACEHOLDER' replace="{{ vault_archboxes_apikey }}"
......
......@@ -3,6 +3,5 @@ Description=arch-boxes service for deploying images and vagrant boxes
[Service]
Type=oneshot
ExecStart=/usr/bin/packer build -parallel=false -var 'headless=true' -var 'write_zeroes=yes' -except=vmware-iso vagrant.json
ExecStart={{ archboxes_git_dir }}/controller.py
User={{ archboxes_user }}
WorkingDirectory={{ archboxes_git_dir }}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment