rpm-ostree/vagrant/setup.yml
Robert Fairley be1be526ff vagrant: Use a Fedora 29 container
Switch the Docker + Vagrant development docs to use a Fedora 29
build container, and a Fedora 29 Atomic Host Vagrant box. CentOS
7-based testing was recently removed (#1785) - let's have the
documented development pattern reflect this.

Also no longer enables the EPEL7 repo in the Vagrant VM, as needed
dependencies are available in Fedora Atomic Host.

A note is left to later switch to Fedora CoreOS as the documented
Vagrant box to use, once Fedora CoreOS boxes are produced.
Alternatively, one may use [cosa](https://github.com/coreos/coreos-assembler).

A few notes are also added to vagrant/README.md in places where
the reader may hit problems.

squash

Closes: #1826
Approved by: cgwalters
2019-05-09 00:08:14 +00:00

26 lines
742 B
YAML

---
- hosts: all
gather_facts: no
become: yes
tasks:
- name: generate config
local_action: shell vagrant ssh-config > ../ssh-config
become: no
# The test suite requires direct ssh to root.
- file: state=directory mode=0600 path=/root/.ssh
- copy: remote_src=True src=/home/vagrant/.ssh/authorized_keys dest=/root/.ssh/authorized_keys
# make sure root account is unlocked
- name: unlock root account
shell:
cmd: 'passwd -u root && touch /root/.unlocked'
creates: /root/.unlocked
- command: rpm -q fuse-sshfs
register: rpmq_fuse_sshfs
changed_when: False
failed_when: False
- command: rpm-ostree install fuse-sshfs
when: rpmq_fuse_sshfs.rc != 0