Projet

Général

Profil

0004-deploy-tenants-place-tmp-in-src-folder-to-enable-cop.patch

Christophe Siraut, 11 avril 2018 09:54

Télécharger (1,95 ko)

Voir les différences:

Subject: [PATCH 4/5] deploy-tenants: place tmp in src folder, to enable copy
 module to work both on localhost and remote installations

 group_vars/all                      |  1 +
 roles/deploy-tenants/tasks/main.yml | 12 ++++++------
 2 files changed, 7 insertions(+), 6 deletions(-)
group_vars/all
2 2
django_version: 1.8.18
3 3
git_ssh: false
4 4
src_dir: "/home/{{user}}/src"
5
tmp_dir: "{{src_dir}}/tmp"
5 6
ssl_certificate: "/etc/ssl/certs/*.local.publik.crt"
6 7
ssl_certificate_key: "/etc/ssl/private/*.local.publik.key"
7 8
venv: "/home/{{user}}/envs/publik-env"
roles/deploy-tenants/tasks/main.yml
5 5
- name : compile site-options.cfg
6 6
  template:
7 7
    src: templates/site-options.cfg.j2
8
    dest:  "/tmp/site-options.cfg"
8
    dest:  "{{tmp_dir}}/site-options.cfg"
9 9

  
10 10
- name : compile config.json
11 11
  template:
12 12
    src: templates/config.json.j2
13
    dest:  "/tmp/config.json"
13
    dest:  "{{tmp_dir}}/config.json"
14 14

  
15 15
- name: "Zips the {{wcs_skeleton_filename}} cook configuration bundle"
16 16
  archive:
17 17
    path:
18
        - /tmp/site-options.cfg
19
        - /tmp/config.json
20
    dest: /tmp/{{wcs_skeleton_filename}}
18
        - "{{tmp_dir}}/site-options.cfg"
19
        - "{{tmp_dir}}/config.json"
20
    dest: "{{tmp_dir}}/{{wcs_skeleton_filename}}"
21 21
    format: zip
22 22

  
23 23
- name : copies a wcs skeleton archive
24 24
  copy:
25
    src: "/tmp/{{wcs_skeleton_filename}}"
25
    src: "{{tmp_dir}}/{{wcs_skeleton_filename}}"
26 26
    dest:  "/var/lib/wcs/skeletons/{{wcs_skeleton_filename}}"
27 27

  
28 28
- name: copies a cook json template
29
-