Produced by Araxis Merge on 4/18/2019 5:55:26 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_DevOps\mccf_devops\playbooks | populateMavenRepo.yml | Wed Apr 3 02:27:32 2019 UTC |
2 | MCCF_EDI_TAS_TASCore v2.0_Build_10.zip\MCCF_EDI_TAS_DevOps\mccf_devops\playbooks | populateMavenRepo.yml | Tue Apr 16 15:23:36 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 200 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | --- | |
2 | - name: po pulateMave nRepo | Sy nc MCCF Ma ven source repo with local rep o store | |
3 | hosts: " {{ var_hos ts }}" | |
4 | connecti on: local | |
5 | become: true | |
6 | vars: | |
7 | contact: " Cheryl Lac h: PII or PII " | |
8 | PUBDIR : "/var/ww w/html/pub " | |
9 | REPOBA SEDIR: "{{ PUBDIR }} /repo" | |
10 | MAVEND IR: "{{ RE POBASEDIR }}/maven" | |
11 | REPODI R: "{{ MAV ENDIR }}/m aven2" | |
12 | TMPDIR : "/tmp/ma ven" | |
13 | SCRIPT DIR: "{{ p laybook_di r }}/../sc ripts/shel l" | |
14 | aws_ma ven_url: " http://aws -master.mc cf.halfake rlabs.com/ pub/repo/m aven" | |
15 | get_or iginal: "{ { get_sour ce | defau lt(false) | bool }}" | |
16 | tasks: | |
17 | - name : populate MavenRepo | Ensure d irectories exist | |
18 | file : | |
19 | pa th: "{{ it em.src }}" | |
20 | mo de: "{{ it em.mode }} " | |
21 | ow ner: "{{ i tem.owner }}" | |
22 | gr oup: "{{ i tem.group }}" | |
23 | st ate: direc tory | |
24 | with _items: | |
25 | - { src: "{{ PUBDIR }} ", mode: ' 0755', own er: root, group: roo t } | |
26 | - { src: "{{ REPOBASED IR }}", mo de: '0755' , owner: r oot, group : root } | |
27 | - { src: "{{ MAVENDIR }}", mode: '0755', o wner: root , group: r oot } | |
28 | - { src: "{{ REPODIR } }", mode: '0755', ow ner: root, group: ro ot } | |
29 | - { src: "{{ TMPDIR }} ", mode: ' 0755', own er: root, group: roo t } | |
30 | ||
31 | - name : populate MavenRepo | set orig inal to po pulate mcc f repos | |
32 | set_ fact: | |
33 | po pulate_ori gin: true | |
34 | when : get_orig inal | |
35 | tags : getMaven Central | |
36 | ||
37 | - name : populate MavenRepo | set orig inal to sy nc mccf re pos | |
38 | set_ fact: | |
39 | po pulate_ori gin: false | |
40 | when : not get_ original | |
41 | tags : syncMave nSource | |
42 | ||
43 | - name : populate MavenRepo | populate MCCF Mave n Repo fro m file | |
44 | shel l: "/bin/b ash ./getM avenCentra lFiles.sh" | |
45 | args : | |
46 | ch dir: "../s cripts/she ll" | |
47 | when : populate _origin | |
48 | tags : getMaven Central | |
49 | ||
50 | - name : populate MavenRepo | sync Mav en Repo fr om source | |
51 | incl ude_tasks: syncMCCFM avenRepo.y ml | |
52 | when : not popu late_origi n | |
53 | tags : syncMave nSource | |
54 | ||
55 | - name : populate MavenRepo | verify c hecksums | |
56 | shel l: "/bin/b ash ./sumc hk.sh {{ R EPODIR }}" | |
57 | args : | |
58 | ch dir: "../s cripts/she ll" | |
59 | regi ster: chec ksum_resul ts | |
60 | tags : | |
61 | - getMavenCe ntral | |
62 | - syncMavenS ource | |
63 | - checksums | |
64 | ||
65 | - name : populate MavenRepo | output c hecksum re sults | |
66 | debu g: | |
67 | va r: checksu m_results. stdout | |
68 | when : checksum _results.s tdout is d efined | |
69 | tags : | |
70 | - getMavenCe ntral | |
71 | - syncMavenS ource | |
72 | - checksums | |
73 | ||
74 | - name : populate MavenRepo | determin e if error logs exis t | |
75 | find : | |
76 | pa ths: "{{ p laybook_di r }}/../lo gs" | |
77 | pa tterns: "* error.log" | |
78 | regi ster: erro r_log_exis ts | |
79 | fail ed_when: e rror_log_e xists.matc hed > 0 | |
80 | ||
81 | - name : populate MavenRepo | determin e if logs exist | |
82 | stat : | |
83 | pa th: "{{ pl aybook_dir }}/../log s" | |
84 | regi ster: logs _exist | |
85 | tags : | |
86 | - fix_logs | |
87 | ||
88 | - name : populate MavenRepo | fix perm s on creat ed log fil es to {{ j enkins_pro cess_user }} | |
89 | file : | |
90 | pa th: "{{ lo gs_exist.s tat.path | realpath }}" | |
91 | ow ner: "{{ j enkins_pro cess_user }}" | |
92 | gr oup: "{{ j enkins_pro cess_group }}" | |
93 | when : logs_exi st.stat.ex ists | |
94 | tags : | |
95 | - fix_logs | |
96 | ||
97 | - name : populate MavenRepo | set the SELinux on all the F iles | |
98 | comm and: resto recon -Rv "{{ PUBDIR }}" | |
99 | tags : | |
100 | - getMavenCe ntral | |
101 | - syncMavenS ource |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.