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
routing[:endpoint_host] = "scalr-test.adskengineer.net" | |
app[:ip_ranges] = ["172.29.2.54/32", "172.29.2.55/32", "172.29.2.56/32", "172.29.27.133/32"] | |
app[:instances_connection_policy] = 'local' | |
app[:configuration] = { | |
:scalr => { | |
:auth_mode => 'ldap', | |
:connections => { | |
:ldap => { | |
:host => 'localhost', |
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
app[:configuration] = { | |
:scalr => { | |
:aws => { | |
:ec2: => { | |
:limits => { | |
:security_groups_per_instance => "5" | |
} | |
} | |
} | |
} |
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
$password = $dbServer->GetProperty(ServerProperty::AZURE_ADMIN_PASSWORD); | |
@fwrite($shell, "echo \"{$password}\" | sudo -S chmod 0777 /tmp/scalarizr-installer.sh 2>&1" . PHP_EOL); | |
$output = @fgets($shell, 4096); | |
\Scalr::getContainer()->logger(\LOG_CATEGORY::FARM)->warn(sprintf( | |
_("Agent deploy verbose #1: %s"), | |
$output | |
)); | |
@fwrite($shell, "echo \"{$password}\" | sudo -S touch /var/log/scalarizr-installer.log 2>&1" . PHP_EOL); |
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 | |
use Scalr\Modules\PlatformFactory; | |
use Scalr\Model\Entity; | |
include __DIR__ . '/../src/prepend.inc.php'; | |
if (php_sapi_name() != 'cli') { | |
header("HTTP/1.0 404 Not Found"); | |
exit(); |
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
{"capacityInKB":61440000,"diskObjectId":null,"iofilter":[],"storageIOAllocation":{"limit":-1,"reservation":null,"shares":{"level":"normal","shares":1000}},"vFlashCacheConfigInfo":null,"backing":{"changeId":null,"contentId":"5aa3d9dd55cac1776df3470f0cb08a37","deltaDiskFormat":null,"deltaGrainSize":null,"digestEnabled":false,"diskMode":"persistent","eagerlyScrub":null,"parent":null,"split":false,"thinProvisioned":true,"uuid":"6000C290-4e45-8291-3407-942de560aad2","writeThrough":false,"backingObjectId":null,"datastore":{"_":"datastore-404","type":"Datastore"},"fileName”:”[SRV01-esxfs01-template] win-server-2012r2-02072018\/win-server-2012r2-02072018.vmdk"},"connectable":null,"controllerKey":1000,"deviceInfo":{"label":"Hard disk 1","summary":"61,440,000 KB"},"key":2000,"slotInfo":null,"unitNumber":0,"shares":{"level":"normal","shares":1000}} | |
{"capacityInKB":61440000,"diskObjectId":"72-2000","iofilter":[],"storageIOAllocation":{"limit":-1,"reservation":0,"shares":{"level":"normal","shares":1000}},"vFlashCacheCon |
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
#!/usr/bin/python3 | |
nginx_config_file = '/etc/nginx/nginx.conf' | |
nginx_reload_command = 'service nginx restart' | |
nginx_config_template = """ | |
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { |