Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
fc05ca09
Commit
fc05ca09
authored
Aug 10, 2019
by
Sven-Hendrik Haase
Browse files
Merge remote-tracking branch 'shibumi/shibumi/enable-controller-for-arch-boxes'
parents
2c2c2c05
def5c465
Changes
3
Hide whitespace changes
Inline
Side-by-side
roles/arch-boxes/defaults/main.yml
View file @
fc05ca09
...
...
@@ -3,5 +3,5 @@
archboxes_user
:
'
archboxes'
archboxes_home
:
'
/srv/arch-boxes'
archboxes_git_dir
:
'
/srv/arch-boxes/arch-boxes'
archboxes_time
:
'
*-*-
05
0
0
:00:00'
archboxes_version
:
"
1.
1.3
"
archboxes_time
:
'
*-*-
*
0
4
:00:00'
archboxes_version
:
"
1.
2.0
"
roles/arch-boxes/tasks/main.yml
View file @
fc05ca09
---
-
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 }}"
...
...
roles/arch-boxes/templates/arch-boxes.service.j2
View file @
fc05ca09
...
...
@@ -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 }}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment