Page MenuHomeSoftware Heritage

Vagrantfile/pergamon: Install rsync in the provisioning step
ClosedPublic

Authored by ardumont on May 18 2021, 5:21 PM.

Details

Summary

This fails otherwise [1]

Either that or redo the debian image so it's installed there.

[1]

==> pergamon: Running provisioner: shell...
    pergamon: Running: /tmp/vagrant-shell20210518-14488-1xk5s1k.sh
    pergamon: sudo
    pergamon: :
    pergamon: rsync: command not found

Related to T3325

Test Plan

vagrant up pergamon

With this, it's happier:

==> pergamon: Running provisioner: shell...
    pergamon: Running: /tmp/vagrant-shell20210518-14868-1xyhfcx.sh
    pergamon: Hit:1 http://deb.debian.org/debian buster InRelease
    pergamon: Hit:2 http://security.debian.org/debian-security buster/updates InRelease
    pergamon: Hit:3 http://deb.debian.org/debian-security buster/updates InRelease
    pergamon: Hit:4 http://deb.debian.org/debian buster-updates InRelease
    pergamon: Reading package lists...
    pergamon: Reading package lists...
    pergamon: Building dependency tree...
    pergamon: Reading state information...
    pergamon: The following NEW packages will be installed:
    pergamon:   rsync
    pergamon: 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
    pergamon: Need to get 397 kB of archives.
    pergamon: After this operation, 746 kB of additional disk space will be used.
    pergamon: Get:1 http://deb.debian.org/debian buster/main amd64 rsync amd64 3.1.3-6 [397 kB]
    pergamon: dpkg-preconfigure: unable to re-open stdin: No such file or directory
    pergamon: Fetched 397 kB in 0s (3,340 kB/s)
    pergamon: Selecting previously unselected package rsync.
    pergamon: (Reading database ...
(Reading database ... 65%tabase ... 5%
    pergamon: (Reading database ... 70%
    pergamon: (Reading database ... 75%
    pergamon: (Reading database ... 80%
    pergamon: (Reading database ... 85%
    pergamon: (Reading database ... 90%
    pergamon: (Reading database ... 95%
(Reading database ... 26718 files and directories currently installed.)
    pergamon: Preparing to unpack .../rsync_3.1.3-6_amd64.deb ...
    pergamon: Unpacking rsync (3.1.3-6) ...
    pergamon: Setting up rsync (3.1.3-6) ...
    pergamon: Created symlink /etc/systemd/system/multi-user.target.wants/rsync.service → /lib/systemd/system/rsync.service.
    pergamon: Processing triggers for man-db (2.8.5-2) ...
    pergamon: Processing triggers for systemd (241-7~deb10u7) ...
    pergamon: sending incremental file list
    pergamon: install_certs.sh
            237 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=13/14)
    pergamon: ca/
    pergamon: ca/ca_crl.pem
          1,032 100% 1007.81kB/s    0:00:00 (xfr#2, to-chk=8/14)
    pergamon: ca/ca_crt.pem
          2,017 100%    1.92MB/s    0:00:00 (xfr#3, to-chk=7/14)
    pergamon: ca/ca_key.pem
          3,243 100%    3.09MB/s    0:00:00 (xfr#4, to-chk=6/14)
    pergamon: ca/ca_pub.pem
            800 100%  781.25kB/s    0:00:00 (xfr#5, to-chk=5/14)
    pergamon: ca/signed/
    pergamon: ca/signed/pergamon.softwareheritage.org.pem
          2,171 100%    2.07MB/s    0:00:00
          2,171 100%    2.07MB/s    0:00:00 (xfr#6, to-chk=3/14)
    pergamon: certs/
    pergamon: certs/pergamon.softwareheritage.org.pem
          2,171 100%    2.07MB/s    0:00:00 (xfr#7, to-chk=2/14)
    pergamon: private_keys/
    pergamon: private_keys/pergamon.softwareheritage.org.pem
          3,243 100%    3.09MB/s    0:00:00 (xfr#8, to-chk=1/14)
    pergamon: public_keys/
    pergamon: public_keys/pergamon.softwareheritage.org.pem
            800 100%  781.25kB/s    0:00:00 (xfr#9, to-chk=0/14)
    pergamon:
    pergamon: sent 16,658 bytes  received 215 bytes  33,746.00 bytes/sec
    pergamon: total size is 15,714  speedup is 0.93
==> pergamon: Running provisioner: puppet...

Diff Detail

Repository
rSENV Puppet Environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vagrant/puppet_master/install_certs.sh
10–14

run as root afaict so sudo is not required.

This revision is now accepted and ready to land.May 18 2021, 5:35 PM
vagrant/puppet_master/install_certs.sh
13

Note for self: make that script idempotent also (it's played over and over again when
vagrant provision.