Commit dbc26026 authored by Łukasz Nowak's avatar Łukasz Nowak

playbook: Install slapos.node from shacache

As remote repositories are unsure about it quality, rely on shacache and
use it to download and install slapos.node.

This improves quality of playbook and somehow escapes chicken and egg
problem of shacache access and required tools.
parent eb94d547
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
mQGiBE9rM7ARBACILnCus7kJJtRKskvLcQVl1/cIF241w1XSeK23HHn/lpKjNmQ8
C6Uaqe4RI6aBMtJq7/9pcoq165Cz+fjW5xJYRdOTCJV+8gVCeXeJ1juAxZ2cU5NB
uAJ/7rG9mu2WgtSO8s5O8Hihpmn8Z/xEnYn+Fh45lG3u9+Lkum/WMSJ+mwCg1Jw3
P2T+dffvvWrZgvfacWz0uEMD/2M+2B9XJ0Ga4Z+yVuU57CvsaHJMGnPVnwsgCu8u
KIvkawiOg/HzNgIj88yETu0Q8HhuwfbdusRfv22MGmxvqvLGDGUSkkzQ/bev2vSc
fQAerKe2+BAV3QdPWhsVh2OTLEgDn7j+qewxih2+l6ASATs++6VX3JPuISKi5XMV
1aAvA/4vyG9evJ6DlAxfd235t3LUsYSmzKa5/1Wv4bVfAQXism4oGS4vygaTFqs7
tsBitWSmp+Jo7Fc7a5QRX/yL3uyDkXBB7NLPmYitFT5OvcdKg4U0fHigWxhzl8Xs
GMQZrlokbwJ/JxLlB1xYmdotfEYCwMJYc9momYg21FvMPfFu9rRCaG9tZTpWSUZJ
Qm5leGVkaSBPQlMgUHJvamVjdCA8aG9tZTpWSUZJQm5leGVkaUBidWlsZC5vcGVu
c3VzZS5vcmc+iGYEExECACYFAlet3H0CGwMFCQxhWM0GCwkIBwMCBBUCCAMEFgID
AQIeAQIXgAAKCRAutNL5lKY5hzoXAKCzRFcNq5iRfAZjTRpPdGV0JHmSEQCeMgGV
jdhlqlpTMOsfANs+MirEQOeIRgQTEQIABgUCT2szsAAKCRA7MBG3a51lI7sdAJ9q
/+6D3FndEZieHpJw/kG1eZLu/ACeKk0hcqg9zrFwj21oBr96kOBXCTs=
=R1ai
-----END PGP PUBLIC KEY BLOCK-----
......@@ -96,12 +96,10 @@
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_17.10/ ./' state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "17.10"
- name: Install CentOS 7 Repository
get_url: url=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_7/home:VIFIBnexedi.repo dest=/etc/yum.repos.d/slapos.repo mode=0440
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: Install CentOS 7 RPM Key
rpm_key: state=present key=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_7/repodata/repomd.xml.key
# workarounded with https://github.com/marbu/ansible-modules-core-issue-1853-reproducer/commit/41727b465533717015d8d55904c5a102fe248bc4
# for https://github.com/ansible/ansible-modules-core/issues/1853
rpm_key: state=present key=roles/repository/files/VIFIBNexedi_CentOS_7.key
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: Install CentOS 6 Repository
......
......@@ -20,7 +20,18 @@
- name: Install re6stnet on CentOS
yum: name=slapos.node state=present update_cache=yes
when: ansible_os_family == "CentOS"
when: ansible_distribution == "CentOS" and ansible_distribution_major_version != "7"
- name: Download slapos.node from Shacache for CentOS 7
get_url:
url: http://download.shacache.org/2ad0622eff0aa0ec3a0e8d872ca948013d216d8fc837ef0f9919290afc9372319881715764987350302172022e288d4d58f31f71980071d652d66d293533da7b
dest: /tmp/slapos.node-1.0.56-2.1.x86_64.rpm
checksum: "md5:37446cc16b38fa5769f3e084294c8683"
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: Install re6stnet on CentOS 7
yum: name=/tmp/slapos.node-1.0.56-2.1.x86_64.rpm state=present update_cache=yes
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: Check if configuration exists already
stat: path=/etc/opt/slapos/slapos.cfg
......
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