Commit 0fef7044 authored by Carl Karsten's avatar Carl Karsten Committed by Stefano Rivera

Veyepar in /srv code owned by root.

parent aee41165
......@@ -5,8 +5,6 @@
dest: "/srv/{{ nfs_server }}/veyepar"
depth: 1
update: false
become: true
become_user: "{{ user_name }}"
tags:
- skip_ansible_lint
- veyepar-code
- skip_ansible_lint
- veyepar-code
......@@ -20,20 +20,14 @@
- python3-gi
- python3-venv
- tmux
- name: symlink veyepar into /home
file:
state: link
src: /srv/{{ nfs_server }}/veyepar
dest: /home/{{ user_name }}/veyepar
tags:
- veyepar-deps
- veyepar
- name: veyepar ve py pip requirements
pip:
requirements: "/home/{{ user_name }}/veyepar/setup/nodes/encode/requirements.txt"
virtualenv: "/home/{{ user_name }}/.virtualenvs/veyepar"
virtualenv_command: pyvenv
requirements: "/srv/{{ nfs_server }}/veyepar/setup/nodes/encode/requirements.txt"
virtualenv: "/srv/{{ nfs_server }}/veyepar/venv"
virtualenv_command: /usr/bin/python3 -m venv
virtualenv_site_packages: true
become: true
become_user: "{{ user_name }}"
tags:
- veyepar
---
- name: create veyepar conf dir
file:
path: "/etc/veyepar"
state: directory
- name: configure veyepar
template:
src: "templates/veyepar.cfg.j2"
dest: "/home/{{ user_name }}/veyepar.cfg"
owner: "{{ user_name }}"
group: "{{ user_name }}"
dest: "/etc/veyepar/veyepar.cfg"
- name: create veyepar show dir
file:
path: "/home/{{ user_name }}/Videos/veyepar/{{ org }}/{{ show }}"
path: "/srv/{{ nfs_server }}/video/{{ org }}/{{ show }}"
state: directory
recurse: true
follow: false
......
[global]
media_dir=/srv/{{ nfs_server }}/video/
dv_format=hdv_720_{{ voctomix.framerate }}p
upload_formats={{ upload_formats|join(' ') }}
client={{ org }}
......
......@@ -11,10 +11,11 @@
- name: make asset dirs
file:
state: directory
path: "/home/{{ user_name }}/Videos/veyepar/{{ org }}/{{ show }}/assets/{{ item }}"
path: "/srv/{{ nfs_server }}/video/{{ org }}/{{ show }}/assets/{{ item }}"
recurse: true
become: true
become_user: "{{ user_name }}"
owner: "{{ user_name }}"
group: "{{ user_name }}"
with_items:
- titles/{{ asset_names.json.title_svg | dirname }}
- credits/{{ asset_names.json.credits | dirname }}
......@@ -25,9 +26,7 @@
- name: copy local secret files
copy:
src: "{{ veyepar_confs }}/{{ item }}"
dest: "/home/{{ user_name }}/veyepar/{{ item }}"
become: true
become_user: "{{ user_name }}"
dest: "/srv/{{ nfs_server }}/veyepar/{{ item }}"
with_items:
- dj/dj/local_settings.py # db pw, smtp
- dj/scripts/pw.py # conf site, twitter, swift ...
......@@ -40,7 +39,7 @@
- name: copy local asset files
copy:
src: "{{ veyepar_assets }}/{{ org }}/{{ show }}/assets/{{ item }}"
dest: "/home/{{ user_name }}/Videos/veyepar/{{ org }}/{{ show }}/assets/{{ item }}"
dest: "/srv/{{ nfs_server }}/video/{{ org }}/{{ show }}/assets/{{ item }}"
become: true
become_user: "{{ user_name }}"
when: veyepar_confs is defined
......
Markdown is supported
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