From 9c4109564b04341925b47211d32d8d7ab5a40497 Mon Sep 17 00:00:00 2001 From: Gregory Bartholomew Date: May 19 2022 01:45:48 +0000 Subject: Remove old vagrant build files (use podman instead) --- diff --git a/.gitignore b/.gitignore index 5fa231c..edc54cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -.vagrant /opt /srv /mariadb diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index b5d05bc..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,43 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -PORT = 5055 - -Vagrant.configure(2) do |config| - config.vm.box = "fedora/32-cloud-base" - config.vm.network "forwarded_port", guest: 80, host: PORT - config.vm.synced_folder ".", "/vagrant", type: "sshfs" - config.vm.provider "libvirt" do |v| - v.memory = 2048 - end - - config.vm.provision "shell", inline: "dnf -y install mariadb mariadb-server mariadb-devel php rpl php-mysqlnd" - config.vm.provision "shell", inline: "systemctl enable mariadb.service" - config.vm.provision "shell", inline: "systemctl start mariadb.service" - config.vm.provision "shell", inline: "pushd /tmp/; curl -L -s -O http://wordpress.org/latest.tar.gz; tar -xvzf latest.tar.gz -C /var/www/html; popd;" - - #config.vm.provision "shell", inline: "mysql -h localhost -u root -e \"uninstall plugin cracklib_password_check;\"" - config.vm.provision "shell", inline: "mysql -h localhost -u root -e \"CREATE USER wordpress@localhost IDENTIFIED BY 'chahL5oomaiHiezie8thei)h5';\"" - config.vm.provision "shell", inline: "mysql -h localhost -u root -e \"CREATE DATABASE wordpress_blog;\"" - config.vm.provision "shell", inline: "mysql -h localhost -u root -e \"GRANT ALL ON wordpress_blog.* TO wordpress@localhost;\"" - config.vm.provision "shell", inline: "mysql -h localhost -u root -e \"FLUSH PRIVILEGES;\"" - - config.vm.provision "shell", inline: "rpl -e 'DocumentRoot \"/var/www/html\"' 'DocumentRoot \"/var/www/html/wordpress\"' /etc/httpd/conf/httpd.conf" - - config.vm.provision "shell", inline: "cp /var/www/html/wordpress/wp-config-sample.php /var/www/html/wordpress/wp-config.php" - config.vm.provision "shell", inline: "rpl -e \"define( 'DB_NAME', 'database_name_here' );\" \"define('DB_NAME', 'wordpress_blog');\" /var/www/html/wordpress/wp-config.php" - config.vm.provision "shell", inline: "rpl -e \"define( 'DB_USER', 'username_here' );\" \"define('DB_USER', 'wordpress');\" /var/www/html/wordpress/wp-config.php" - config.vm.provision "shell", inline: "rpl -e \"define( 'DB_PASSWORD', 'password_here' );\" \"define('DB_PASSWORD', 'chahL5oomaiHiezie8thei)h5');\" /var/www/html/wordpress/wp-config.php" - - config.vm.provision "shell", inline: "systemctl enable httpd" - config.vm.provision "shell", inline: "systemctl start httpd" - - config.vm.provision "shell", inline: "pushd /tmp/; curl -L -s -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar; chmod +x wp-cli.phar; mv wp-cli.phar /usr/bin/wp; popd;" - config.vm.provision "shell", inline: "pushd /var/www/html/wordpress/; wp core install --url='localhost:"+PORT.to_s+"' --title='pants' --admin_user='admin' --admin_password='password' --admin_email='null@fedoraproject.org'; popd;" - config.vm.provision "shell", inline: "pushd /var/www/html/wordpress/wp-content/themes/; ln -s /vagrant/fedoramagazine/ .; popd;" - config.vm.provision "shell", inline: "pushd /var/www/html/wordpress/; wp theme activate fedoramagazine; popd;" - config.vm.provision "shell", inline: "pushd /var/www/html/wordpress/; wp plugin install yet-another-related-posts-plugin --activate; popd;" - config.vm.provision "shell", inline: "pushd /var/www/html/wordpress/; wp plugin install co-authors-plus --activate; popd;" - config.vm.provision "shell", inline: "setenforce 0" - -end