Skip to content

Instantly share code, notes, and snippets.

@gpkvt
Last active September 16, 2017 03:23
Show Gist options
  • Save gpkvt/a8785032c0aa3d920ab9 to your computer and use it in GitHub Desktop.
Save gpkvt/a8785032c0aa3d920ab9 to your computer and use it in GitHub Desktop.
SaltStack: Install phpVirtualBox
<?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