Unverified Commit def5c465 authored by Christian Rebischke's avatar Christian Rebischke
Browse files

added new controller for arch-boxes



* bumped version to 1.2.0
* ensured controller.py is executable
* changed timer to every day 04:00 AM
* added new dependencies: python + python-urllib3
Signed-off-by: default avatarChristian Rebischke <chris@nullday.de>
parent a70d33d3
......@@ -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