Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.70 KB | None | 0 0
  1. lubus@lubus-LZ575 MINGW64 /d/My Documents/CS/_Projects/site/adnetwork/vagrant (dev2)
  2. $ vagrant plugin install vagrant-vbguest
  3. Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
  4. Installed the plugin 'vagrant-vbguest (0.13.0)'!
  5.  
  6. lubus@lubus-LZ575 MINGW64 /d/My Documents/CS/_Projects/site/adnetwork/vagrant (dev2)
  7. $ vagrant plugin install vagrant-winnfsd
  8. Installing the 'vagrant-winnfsd' plugin. This can take a few minutes...
  9. Installed the plugin 'vagrant-winnfsd (1.3.1)'!
  10.  
  11. lubus@lubus-LZ575 MINGW64 /d/My Documents/CS/_Projects/site/adnetwork/vagrant (dev2)
  12. $ vagrant up
  13. Bringing machine 'Vaprobash' up with 'virtualbox' provider...
  14. ==> Vaprobash: Importing base box 'ubuntu/trusty64'...
  15. ==> Vaprobash: Matching MAC address for NAT networking...
  16. ==> Vaprobash: Checking if box 'ubuntu/trusty64' is up to date...
  17. ==> Vaprobash: A newer version of the box 'ubuntu/trusty64' is available! You currently
  18. ==> Vaprobash: have version '20161020.0.4'. The latest is version '20161020.0.5'. Run
  19. ==> Vaprobash: `vagrant box update` to update.
  20. ==> Vaprobash: Setting the name of the VM: adnetwork.dev
  21. ==> Vaprobash: Clearing any previously set forwarded ports...
  22. ==> Vaprobash: Clearing any previously set network interfaces...
  23. ==> Vaprobash: Preparing network interfaces based on configuration...
  24. Vaprobash: Adapter 1: nat
  25. Vaprobash: Adapter 2: hostonly
  26. ==> Vaprobash: Forwarding ports...
  27. Vaprobash: 80 (guest) => 8003 (host) (adapter 1)
  28. Vaprobash: 22 (guest) => 2222 (host) (adapter 1)
  29. ==> Vaprobash: Running 'pre-boot' VM customizations...
  30. ==> Vaprobash: Booting VM...
  31. ==> Vaprobash: Waiting for machine to boot. This may take a few minutes...
  32. Vaprobash: SSH address: 127.0.0.1:2222
  33. Vaprobash: SSH username: vagrant
  34. Vaprobash: SSH auth method: private key
  35. Vaprobash:
  36. Vaprobash: Vagrant insecure key detected. Vagrant will automatically replace
  37. Vaprobash: this with a newly generated keypair for better security.
  38. Vaprobash:
  39. Vaprobash: Inserting generated public key within guest...
  40. Vaprobash: Removing insecure key from the guest if it's present...
  41. Vaprobash: Key inserted! Disconnecting and reconnecting using new SSH key...
  42. ==> Vaprobash: Machine booted and ready!
  43. [Vaprobash] GuestAdditions versions on your host (5.1.8) and guest (4.3.36) do not match.
  44. stdin: is not a tty
  45. * Stopping VirtualBox Additions
  46. ...done.
  47. stdin: is not a tty
  48. Reading package lists...
  49. Building dependency tree...
  50. Reading state information...
  51. The following packages were automatically installed and are no longer required:
  52. ...
  53. xserver-xorg-core
  54. Use 'apt-get autoremove' to remove them.
  55. The following packages will be REMOVED:
  56. virtualbox-guest-dkms* virtualbox-guest-utils* virtualbox-guest-x11*
  57. 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
  58. After this operation, 12.1 MB disk space will be freed.
  59. (Reading database ... 62997 files and directories currently installed.)
  60. Removing virtualbox-guest-dkms (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  61.  
  62. -------- Uninstall Beginning --------
  63. Module: virtualbox-guest
  64. Version: 4.3.36
  65. Kernel: 3.13.0-100-generic (x86_64)
  66. -------------------------------------
  67.  
  68. Status: Before uninstall, this module version was ACTIVE on this kernel.
  69.  
  70. vboxguest.ko:
  71. - Uninstallation
  72. - Deleting from: /lib/modules/3.13.0-100-generic/updates/dkms/
  73. - Original module
  74. - No original module was found for this module on this kernel.
  75. - Use the dkms install command to reinstall any previous module version.
  76.  
  77.  
  78. vboxsf.ko:
  79. - Uninstallation
  80. - Deleting from: /lib/modules/3.13.0-100-generic/updates/dkms/
  81. - Original module
  82. - No original module was found for this module on this kernel.
  83. - Use the dkms install command to reinstall any previous module version.
  84.  
  85.  
  86. vboxvideo.ko:
  87. - Uninstallation
  88. - Deleting from: /lib/modules/3.13.0-100-generic/updates/dkms/
  89. - Original module
  90. - No original module was found for this module on this kernel.
  91. - Use the dkms install command to reinstall any previous module version.
  92.  
  93. depmod.....
  94.  
  95. DKMS: uninstall completed.
  96.  
  97. ------------------------------
  98. Deleting module version: 4.3.36
  99. completely from the DKMS tree.
  100. ------------------------------
  101. Done.
  102. Removing virtualbox-guest-x11 (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  103. Purging configuration files for virtualbox-guest-x11 (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  104. Removing virtualbox-guest-utils (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  105. Purging configuration files for virtualbox-guest-utils (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  106. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  107. Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
  108. stdin: is not a tty
  109. Reading package lists...
  110. Building dependency tree...
  111. Reading state information...
  112. dkms is already the newest version.
  113. dkms set to manually installed.
  114. linux-headers-3.13.0-100-generic is already the newest version.
  115. linux-headers-3.13.0-100-generic set to manually installed.
  116. The following packages were automatically installed and are no longer required:
  117. ...
  118. xserver-xorg-core
  119. Use 'apt-get autoremove' to remove them.
  120. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  121. Copy iso file C:Program FilesOracleVirtualBoxVBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
  122. stdin: is not a tty
  123. mount: block device /tmp/VBoxGuestAdditions.iso is write-protected, mounting read-only
  124. Installing Virtualbox Guest Additions 5.1.8 - guest version is 4.3.36
  125. stdin: is not a tty
  126. Verifying archive integrity... All good.
  127. Uncompressing VirtualBox 5.1.8 Guest Additions for Linux...........
  128. VirtualBox Guest Additions installer
  129. Copying additional installer modules ...
  130. Installing additional modules ...
  131. vboxadd.sh: Building Guest Additions kernel modules.
  132. vboxadd.sh: Starting the VirtualBox Guest Additions.
  133.  
  134. Could not find the X.Org or XFree86 Window System, skipping.
  135. stdin: is not a tty
  136.  
  137. Got different reports about installed GuestAdditions version:
  138. Virtualbox on your host claims: 4.3.36
  139. VBoxService inside the vm claims: 5.1.8
  140. Going on, assuming VBoxService is correct...
  141. Got different reports about installed GuestAdditions version:
  142. Virtualbox on your host claims: 4.3.36
  143. VBoxService inside the vm claims: 5.1.8
  144. Going on, assuming VBoxService is correct...
  145. ==> Vaprobash: Checking for guest additions in VM...
  146. Vaprobash: The guest additions on this VM do not match the installed version of
  147. Vaprobash: VirtualBox! In most cases this is fine, but in rare cases it can
  148. Vaprobash: prevent things such as shared folders from working properly. If you see
  149. Vaprobash: shared folder errors, please make sure the guest additions within the
  150. Vaprobash: virtual machine match the version of VirtualBox you have installed on
  151. Vaprobash: your host and reload your VM.
  152. Vaprobash:
  153. Vaprobash: Guest Additions Version: 4.3.36
  154. Vaprobash: VirtualBox Version: 5.1
  155. ==> Vaprobash: Setting hostname...
  156. ==> Vaprobash: Configuring and enabling network interfaces...
  157. ==> Vaprobash: Mounting shared folders...
  158. Vaprobash: /vagrant => D:/My Documents/CS/_Projects/site/adnetwork/vagrant
  159. Vaprobash: /var/www/site-adnetwork => D:/My Documents/CS/_Projects/site/adnetwork
  160. ==> Vaprobash: Running provisioner: file...
  161. ==> Vaprobash: Running provisioner: shell...
  162. Vaprobash: Running: C:/Users/lubus/AppData/Local/Temp/vagrant-shell20161027-3536-1nd4wc.sh
  163. ...
  164. ==> Vaprobash: Enabling site 000-default.
  165. ==> Vaprobash: * Starting Apache httpd web server apache2
  166. ==> Vaprobash: *
  167. ==> Vaprobash: update-rc.d: warning: start runlevel arguments (none) do not match apache-htcacheclean Default-Start values (2 3 4 5)
  168. ==> Vaprobash: update-rc.d: warning: stop runlevel arguments (none) do not match apache-htcacheclean Default-Stop values (0 1 6)
  169. ==> Vaprobash: Setting up ssl-cert (1.0.33) ...
  170. ==> Vaprobash: Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
  171. ==> Vaprobash: Processing triggers for ureadahead (0.100.0-16) ...
  172. ==> Vaprobash: >>> Configuring Apache
  173. ==> Vaprobash: Module mpm_prefork already disabled
  174. ==> Vaprobash: Module mpm_worker already disabled
  175. ==> Vaprobash: ERROR: Module php5 does not exist!
  176. ==> Vaprobash: Enabling module rewrite.
  177. ==> Vaprobash: Enabling module actions.
  178. ==> Vaprobash: Considering dependency setenvif for ssl:
  179. ==> Vaprobash: Module setenvif already enabled
  180. ==> Vaprobash: Considering dependency mime for ssl:
  181. ==> Vaprobash: Module mime already enabled
  182. ==> Vaprobash: Considering dependency socache_shmcb for ssl:
  183. ==> Vaprobash: Enabling module socache_shmcb.
  184. ==> Vaprobash: Enabling module ssl.
  185. ==> Vaprobash: See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
  186. ==> Vaprobash: To activate the new configuration, you need to run:
  187. ==> Vaprobash: service apache2 restart
  188. ==> Vaprobash: Enabling site 192.168.56.110.xip.io.
  189. ==> Vaprobash: To activate the new configuration, you need to run:
  190. ==> Vaprobash: service apache2 reload
  191. ==> Vaprobash: * Reloading Apache httpd web server apache2
  192. ==> Vaprobash: *
  193. ==> Vaprobash: Site 000-default disabled.
  194. ==> Vaprobash: To activate the new configuration, you need to run:
  195. ==> Vaprobash: service apache2 reload
  196. ==> Vaprobash: Considering dependency proxy for proxy_fcgi:
  197. ==> Vaprobash: Enabling module proxy.
  198. ==> Vaprobash: Enabling module proxy_fcgi.
  199. ==> Vaprobash: To activate the new configuration, you need to run:
  200. ==> Vaprobash: service apache2 restart
  201. ==> Vaprobash: * Restarting Apache httpd web server apache2
  202. ==> Vaprobash: ...done.
  203. ==> Vaprobash: Running provisioner: shell...
  204. Vaprobash: Running: C:/Users/lubus/AppData/Local/Temp/vagrant-shell20161027-3536-wfsjhv.sh
  205. ==> Vaprobash: stdin: is not a tty
  206. ==> Vaprobash: >>> Installing MySQL Server 5.6
  207. ...
  208. ==> Vaprobash: Suggested packages:
  209. ==> Vaprobash: doc-base
  210. ==> Vaprobash: The following NEW packages will be installed:
  211. ==> Vaprobash: pv
  212. ==> Vaprobash: 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
  213. ==> Vaprobash: Need to get 33.7 kB of archives.
  214. ==> Vaprobash: After this operation, 160 kB of additional disk space will be used.
  215. ==> Vaprobash: Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe pv amd64 1.2.0-1 [33.7 kB]
  216. ==> Vaprobash: dpkg-preconfigure: unable to re-open stdin: No such file or directory
  217. ==> Vaprobash: Fetched 33.7 kB in 0s (139 kB/s)
  218. ==> Vaprobash: Selecting previously unselected package pv.
  219. ==> Vaprobash: (Reading database ... 68132 files and directories currently installed.)
  220. ==> Vaprobash: Preparing to unpack .../archives/pv_1.2.0-1_amd64.deb ...
  221. ==> Vaprobash: Unpacking pv (1.2.0-1) ...
  222. ==> Vaprobash: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  223. ==> Vaprobash: Setting up pv (1.2.0-1) ...
  224.  
  225. lubus@lubus-LZ575 MINGW64 /d/My Documents/CS/_Projects/site/adnetwork/vagrant (dev2)
  226. $
  227.  
  228. # -*- mode: ruby -*-
  229. # vi: set ft=ruby :
  230.  
  231. # Config Github Settings
  232. github_username = "fideloper"
  233. github_repo = "Vaprobash"
  234. github_branch = "1.4.2"
  235. github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}"
  236.  
  237. # Because this:https://developer.github.com/changes/2014-12-08-removing-authorizations-token/
  238. # https://github.com/settings/tokens
  239. github_pat = ""
  240.  
  241. # Server Configuration
  242.  
  243. hostname = "adnetwork.dev"
  244.  
  245. # Set a local private network IP address.
  246. # See http://en.wikipedia.org/wiki/Private_network for explanation
  247. # You can use the following IP ranges:
  248. # 10.0.0.1 - 10.255.255.254
  249. # 172.16.0.1 - 172.31.255.254
  250. # 192.168.0.1 - 192.168.255.254
  251. server_ip = "192.168.56.110"
  252. server_cpus = "2" # Cores
  253. server_memory = "1024" # MB
  254. server_swap = "2048" # Options: false | int (MB) - Guideline: Between one or two times the server_memory
  255.  
  256. # UTC for Universal Coordinated Time
  257. # EST for Eastern Standard Time
  258. # CET for Central European Time
  259. # US/Central for American Central
  260. # US/Eastern for American Eastern
  261. server_timezone = "UTC"
  262.  
  263. # Database Configuration
  264. mysql_root_password = "Dialer2014" # We'll assume user "root"
  265. mysql_version = "5.6" # Options: 5.5 | 5.6
  266. mysql_enable_remote = "false" # remote access enabled when true
  267. pgsql_root_password = "root" # We'll assume user "root"
  268. mongo_version = "2.6" # Options: 2.6 | 3.0
  269. mongo_enable_remote = "false" # remote access enabled when true
  270.  
  271. # Languages and Packages
  272. php_timezone = "UTC" # http://php.net/manual/en/timezones.php
  273. php_version = "5.6" # Options: 5.5 | 5.6
  274. ruby_version = "latest" # Choose what ruby version should be installed (will also be the default version)
  275. ruby_gems = [ # List any Ruby Gems that you want to install
  276. #"jekyll",
  277. #"sass",
  278. #"compass",
  279. ]
  280.  
  281. go_version = "latest" # Example: go1.4 (latest equals the latest stable version)
  282.  
  283. # To install HHVM instead of PHP, set this to "true"
  284. hhvm = "false"
  285.  
  286. # PHP Options
  287. composer_packages = [ # List any global Composer packages that you want to install
  288. #"phpunit/phpunit:4.0.*",
  289. #"codeception/codeception=*",
  290. #"phpspec/phpspec:2.0.*@dev",
  291. #"squizlabs/php_codesniffer:1.5.*",
  292. ]
  293.  
  294. # Default web server document root
  295. # Symfony's public directory is assumed "web"
  296. # Laravel's public directory is assumed "public"
  297. public_folder = "/var/www"
  298.  
  299. laravel_root_folder = "/vagrant/laravel" # Where to install Laravel. Will `composer install` if a composer.json file exists
  300. laravel_version = "latest-stable" # If you need a specific version of Laravel, set it here
  301. symfony_root_folder = "/vagrant/symfony" # Where to install Symfony.
  302.  
  303. nodejs_version = "latest" # By default "latest" will equal the latest stable version
  304. nodejs_packages = [ # List any global NodeJS packages that you want to install
  305. #"grunt-cli",
  306. #"gulp",
  307. #"bower",
  308. #"yo",
  309. ]
  310.  
  311. # RabbitMQ settings
  312. rabbitmq_user = "vagrant"
  313. rabbitmq_password = "vagrant"
  314.  
  315. sphinxsearch_version = "rel22" # rel20, rel21, rel22, beta, daily, stable
  316.  
  317. elasticsearch_version = "2.3.1" # 5.0.0-alpha1, 2.3.1, 2.2.2, 2.1.2, 1.7.5
  318.  
  319. Vagrant.configure("2") do |config|
  320.  
  321. # Set server to Ubuntu 14.04
  322. config.vm.box = "ubuntu/trusty64"
  323.  
  324. config.vm.define "Vaprobash" do |vapro|
  325. end
  326.  
  327. if Vagrant.has_plugin?("vagrant-hostmanager")
  328. config.hostmanager.enabled = true
  329. config.hostmanager.manage_host = true
  330. config.hostmanager.ignore_private_ip = false
  331. config.hostmanager.include_offline = false
  332. end
  333.  
  334. # Create a hostname, don't forget to put it to the `hosts` file
  335. # This will point to the server's default virtual host
  336. # TO DO: Make this work with virtualhost along-side xip.io URL
  337. config.vm.hostname = hostname
  338.  
  339. # Create a static IP
  340. if Vagrant.has_plugin?("vagrant-auto_network")
  341. config.vm.network :private_network, :ip => "0.0.0.0", :auto_network => true
  342. else
  343. config.vm.network :private_network, ip: server_ip
  344. config.vm.network :forwarded_port, guest: 80, host: 8003
  345. end
  346.  
  347. # Enable agent forwarding over SSH connections
  348. config.ssh.forward_agent = true
  349.  
  350. # Use NFS for the shared folder
  351. config.vm.synced_folder "../", "/var/www/site-adnetwork",
  352. :owner => "www-data",
  353. :group => "www-data",
  354. :mount_options => ["dmode=777", "fmode=666"]
  355.  
  356. # Replicate local .gitconfig file if it exists
  357. if File.file?(File.expand_path("~/.gitconfig"))
  358. config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
  359. end
  360.  
  361. # If using VirtualBox
  362. config.vm.provider :virtualbox do |vb|
  363.  
  364. vb.name = hostname
  365.  
  366. # Set server cpus
  367. vb.customize ["modifyvm", :id, "--cpus", server_cpus]
  368.  
  369. # Set server memory
  370. vb.customize ["modifyvm", :id, "--memory", server_memory]
  371.  
  372. # Set the timesync threshold to 10 seconds, instead of the default 20 minutes.
  373. # If the clock gets more than 15 minutes out of sync (due to your laptop going
  374. # to sleep for instance, then some 3rd party services will reject requests.
  375. vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000]
  376.  
  377. # Prevent VMs running on Ubuntu to lose internet connection
  378. # vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
  379. # vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
  380.  
  381. end
  382.  
  383. # If using VMWare Fusion
  384. config.vm.provider "vmware_fusion" do |vb, override|
  385. override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
  386.  
  387. # Set server memory
  388. vb.vmx["memsize"] = server_memory
  389.  
  390. end
  391.  
  392. # If using Vagrant-Cachier
  393. # http://fgrehm.viewdocs.io/vagrant-cachier
  394. if Vagrant.has_plugin?("vagrant-cachier")
  395. # Configure cached packages to be shared between instances of the same base box.
  396. # Usage docs: http://fgrehm.viewdocs.io/vagrant-cachier/usage
  397. config.cache.scope = :box
  398.  
  399. config.cache.synced_folder_opts = {
  400. type: :nfs,
  401. mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
  402. }
  403. end
  404.  
  405. # Adding vagrant-digitalocean provider - https://github.com/smdahlen/vagrant-digitalocean
  406. # Needs to ensure that the vagrant plugin is installed
  407. config.vm.provider :digital_ocean do |provider, override|
  408. override.ssh.private_key_path = '~/.ssh/id_rsa'
  409. override.ssh.username = 'vagrant'
  410. override.vm.box = 'digital_ocean'
  411. override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
  412.  
  413. provider.token = 'YOUR TOKEN'
  414. provider.image = 'ubuntu-14-04-x64'
  415. provider.region = 'nyc2'
  416. provider.size = '512mb'
  417. end
  418.  
  419. ####
  420. # Base Items
  421. ##########
  422.  
  423. # Provision Base Packages
  424. config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: [github_url, server_swap, server_timezone]
  425.  
  426. # optimize base box
  427. config.vm.provision "shell", path: "#{github_url}/scripts/base_box_optimizations.sh", privileged: true
  428.  
  429. # Provision PHP
  430. config.vm.provision "shell", path: "#{github_url}/scripts/php.sh", args: [php_timezone, hhvm, php_version]
  431.  
  432. # Enable MSSQL for PHP
  433. # config.vm.provision "shell", path: "#{github_url}/scripts/mssql.sh"
  434.  
  435. # Provision Vim
  436. # config.vm.provision "shell", path: "#{github_url}/scripts/vim.sh", args: github_url
  437.  
  438. # Provision Docker
  439. # config.vm.provision "shell", path: "#{github_url}/scripts/docker.sh", args: "permissions"
  440.  
  441. ####
  442. # Web Servers
  443. ##########
  444.  
  445. # Provision Apache Base
  446. config.vm.provision "shell", path: "#{github_url}/scripts/apache.sh", args: [server_ip, public_folder, hostname, github_url]
  447.  
  448. # Provision Nginx Base
  449. # config.vm.provision "shell", path: "#{github_url}/scripts/nginx.sh", args: [server_ip, public_folder, hostname, github_url]
  450.  
  451.  
  452. ####
  453. # Databases
  454. ##########
  455.  
  456. # Provision MySQL
  457. config.vm.provision "shell", path: "#{github_url}/scripts/mysql.sh", args: [mysql_root_password, mysql_version, mysql_enable_remote]
  458.  
  459. # Provision PostgreSQL
  460. # config.vm.provision "shell", path: "#{github_url}/scripts/pgsql.sh", args: pgsql_root_password
  461.  
  462. # Provision SQLite
  463. # config.vm.provision "shell", path: "#{github_url}/scripts/sqlite.sh"
  464.  
  465. # Provision RethinkDB
  466. # config.vm.provision "shell", path: "#{github_url}/scripts/rethinkdb.sh", args: pgsql_root_password
  467.  
  468. # Provision Couchbase
  469. # config.vm.provision "shell", path: "#{github_url}/scripts/couchbase.sh"
  470.  
  471. # Provision CouchDB
  472. # config.vm.provision "shell", path: "#{github_url}/scripts/couchdb.sh"
  473.  
  474. # Provision MongoDB
  475. # config.vm.provision "shell", path: "#{github_url}/scripts/mongodb.sh", args: [mongo_enable_remote, mongo_version]
  476.  
  477. # Provision MariaDB
  478. # config.vm.provision "shell", path: "#{github_url}/scripts/mariadb.sh", args: [mysql_root_password, mysql_enable_remote]
  479.  
  480. # Provision Neo4J
  481. # config.vm.provision "shell", path: "#{github_url}/scripts/neo4j.sh"
  482.  
  483. ####
  484. # Search Servers
  485. ##########
  486.  
  487. # Install Elasticsearch
  488. # config.vm.provision "shell", path: "#{github_url}/scripts/elasticsearch.sh", args: [elasticsearch_version]
  489.  
  490. # Install SphinxSearch
  491. # config.vm.provision "shell", path: "#{github_url}/scripts/sphinxsearch.sh", args: [sphinxsearch_version]
  492.  
  493. ####
  494. # Search Server Administration (web-based)
  495. ##########
  496.  
  497. # Install ElasticHQ
  498. # Admin for: Elasticsearch
  499. # Works on: Apache2, Nginx
  500. # config.vm.provision "shell", path: "#{github_url}/scripts/elastichq.sh"
  501.  
  502.  
  503. ####
  504. # In-Memory Stores
  505. ##########
  506.  
  507. # Install Memcached
  508. # config.vm.provision "shell", path: "#{github_url}/scripts/memcached.sh"
  509.  
  510. # Provision Redis (without journaling and persistence)
  511. # config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh"
  512.  
  513. # Provision Redis (with journaling and persistence)
  514. # config.vm.provision "shell", path: "#{github_url}/scripts/redis.sh", args: "persistent"
  515. # NOTE: It is safe to run this to add persistence even if originally provisioned without persistence
  516.  
  517.  
  518. ####
  519. # Utility (queue)
  520. ##########
  521.  
  522. # Install Beanstalkd
  523. # config.vm.provision "shell", path: "#{github_url}/scripts/beanstalkd.sh"
  524.  
  525. # Install Heroku Toolbelt
  526. # config.vm.provision "shell", path: "https://toolbelt.heroku.com/install-ubuntu.sh"
  527.  
  528. # Install Supervisord
  529. # config.vm.provision "shell", path: "#{github_url}/scripts/supervisord.sh"
  530.  
  531. # Install Kibana
  532. # config.vm.provision "shell", path: "#{github_url}/scripts/kibana.sh"
  533.  
  534. # Install ØMQ
  535. # config.vm.provision "shell", path: "#{github_url}/scripts/zeromq.sh"
  536.  
  537. # Install RabbitMQ
  538. # config.vm.provision "shell", path: "./scripts/rabbitmq.sh", args: [rabbitmq_user, rabbitmq_password]
  539.  
  540. ####
  541. # Additional Languages
  542. ##########
  543.  
  544. # Install Nodejs
  545. # config.vm.provision "shell", path: "#{github_url}/scripts/nodejs.sh", privileged: false, args: nodejs_packages.unshift(nodejs_version, github_url)
  546.  
  547. # Install Ruby Version Manager (RVM)
  548. # config.vm.provision "shell", path: "#{github_url}/scripts/rvm.sh", privileged: false, args: ruby_gems.unshift(ruby_version)
  549.  
  550. # Install Go Version Manager (GVM)
  551. # config.vm.provision "shell", path: "#{github_url}/scripts/go.sh", privileged: false, args: [go_version]
  552.  
  553. ####
  554. # Frameworks and Tooling
  555. ##########
  556.  
  557. # Provision Composer
  558. # You may pass a github auth token as the first argument
  559. # config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: [github_pat, composer_packages.join(" ")]
  560.  
  561. # Provision Laravel
  562. # config.vm.provision "shell", path: "#{github_url}/scripts/laravel.sh", privileged: false, args: [server_ip, laravel_root_folder, public_folder, laravel_version]
  563.  
  564. # Provision Symfony
  565. # config.vm.provision "shell", path: "#{github_url}/scripts/symfony.sh", privileged: false, args: [server_ip, symfony_root_folder, public_folder]
  566.  
  567. # Install Screen
  568. # config.vm.provision "shell", path: "#{github_url}/scripts/screen.sh"
  569.  
  570. # Install Mailcatcher
  571. # config.vm.provision "shell", path: "#{github_url}/scripts/mailcatcher.sh"
  572.  
  573. # Install git-ftp
  574. # config.vm.provision "shell", path: "#{github_url}/scripts/git-ftp.sh", privileged: false
  575.  
  576. # Install Ansible
  577. # config.vm.provision "shell", path: "#{github_url}/scripts/ansible.sh"
  578.  
  579. # Install Android
  580. # config.vm.provision "shell", path: "#{github_url}/scripts/android.sh"
  581.  
  582. ####
  583. # Local Scripts
  584. # Any local scripts you may want to run post-provisioning.
  585. # Add these to the same directory as the Vagrantfile.
  586. ##########
  587. config.vm.provision "shell", path: "./scripts/pma.sh"
  588. config.vm.provision "shell", path: "./scripts/vhosts.sh"
  589. config.vm.provision "shell", path: "./scripts/tools.sh"
  590. # config.vm.provision "shell", path: "./local-script.sh"
  591.  
  592. # A private dhcp network is required for NFS to work (on Windows hosts, at least)
  593. config.vm.network "private_network", type: "dhcp"
  594.  
  595. end
  596.  
  597. #!/usr/bin/env bash
  598.  
  599. cd /var/www/
  600. mkdir pma
  601. sudo apt-get install unzip
  602. sudo wget https://files.phpmyadmin.net/phpMyAdmin/4.5.0.2/phpMyAdmin-4.5.0.2-all-languages.zip
  603. sudo unzip phpMyAdmin-4.5.0.2-all-languages.zip
  604. sudo mv phpMyAdmin-4.5.0.2-all-languages/* pma
  605.  
  606. #!/usr/bin/env bash
  607.  
  608. # PV - pipe viwer, awesome to do like this: pv dump.sql | mysql -u root -p databse_name
  609. sudo apt-get -y install pv
  610.  
  611. #!/usr/bin/env bash
  612.  
  613. sudo vhost -d /var/www/site-adnetwork -s adnetwork.dev
  614. sudo vhost -d /var/www/pma -s pma.adnetwork.dev
  615.  
  616. $ vagrant plugin list
  617. vagrant-share (1.1.5, system)
  618. vagrant-vbguest (0.13.0)
  619. vagrant-winnfsd (1.3.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement