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/'; |
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
# This state installs VirtualBox with Extpack | |
# | |
# To reinstall the extpack simply delete /srv/*.vbox-extpack | |
# To update the extpack it's important to keep the original download name otherwise install will fail | |
{% set extpack = 'Oracle_VM_VirtualBox_Extension_Pack-4.3.10.vbox-extpack' %} | |
vbox_repo: | |
pkgrepo.managed: | |
- name: deb http://download.virtualbox.org/virtualbox/debian wheezy contrib non-free |
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 query = [] %} | |
{% if not salt['mysql.get_slave_status']()['Master_Host'] %} | |
{% for host, hostinfo in salt['mine.get']("*.mysql_master?.de", 'grains.items').items() %} | |
{% if hostinfo['cluster'] == "active" and hostinfo['host'] == salt['grains.get']('host') %} | |
{% do query.append(salt['mine.get'](hostinfo['fqdn'], 'mysql.get_master_status')[hostinfo['fqdn']]) %} | |
{% do query.append(salt['grains.get']('ipv4')[0].split('.')[-1]) %} | |
{% endif %} | |
{% endfor %} | |
{% set doquery = "CHANGE MASTER TO MASTER_HOST='192.168.0."+ query[1] +"', MASTER_USER='repl', MASTER_PASSWORD='foobar', MASTER_LOG_FILE='"+ query[0]['File'] +"', MASTER_LOG_POS="+ query[0]['Position']|string +";" %} |