From 11cbb718369fc8807b605002f69a3550e82de059 Mon Sep 17 00:00:00 2001 From: iamcourtney Date: Apr 18 2016 02:48:17 +0000 Subject: Updating Vagrantfile --- diff --git a/Vagrantfile b/Vagrantfile index f9e56d0..6fe7e05 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -18,7 +18,7 @@ Vagrant.configure(2) do |config| host.vm.hostname = "container-devenv" #Install necessary packages - host.vm.provision 'shell', inline: "sudo dnf install git make cmake httpd python2 -y" + host.vm.provision 'shell', inline: "sudo dnf install ansible git make cmake httpd python python-dnf -y" #Download fm-metadata-service host.vm.provision 'shell', inline: "cd /var/www/html/ && mkdir fm" @@ -26,11 +26,13 @@ Vagrant.configure(2) do |config| #Download & install dnf-plugin host.vm.provision 'shell', inline: "git clone https://pagure.io/fm-dnf-plugin.git" - host.vm.provision 'shell', inline: "cd fm-dnf-plugin && sudo cmake CMakeLists.txt && sudo make install && cp bin/fm /bin" + #host.vm.provision 'shell', inline: "cd fm-dnf-plugin && sudo cmake CMakeLists.txt && sudo make install && cp bin/fm /bin" - #Start Apache - host.vm.provision 'shell', inline: "systemctl enable httpd.service" - host.vm.provision 'shell', inline: "systemctl start httpd" + #Run ansible script + host.vm.provision 'shell', inline: "echo \"127.0.0.1\" >> /var/www/html/fm/ansible/hosts" + host.vm.provision 'shell', inline: "cd /var/www/html/fm/ansible && ansible -m ping hosts" + host.vm.provision 'shell', inline: "ansible -m ping 127.0.0.1" + host.vm.provision 'shell', inline: "cd /var/www/html/fm && ansible-playbook -i ansible/hosts ansible/vagrant-dnf-provision-fm.yml" end end