Theo Chatzimichos d05fd1
#!/bin/bash
Theo Chatzimichos d05fd1
Theo Chatzimichos d05fd1
# Prepares the CI runner environment to run the show_highstate tests
Theo Chatzimichos d05fd1
Theo Chatzimichos d05fd1
zypper -qn in --no-recommends salt git python3 python3-PyYAML
Theo Chatzimichos d05fd1
rm -rf /srv/{salt,pillar}
Theo Chatzimichos d05fd1
ln -s $PWD/salt /srv/salt
Theo Chatzimichos d05fd1
ln -s $PWD/pillar /srv/pillar
Theo Chatzimichos d05fd1
sed -i -e 's/^production:$/base:/' /srv/{salt,pillar}/top.sls
Theo Chatzimichos d05fd1
echo 'domain: infra.opensuse.org' > /etc/salt/grains
Theo Chatzimichos d05fd1
ROLES=$(bin/get_roles.py --yaml)
Theo Chatzimichos d05fd1
printf "city:\ncountry:\nsalt_cluster: opensuse\nvirt_cluster:\n$ROLES" > pillar/id/${HOSTNAME}.sls