Last active
September 16, 2017 03:23
-
-
Save gpkvt/a8785032c0aa3d920ab9 to your computer and use it in GitHub Desktop.
SaltStack: Install phpVirtualBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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