Skip to content

Instantly share code, notes, and snippets.

@rcorreia
Forked from gpkvt/config.php
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcorreia/721780e26b49684ba432 to your computer and use it in GitHub Desktop.
Save rcorreia/721780e26b49684ba432 to your computer and use it in GitHub Desktop.
<?php
class phpVBoxConfig {
/* Username / Password for system user that runs VirtualBox */
var $username = 'vbox';
var $password = 'CHANGE_ME';
/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = 'http://localhost:18083/';
/* Default language. See languages folder for more language options.
* Can also be changed in File -> Preferences -> Language in
* phpVirtualBox.
*/
var $language = 'en';
}
?>
{% set version = '4.3-1' %}
{% set hash = '33c2b4c050d55daa4024659e60c0136b' %}
download_phpvirtualbox:
archive.extracted:
- source: http://downloads.sourceforge.net/project/phpvirtualbox/phpvirtualbox-{{ version }}.zip
- source_hash: md5={{ hash }}
- name: /opt/
- archive_format: zip
- if_missing: /opt/phpvirtualbox-{{ version }}
symlink_phpvirtualbox:
file.symlink:
- target: /opt/phpvirtualbox-{{ version }}/
- name: /var/www/vbox
/opt/phpvirtualbox-{{ version }}/config.php:
file.managed:
- source: salt://phpvbox/config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment