소스 검색

Merge pull request #176 from jplock/jp-relocate-tarsnap-key

Relocate tarsnap.key into /decrypted
Luke Cyca 10 년 전
부모
커밋
67f8e49e5f
3개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 0
    0
      roles/tarsnap/files/decrypted_tarsnap.key
  2. 1
    2
      roles/tarsnap/files/tarsnaprc
  3. 1
    2
      roles/tarsnap/tasks/tarsnap.yml

roles/tarsnap/files/root_tarsnap.key → roles/tarsnap/files/decrypted_tarsnap.key 파일 보기


+ 1
- 2
roles/tarsnap/files/tarsnaprc 파일 보기

1
-keyfile /root/tarsnap.key
1
+keyfile /decrypted/tarsnap.key
2
 cachedir /usr/tarsnap-cache
2
 cachedir /usr/tarsnap-cache
3
 exclude /usr/tarsnap-cache
3
 exclude /usr/tarsnap-cache
4
 humanize-numbers
4
 humanize-numbers
5
-

+ 1
- 2
roles/tarsnap/tasks/tarsnap.yml 파일 보기

38
     dest="/root/tarsnap-autoconf-{{ tarsnap_version }}.tgz"
38
     dest="/root/tarsnap-autoconf-{{ tarsnap_version }}.tgz"
39
     sha256sum={{ tarsnap_sha.stdout_lines[0] }}
39
     sha256sum={{ tarsnap_sha.stdout_lines[0] }}
40
 
40
 
41
-
42
 - name: Decompress Tarsnap source
41
 - name: Decompress Tarsnap source
43
   command: tar xzf /root/tarsnap-autoconf-{{ tarsnap_version }}.tgz chdir=/root creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/COPYING
42
   command: tar xzf /root/tarsnap-autoconf-{{ tarsnap_version }}.tgz chdir=/root creates=/root/tarsnap-autoconf-{{ tarsnap_version }}/COPYING
44
 
43
 
49
   command: make all install clean chdir=/root/tarsnap-autoconf-{{ tarsnap_version }} creates=/usr/local/bin/tarsnap
48
   command: make all install clean chdir=/root/tarsnap-autoconf-{{ tarsnap_version }} creates=/usr/local/bin/tarsnap
50
 
49
 
51
 - name: Copy Tarsnap key file into place
50
 - name: Copy Tarsnap key file into place
52
-  copy: src=root_tarsnap.key dest=/root/tarsnap.key owner=root group=root
51
+  copy: src=decrypted_tarsnap.key dest=/decrypted/tarsnap.key owner=root group=root force=no
53
 
52
 
54
 - name: Create Tarsnap cache directory
53
 - name: Create Tarsnap cache directory
55
   file: state=directory path=/usr/tarsnap-cache
54
   file: state=directory path=/usr/tarsnap-cache

Loading…
취소
저장