Skip to content

Commit

Permalink
[Vagrantfile] Update SEED_SCRIPT
Browse files Browse the repository at this point in the history
Updates $SEED_SCRIPT to the latest version.

With this version, it is now possible to do:

    VM_COUNT=30000 bin/rails r $SEED_SCRIPT

Which will increase/decrease the number of VM records created when
seeding.  Increases the VM_COUNT does increase the time it takes for the
seed script to run.


(transferred from https://gist.github.com/NickLaMuro/8438015363d90a2d2456be650a2b9bc6/f23c60c7bd0a45efe60125058bd0443b2f335ac9)
  • Loading branch information
NickLaMuro committed May 9, 2019
1 parent 8762bcc commit d4f187c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Vagrant.configure("2") do |config|
:path => "vagrant_provision_appliance_reset.sh"

miq.vm.provision "seed", :type => "shell", :inline => <<-SEED
SEED_SCRIPT_URL=https://gist.githubusercontent.com/NickLaMuro/87dddcfbd549b03099f8e55f632b2b57/raw/ce8790f1037dcd32ab38a7988cca61d62c7400b6/bz_1592480_db_replication_script.rb
SEED_SCRIPT_URL=https://gist.githubusercontent.com/NickLaMuro/87dddcfbd549b03099f8e55f632b2b57/raw/f0f2583bb453366304d61e41f7db18091d7e7d57/bz_1592480_db_replication_script.rb
SEED_SCRIPT=/var/www/miq/vmdb/tmp/bz_1592480_db_replication_script.rb
echo "check_file = File.join(File.dirname(__FILE__), 'db_seeding_done')" > $SEED_SCRIPT
Expand Down

0 comments on commit d4f187c

Please sign in to comment.