|
1 | | - |
2 | 1 | --- |
3 | 2 |
|
4 | 3 | # The CERNVM GPG key is the trust anchor for the secure installation of the CVMFS client. |
5 | 4 | # |
6 | 5 | # The Compute Canada CVMFS GPG key is the trust anchor for the secure distribution of the Compute Canada software stack (and other content), as follows: |
7 | 6 | # - the Compute Canada CVMFS GPG key verifies the authenticity of the computecanada-release RPM |
8 | | -# - the computecanada-release RPM configures a yum repository which distributes the cvmfs-config-computecanada RPM |
9 | | -# - the cvmfs-config-computecanada RPM contains the public CVMFS key for the cvmfs-config.computecanada.ca CVMFS configuration repository |
| 7 | +# - the computecanada-release configures an apt repository which distributes the cvmfs-config-computecanada deb |
| 8 | +# - the cvmfs-config-computecanada deb contains the public CVMFS key for the cvmfs-config.computecanada.ca CVMFS configuration repository |
10 | 9 | # - the CVMFS configuration repository contains the public CVMFS keys for all other Compute Canada CVMFS repositories |
11 | 10 | # - the other CVMFS repositories contain all Compute Canada software (and other content) |
12 | 11 |
|
|
26 | 25 | fingerprint: "C0C4 0F04 70A3 6AF2 7CC4 4D5A 3B9F C55A CF21 4CFC" |
27 | 26 | when: '"cvmfs-config-computecanada" in cvmfs_configuration' |
28 | 27 |
|
29 | | -# Target hosts will need internet access anyway to install the actual packages via yum, so we might as well |
30 | | -# install the yum config from the internet as well - if a version is not already installed. |
31 | | -# There is no benefit to abstracting this with the yum_repository module, and doing so would break idempotence |
32 | | -# because these packages update themselves via their own yum repositories. |
| 28 | +# Target hosts will need internet access anyway to install the actual packages via apt, so we might as well |
| 29 | +# install the apt config from the internet as well - if a version is not already installed. |
| 30 | +# There is no benefit to abstracting this with the apt_repository module, and doing so would break idempotence |
| 31 | +# because these packages update themselves via their own apt repositories. |
33 | 32 |
|
34 | 33 | - name: Install CernVM apt repository |
35 | | - yum: |
| 34 | + apt: |
36 | 35 | name: https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb |
37 | 36 | state: present |
38 | 37 | validate_certs: yes |
39 | 38 | when: ansible_facts.packages['cvmfs-release'] is not defined |
40 | 39 |
|
41 | | -- name: Install Compute Canada apt repository |
42 | | - yum: |
43 | | - name: https://package.computecanada.ca/yum/cc-cvmfs-public/prod/RPM/computecanada-release-latest.noarch.rpm |
44 | | - state: present |
45 | | - validate_certs: yes |
| 40 | +# Todo: repository configuration still missing |
| 41 | +#- name: Install Compute Canada apt repository |
| 42 | +# apt: |
| 43 | +# name: https://package.computecanada.ca/yum/cc-cvmfs-public/prod/other/computecanada-release-latest.noarch.rpm |
| 44 | +# state: present |
| 45 | +# validate_certs: yes |
| 46 | +# when: |
| 47 | +# - '"cvmfs-config-computecanada" in cvmfs_configuration' |
| 48 | +# - ansible_facts.packages['computecanada-release'] is not defined |
| 49 | + |
| 50 | +- name: Workaround - install compute canada config package directly from URL |
| 51 | + apt: |
| 52 | + name: "https://package.computecanada.ca/yum/cc-cvmfs-public/prod/other/cvmfs-config-computecanada-latest.all.deb" |
46 | 53 | when: |
47 | 54 | - '"cvmfs-config-computecanada" in cvmfs_configuration' |
48 | | - - ansible_facts.packages['computecanada-release'] is not defined |
49 | 55 |
|
50 | 56 | - name: Install other prerequisite packages |
51 | | - yum: |
| 57 | + apt: |
52 | 58 | name: [ 'lvm2' ] |
53 | 59 | when: cvmfs_client_configure_storage | bool |
54 | 60 |
|
55 | | - |
56 | 61 | - name: Install CVMFS client and configuration packages |
57 | | - yum: |
58 | | - name: "['cvmfs'] + {{ cvmfs_auto_setup_package }} + {{ cvmfs_configuration }}" |
| 62 | + apt: |
| 63 | + name: "['cvmfs'] + {{ cvmfs_configuration }}" |
59 | 64 | vars: |
60 | 65 | cvmfs_auto_setup_package: "{{ ['cvmfs-auto-setup'] if cvmfs_auto_setup|bool else [] }}" |
61 | 66 |
|
0 commit comments