| |
@@ -1,12 +1,28 @@
|
| |
# -*- mode: ruby -*-
|
| |
# vi: set ft=ruby :
|
| |
|
| |
+ $script = <<-SCRIPT
|
| |
+ pushd /vagrant;
|
| |
+ dnf -y install python redhat-rpm-config python-devel python-pip rpl gcc
|
| |
+ pip install -r /vagrant/requirements.txt
|
| |
+ rm -f config
|
| |
+ rm -f client_secrets.json
|
| |
+ oidc-register https://iddev.fedorainfracloud.org/ http://localhost:5005/oidc_callback
|
| |
+ echo 'OIDC_ID_TOKEN_COOKIE_SECURE = False' > config
|
| |
+ echo 'OIDC_REQUIRE_VERIFIED_EMAIL = False' >> config
|
| |
+ SCRIPT
|
| |
+
|
| |
Vagrant.configure(2) do |config|
|
| |
- config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-libvirt.box"
|
| |
- config.vm.box = "f23-cloud-libvirt"
|
| |
- config.vm.network "forwarded_port", guest: 5000, host: 5002
|
| |
- config.vm.synced_folder ".", "/vagrant", type: "sshfs"
|
| |
- config.vm.provision "shell", inline: "dnf -y install python redhat-rpm-config python-devel python-pip rpl"
|
| |
- config.vm.provision "shell", inline: "pushd /vagrant/; pip install -r requirements.txt"
|
| |
- config.vm.provision "shell", inline: "pushd /vagrant/; python createdb.py", privileged: false
|
| |
+ config.vm.define :elections do |elections|
|
| |
+ elections.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-32-1.6.x86_64.vagrant-libvirt.box"
|
| |
+ elections.vm.box = "f32-cloud-libvirt"
|
| |
+ elections.vm.provider :libvirt do |libvirt|
|
| |
+ libvirt.cpus = 2
|
| |
+ libvirt.memory = 2048
|
| |
+ end
|
| |
+ elections.vm.network "forwarded_port", guest: 5005, host: 5005
|
| |
+ elections.vm.synced_folder ".", "/vagrant", type: "sshfs"
|
| |
+ elections.vm.provision "shell", inline: $script
|
| |
+ elections.vm.provision "shell", inline: "pushd /vagrant/; python createdb.py", privileged: false
|
| |
+ end
|
| |
end
|
| |
Signed-off-by: Ryan Lerch rlerch@redhat.com