Skip to end of metadata
Go to start of metadata

Don't forget to run scalr-server-ctl reconfigure to activate your changes after editing the scalr-server.rb file.

scalr-server.rb

Any attributes used on this page, should go into the app[:configuration] parameter in the scalr-server.rb config file in Ruby syntax.

For example, the scalr.connections.mysql.host configuration key should be defined as:

app[:configuration] = {
  "scalr" => {
    "connections" => {
      "mysql" => {
        "host" => "your-hostname"
      }
    }
  }
}

Here is an example with several attributes:

app[:configuration] = {
  "scalr" => {
    "connections" => {
      "mysql" => {
        "host" => "your-hostname",
        "port" => 3306
      }
    },
    "security" => {
      "user" => {
        "session" => {
          "timeout" => "+30 minutes",
          "lifetime" => "+8 hours"
        }
      }
    }
  }
}


The following tables details the configuration parameters for Scalr:

Cost Analytics

Scalr VersionParameterDescriptionTypeExample value(s)Default value
>= 5.0scalr.analytics.enabledWhether Scalr Cost Analytics should be enabled.Booleantrue, falsefalse
>= 5.0scalr.analytics.connections.analytics.hostThe host for the MySQL server Scalr Cost Analytics processes should use.String"hostname", "127.0.0.1""127.0.0.1"
>= 5.0scalr.analytics.connections.analytics.portThe port for the MySQL server Scalr Cost Analytics processes should use.Integerany TCP port3306
>= 5.0scalr.analytics.connections.analytics.nameThe name for the MySQL database Scalr Cost Analytics processes should use.String"analytics"
>= 5.0scalr.analytics.connections.analytics.userThe MySQL username Scalr Cost Analytics processes should use.String"scalr"
>= 5.0scalr.analytics.connections.analytics.passThe MySQL password Scalr Cost Analytics processes should use.String"s3cur3pa55w0rd"
>= 5.0scalr.analytics.connections.scalr.hostThe host for the MySQL server Scalr Cost Analytics processes should use to access the Scalr database.String"hostname", "127.0.0.1"Defaults to scalr.connections.mysql.host
>= 5.0scalr.analytics.connections.scalr.portThe port for the MySQL server Scalr Cost Analytics processes should use to access the Scalr database.Integerany TCP portDefaults to scalr.connections.mysql.port
>= 5.0scalr.analytics.connections.scalr.nameThe name for the MySQL server Scalr Cost Analytics database processes should use to access the Scalr database.String"analytics"Defaults to scalr.connections.mysql.name
>= 5.0scalr.analytics.connections.scalr.userThe username for the MySQL server Scalr Cost Analytics processes should use to access the Scalr database.String"scalr"Defaults to scalr.connections.mysql.user
>= 5.0scalr.analytics.connections.scalr.passThe password for the MySQL server Scalr Cost Analytics processes should use to access the Scalr database.String"s3cur3pa55w0rd"Defaults to scalr.connections.mysql.pass
>= 5.0scalr.analytics.poller.pool_sizeNumber of threads to use to poll clouds for cost data.Integer1-99950
>= 5.0scalr.analytics.poller.cloud_connection_timeoutConnection timeout (in seconds) when polling a cloud for cost data.Integer1-360020
>= 5.0scalr.analytics.poller.log_fileLog file for the Cost Analytics poller.Stringvalid file path/var/log/scalr.analytics-poller.log
>= 5.0scalr.analytics.poller.pid_filePid file for the Cost Analytics poller.Stringvalid file path/var/run/scalr.analytics-poller.pid
>= 5.0scalr.analytics.processing.pool_sizeNumber of threads to use to process cost data.Integer1-99950
>= 5.0scalr.analytics.processing.log_fileLog file for the Cost Analytics processor.Stringvalid file path/var/log/scalr.analytics-processing.log 
>= 5.0scalr.analytics.processing.pid_filePid file for the Cost Analytics processor.Stringvalid file path/var/run/scalr.analytics-processing.pid

Deprecated

Scalr VersionParameterDescriptionTypeExample value(s)Default value
<= 5.11.6scalr.auditlog.enabledWhether or not the Scalr auditlog should be enabled.
REMOVED IN VERSION 5.11.7 AND ABOVE! PLEASE REFER TO scalr.logger INSTEAD! 
Booleantrue, falsefalse

scalr.dns.global.nameservers
Not used anymore.



scalr.dns.static.extended
Not used anymore.


< 4.5scalr.monitoring.server_urlDeprecated as of Scalr 4.5.


< 4.5scalr.stats_poller.rrd_db_dirDeprecated as of Scalr 4.5.


< 4.5scalr.stats_poller.images_pathDeprecated as of Scalr 4.5.


< 4.5scalr.stats_poller.graphics_urlDeprecated as of Scalr 4.5.


Proxy

Scalr VersionParameterDescriptionTypeExample value(s)Default value
>= 5.0scalr.aws.use_proxyWhether Scalr should use a proxy when communicating with AWS.Booleantrue, falsefalse
>= 5.11.7scalr.azure.use_proxyWhether Scalr should use a proxy when communicating with Azure.Booleantrue, falsefalse
>= 5.7scalr.openstack.use_proxyWhether Scalr should use a proxy when communicating with OpenStack.Booleantrue, falsefalse
>= 5.7scalr.ocs.use_proxyWhether Scalr should use a proxy when communicating with OCS.Booleantrue, falsefalse
>= 5.7scalr.rackspacenguk.use_proxyWhether Scalr should use a proxy when communicating with Rackspace UK.Booleantrue, falsefalse
>= 5.7scalr.rackspacengus.use_proxyWhether Scalr should use a proxy when communicating with Rackspace US.Booleantrue, falsefalse
>= 5.7scalr.hpcloud.use_proxyWhether Scalr should use a proxy when communicating with HP Cloud.Booleantrue, falsefalse
>= 5.7scalr.mirantis.use_proxyWhether Scalr should use a proxy when communicating with Mirantis Cloud.Booleantrue, falsefalse
>= 5.7scalr.vio.use_proxyWhether Scalr should use a proxy when communicating with VMWare VIO.Booleantrue, falsefalse
>= 5.7scalr.cisco.use_proxyWhether Scalr should use a proxy when communicating with Cisco Cloud.Booleantrue, falsefalse
>= 5.11.7scalr.cloudstack.use_proxyWhether Scalr should use a proxy when communicating with CloudStack.Booleantrue, falsefalse
>= 5.11.7scalr.idcf.use_proxyWhether Scalr should use a proxy when communicating with IDC Frontier.Booleantrue, falsefalse
>= 5.11.7scalr.system.webhooks.use_proxyWhether Scalr should use a proxy when sending requests using Webhooks.Booleantrue, falsefalse
>= 5.0
scalr.connections.proxy.host
The proxy host Scalr should use to communicate with cloud APIs using a proxy.String"hostname", "127.0.0.1""localhost"
>= 5.0
scalr.connections.proxy.port
The proxy port Scalr should use.Integervalid TCP port3128
>= 5.0
scalr.connections.proxy.user
The proxy username Scalr should use.String"scalr"
>= 5.0
scalr.connections.proxy.pass
The proxy password Scalr should use.String"s3cur3pa55w0rd"
>= 5.0
scalr.connections.proxy.type
Proxy type to use.Integer

0 = HTTP
4 = SOCKS4
5 = SOCKS5 

0
>= 5.1
scalr.connections.proxy.authtype
Type of authentication to use.Integer

1 = Basic Auth
2 = Digest Auth
4 = GSSNeg
8 = NTLM
-1 = Any auh type 

1
>= 5.3
scalr.connections.proxy.use_on
What the proxy should be used for.String"both" = Server & Agent
"scalr" = Server only
"instance" = Agent only 
"scalr"

LDAP

Scalr VersionParameterDescriptionTypeExample value(s)Default value

scalr.auth_modeThe authentication mode that Scalr should use.String

"scalr" = Password auth
"ldap" = LDAP auth 
"saml" = SAML auth 

"scalr"

scalr.connections.ldap.hostThe host Scalr should connect to for LDAP authentication. This should be a reachable LDAP server.String"hostname", "1.2.3.4"

scalr.connections.ldap.port

The port Scalr should connect to for LDAP authentication.Integervalid TCP port389

scalr.connections.ldap.base_dnThe base DN for users.Stringvalid base DNDC=scalr,DC=local

scalr.connections.ldap.base_dn_groupsThe base DN for groups.Stringvalid base DNOU=All Groups,DC=scalr,DC=local

scalr.connections.ldap.user

A fully qualified username for an administrator of the LDAP server, if you intend to use API with LDAP auth.

Stringvalid admin LDAP user

scalr.connections.ldap.passPassword for the LDAP administrator. See scalr.connections.ldap.userStringvalid admin LDAP pass

scalr.connections.ldap.group_nestingWhether Scalr should use group nesting in LDAP.Booleantrue, falsetrue

scalr.connections.ldap.domain

The default domain Scalr should append to usernames when users omit their domain as they login to Scalr.

This is only used when scalr.connections.ldap.bind_type is set to simple.

String

If not specified, then Scalr will concatenate the domain components used in scalr.connections.ldap.base_dn.

For example, if scalr.connections.ldap.base_dn is set to DC=scalr,DC=local, then scalr.connections.ldap.domain will default to scalr.local


scalr.connections.ldap.bind_type

The bind type Scalr should use. This can be set to regular or simple.

String

"regular" = Login name only
"simple" = Full Name, Display Name or SAMAccountName
"openldap" = Set to this when using openldap 

"regular"

scalr.connections.ldap.mail_attributeThe name of the attribute that contains a user's email address on the LDAP server.Stringvalid LDAP attribute

scalr.connections.ldap.fullname_attributeThe name of the attribute that contains a user's fullname on the LDAP server.String
"displayName"

scalr.connections.ldap.username_attributeThe name of the attribute that contains a user's username on the LDAP server.String


scalr.connections.ldap.groupname_attributeThe name of the attribute that contains a user's groups on the LDAP server.String


scalr.connections.ldap.debugWhether or not to enable debug mode (logging) for LDAP.Booleantrue, falsefalse

scalr.connections.ldap.filter.usersThe filter that Scalr should use for LDAP user queries.String

"(&(objectCategory=person)(objectClass=user))"


scalr.connections.ldap.filter.groupsThe filter that Scalr should use for LDAP group queries.String
"(&(objectClass=group))"

scalr.connections.ldap.group_member_attribute_typeOnly used if bind_type is set to "openldap". Specifies how group membership is represented.String"unit_netgroup", "regular", "user_dn""regular"

scalr.connections.ldap.group_displayname_attributeThe name of the attribute that contains the group displaynameString

SAML

Scalr VersionParameterDescriptionTypeExample value(s)Default value

>= 6.0.0

scalr.connections.saml.strict

If true, then Scalr will reject unsigned or unencrypted messages if it expects them to be signed or encrypted. Also it will reject the messages if the SAML standard is not strictly followed: Destination, NameId, Conditions ... are validated too.

Booleantrue, falsetrue
>= 6.0.0scalr.connections.saml.debugIf true, errors will be displayed in the Scalr UI.Booleantrue, falsefalse
>= 6.1.0scalr.connections.saml.auto_redirectIf true, users will be automatically redirected on auth and will not be presented with a "Login" button.Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.idp.entity_idIdentifier of the IdP entity. Must be a URI.String"https://idp.domain/saml/metadata"
>= 6.0.0scalr.connections.saml.idp.single_sign_on_service.urlURL Target of the IdP where the Scalr will send the Authentication Request Message.String"https://your-labs.idp.domain/trust/saml2/http-post/sso"
>= 6.0.0scalr.connections.saml.idp.single_sign_on_service.bindingSAML protocol binding to be used when returning the <Response> message.String"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
>= 6.0.0scalr.connections.saml.idp.single_logout_service.urlURL Location of the IdP where the Scalr will send the SLO Request.String"https://your-labs.idp.domain/trust/saml2/http-redirect/slo"
>= 6.0.0scalr.connections.saml.idp.single_logout_service.bindingSAML protocol binding to be used when returning the <Response> message.String"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
>= 6.0.0scalr.connections.saml.idp.x509certPublic x509 certificate of the IdP.String"daksjhdaksjdhakljl"
>= 6.0.0scalr.connections.saml.idp.cert_fingerprint

Instead of useing the whole x509cert you can use a fingerprint in order to validate a SAMLResponse. Example to generate sha256 fingerprint:
openssl x509 -noout -fingerprint -sha256 -in "idp.crt"

String"AA:BB:CC:DD:EE:FF"
>= 6.0.0scalr.connections.saml.idp.cert_fingerprint_algorithmTell Scalr which algorithm was used to generate the fingerprint.Stringsha256, sha384 or sha512sha256
>= 7.2.0scalr.connections.saml.mapping.groups

Used to override standard mapping for SAML assertion attributes.  This is used to set the name of the Groups attribute to use in SAML Assertion.

String
Groups
>= 7.2.0scalr.connections.saml.mapping.separatorUsed to override standard mapping for SAML assertion attributes.  This is used to set the Groups separator.String
","
>= 6.0.0scalr.connections.saml.sp.assertion_consumer_service.bindingSpecifies info about where and how the <AuthnResponse> message MUST be returned to the requester, in this case our Service Provider. SAML protocol binding to be used when returning the <Response> message. It supports HTTP-POST binding only.String"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST""urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
>= 6.0.0scalr.connections.saml.sp.single_logout_service.bindingSLO endpoint info of the IdP.

SAML protocol binding to be used when returning the <Response> message. It supports the HTTP-Redirect binding only for this endpoint.

String"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect""urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
>= 6.0.0scalr.connections.saml.sp.name_id_formatSpecifies the constraints on the name identifier to be used to represent the requested subject.String"urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified""urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified"
>= 6.0.0scalr.connections.saml.sp.x509certCertificate to use for the Service Provider.String"skjdhasdkjashdjkhsad"
>= 6.0.0scalr.connections.saml.sp.private_keyPrivate key to use for the Service ProviderString"abcdefghijklmnopqrstuvwxyz"
>= 6.0.0scalr.connections.saml.security.name_id_encryptedIndicates whether the nameID of the <samlp:logoutRequest> sent by this SP will be encrypted.Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.security.authn_requests_signedIndicates whether the <samlp:AuthnRequest> messages sent by this SP will be signed.Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.security.logout_request_signedIndicates whether the <samlp:logoutRequest> messages sent by this SP will be signed.Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.security.logout_response_signedIndicates whether the <samlp:logoutResponse> messages sent by this SP will be signed.Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.security.sign_metadata

Sign the Metadata. If true it will use SP certs and they must be provided.

Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.security.want_messages_signed

Indicates a requirement for the <samlp:Response>, <samlp:LogoutRequest> and <samlp:LogoutResponse> elements received by this SP to be signed.

Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.security.want_assertions_signedIndicates a requirement for the <saml:Assertion> elements received by this SP to be signed.Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.security.want_name_id_encryptedIndicates a requirement for the NameID received by this SP to be encrypted.Booleantrue, falsefalse
>= 6.0.0scalr.connections.saml.security.requested_authn_context

Set to false and no AuthContext will be sent in the AuthNRequest,
Set true and you will get an AuthContext 'exact' 'urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport'
Set an array with the possible auth context values.

Boolean or Arraytrue, false or ["urn:oasis:names:tc:SAML:2.0:ac:classes:Password", "urn:oasis:names:tc:SAML:2.0:ac:classes:X509"]true
>= 6.0.0scalr.connections.saml.security.want_xml_validationIndicates if the SP will validate all received xmls. (In order to validate the xml, 'strict' and 'want_xml_validation' must be true).Booleantrue, falsetrue
>= 6.0.0scalr.connections.saml.security.signature_algorithmAlgorithm that Scalr will use on signing process.Stringsha256, sha384 or sha512sha256

Logging

Scalr VersionParameterDescriptionTypeExample value(s)Default value

scalr.system.scripting.logs_storage 

The location where Scalr should store Scripting Log.

String"scalr" = On Scalr server
"instance" = On affected instance 
"instance"

scalr.system.scripting.default_instance_log_rotation_period

The default duration (in seconds) logs should be kept when stored on instances.

Users can override this setting in the Farm Designer:  Advanced Tab - Orchestration.

Integer1-999993600
>= 5.11.7scalr.logger.audit.enabledWhether the audit log should be enabled.Booleantrue, falsefalse
>= 5.11.7scalr.logger.audit.pathUnix socket path or IP/Hostname to fluentd for audit log.String"/path/to/socket.sock", "hostname""localhost"
>= 5.11.7scalr.logger.audit.portPort that fluentd is listening on for the audit log.Integerany TCP/UDP port8888
>= 5.11.7scalr.logger.audit.protoProtocol to use when communicating with fluentd for the audit log.String"http", "tcp" "udp""http"
>= 5.11.7scalr.logger.audit.timeoutThe connection to fluentd will timeout after this time has passed (in seconds) for the audit log.Integer1-9991
>= 5.11.7scalr.logger.audit.tagAll audit logs will be tagged with this string.String
"audit"
>= 5.11.7scalr.logger.api.enabledWhether the API log should be enabled.Booleantrue, falsefalse
>= 5.11.7scalr.logger.api.pathUnix socket path or IP/Hostname to fluentd for API log.String"/path/to/socket.sock", "hostname""localhost"
>= 5.11.7scalr.logger.api.portPort that fluentd is listening on for the API log.Integerany TCP/UDP port8888
>= 5.11.7scalr.logger.api.protoProtocol to use when communicating with fluentd for the API log.String"http", "tcp", "udp""http"
>= 5.11.7scalr.logger.api.timeoutThe connection to fluentd will timeout after this time has passed (in seconds) for the API log.Integer1-9991
>= 5.11.7scalr.logger.api.tagAll API logs will be tagged with this string.String
"api"
>= 5.11.7scalr.logger.user.enabledWhether the user log should be enabled.Booleantrue, falsefalse
>= 5.11.7scalr.logger.user.pathUnix socket path or IP/Hostname to fluentd for user log.String"/path/to/socket.sock", "hostname""localhost"
>= 5.11.7scalr.logger.user.portPort that fluentd is listening on for the user log.Integerany TCP/UDP port8888
>= 5.11.7scalr.logger.user.protoProtocol to use when communicating with fluentd for the user log.String"http", "tcp", "udp""http"
>= 5.11.7scalr.logger.user.timeoutThe connection to fluentd will timeout after this time has passed (in seconds) for the user log.Integer1-9991
>= 5.11.7scalr.logger.user.tagAll user logs will be tagged with this string.String
"user"

DNS

Scalr VersionParameterDescriptionTypeExample value(s)Default value

scalr.dns.global.enabled
Whether Scalr should enable DNS Management.Booleantrue, falsefalse

scalr.dns.global.default_domain_name
The domain name Scalr should use for courtesy domains in DNS Zones.Stringvalid domain name"scalr.ws"

scalr.dns.static.enabled

Whether Scalr should enable static DNS for database servers.

Booleantrue, falsefalse

scalr.dns.static.nameservers
The nameservers Scalr should use for static DNS for database servers.Array["ns1.example-dns.net", "ns2.example-dns.net"][]

scalr.dns.static.domain_name
The domain name Scalr should use for static DNS for database servers.String"example-dns.net"

scalr.dns.mysql.driver

The driver Scalr should use to connect to MySQL for DNS management.

This database should be accessible by your nameserver.

String"mysqli""mysqli"

scalr.dns.mysql.host
The host for the MySQL server Scalr should use for DNS management.String"hostname", "1.2.3.4""127.0.0.1"

scalr.dns.mysql.port
The port for the MySQL server Scalr should use for DNS management.Integervalid TCP port3306

scalr.dns.mysql.name
The name of the MySQL database Scalr should use for DNS management.Stringvalid database name"scalr"

scalr.dns.mysql.user
The username Scalr should use to authenticate to MySQL for DNS management.Stringvalid database username"scalr"

scalr.dns.mysql.pass
The password Scalr should use to authenticate to MySQL for DNS management.String"s3cur3pa55w0rd"

Load Statistics

Scalr VersionParameterDescriptionTypeExample value(s)Default value

>= 4.5
< 5.0

scalr.load_statistics.rrd_dirThe path to the rrdcached database directory.Stringvalid file path"/var/lib/rrdcached/db"

>= 4.5
< 5.0

scalr.load_statistics.img_dirThe path where load statistics graphs should be collected.Stringvalid file path"/var/scalr/graphics"

>= 4.5
< 5.0

scalr.load_statistics.img_url

The URL from which load statistics graphs should be downloaded.Stringvalid file path"/graphics"
>= 5.0scalr.load_statistics.rrd.dirThe path to the rrdcached database directory.Stringvalid file path"/var/lib/rrdcached/db"
>= 5.0scalr.load_statistics.rrd.rrdcached_sock_path The path to the rrdcached daemon socket.Stringvalid file path"{{/var/run/rrdcached.sock}}"
>= 5.0scalr.load_statistics.img.scheme

The protocol users should use to download load statistics graphics.

String"http", "https""http"
>= 5.0scalr.load_statistics.img.hostThe host to use to access the load statistics graphics.String"example.com"
>= 5.0scalr.load_statistics.img.pathThe path where the load statistics graphics are found.Stringvalid URI"/graphics"
>= 5.0scalr.load_statistics.img.dir

The actual directory on the filesystem that corresponds to the scheme://host/path/ location.

Scalr will store statistics image files there so that they can be served by Apache.

Stringvalid file path"/opt/scalr/graphics"
>= 5.0scalr.load_statistics.connections.plotter.scheme

The protocol users should use to access the load statistics server (this one routes the users to the appropriate graphics URL, it doesn't serve them).

If set to https, you must provide a certificate and a private key, see below.

String"http", "https""http"

scalr.load_statistics.connections.plotter.host

In Scalr 4.5 protocol:host the statistics server should be accessed at (and bind to).

In Scalr 5.0, this is only the host.

The statistics plotter is a web service that serves the load graphics, so you should ensure this host is reachable by Scalr users.

String"http://my.scalr.com"

scalr.load_statistics.connections.plotter.port

The port the statistics server should listen on (and be accessed by users).

The statistics server is a web service that serves the load graphics, so you should ensure this port is reachable by Scalr users.

Integerany TCP port8080
>= 5.0scalr.load_statistics.connections.plotter.bind_addressThe address the statistics server should bind to.Stringvalid IP address"0.0.0.0"

scalr.load_statistics.connections.plotter.ssl_certificateThe path to the SSL certificate the statistics server should use.String"/path/to/cert.pem""/etc/ssl/cert.pem"

scalr.load_statistics.connections.plotter.ssl_private_keyThe path to the SSL private key corresponding to the SSL certificate the statistics server should use.String"/path/to/pk.pem""/etc/ssl/pk.pem"

scalr.load_statistics.connections.plotter.metricsThe metrics that should be collected for load statistics.Array["cpu", "la", "mem", "net", "io", "snum"]["cpu", "la", "mem", "net", "io", "snum"]

Uncategorized

Scalr VersionParameterDescriptionTypeExample value(s)

Default value

*scalr.system.instances_connection_timeoutThe duration (in seconds) Scalr should wait before timing out when attempting to establish a connection with Scalarizr on a Scalr host.Integer44
*scalr.system.server_terminate_timeout 

The duration Scalr should wait before terminating a server that was not forcefully terminated.

This should be a relative date format usable for the PHP strtotime function.

String
"+3 minutes"
>= 5.1scalr.system.default_disable_firewall_management

Whether Scalr should, by default, disable the automated management of iptables in Scalarizr.

Users can override this setting in the Farm Designer: Advanced Tab - General.

Booleantrue, falsefalse
>= 5.1
scalr.system.scripting.default_abort_init_on_script_fail

The default for the option to fail Servers when a Blocking BeforeHostUp Script fails.

Users can override this setting in the Farm Designer: Advanced Tab - Orchestration




*
scalr.system.global_variables.format

Formatting for Scalr System Global Variables. This should be a mapping of Scalr System Global Variables names to the format that should be used for them.

The format string should be a printf format string.

Note: System GVs MUST be uppercase.

Mapping
app[:configuration] = { "scalr" => {
  "system" => {
    "global_variables" => {
      "format" => {
        "SCALR_CLOUD_SERVER_ID" => "%.15s",
      }
    }
  }
}}

or

app[:configuration] = {
"scalr" => {
"system" => {
    "global_variables" => {
      "format" => {
        "SCALR_INSTANCE_FARM_INDEX" => "%03d",
        "SCALR_EVENT_INSTANCE_FARM_INDEX" => "%03d"
      }
    }
  }
}}

{}

*scalr.aws.security_group_name

The name Scalr should use for its IP Pool Security Group.

This security group is used to allow access from Scalr to the instances it manages.

THIS IS USED FOR ALL CLOUDS, NOT ONLY FOR AWS.

String
"scalr.ip-pool"
*scalr.aws.ip_pool

The IPs that Scalr should whitelist as part of its IP Pool Security Group.

See: scalr.aws.security_group_name.

THIS IS USED FOR ALL CLOUDS, NOT ONLY FOR AWS.

Array
[]
*scalr.aws.plugins.enabled

The list of AWS Scalr plugins that should be enabled.

The only supported plugin as of Scalr 4.5 is statistics.

THIS IS USED FOR ALL CLOUDS, NOT ONLY FOR AWS.

Array
[]
*scalr.aws.plugins.statistics.storage_max_size

The maximum storage size (in bytes) that should be allocated for statistics collected by the AWS statistics plugin.

THIS IS USED FOR ALL CLOUDS, NOT ONLY FOR AWS.

Integer
268435456
*scalr.openstack.user_data_method

The method Scalr should use to communicate user data (including Scalarizr connection details) to OpenStack instances.

String"meta-data" = Use Metadata API
"personality = Server Personalities
"both" = Use both
 
"both"
>=6.0.1scalr.openstack.use_config_driveEnable or Disable Config Drive for OpenstackBooleantrue, falsetrue
*
scalr.connections.mysql.driver

The driver Scalr should use to connect to MySQL.

This driver should be compatible for use in a data source name for ADOdb.

String
"mysqli"
*
scalr.connections.mysql.host
The host for the MySQL server Scalr should use.String
"127.0.0.1"
*
scalr.connections.mysql.port
The port for the MySQL server Scalr should use.Integerany TCP port

3306

*
scalr.connections.mysql.name
The name of the MySQL database Scalr should use.String
"scalr"
*
scalr.connections.mysql.user

The username Scalr should use to authenticate to MySQL.

String
"scalr"
*
scalr.connections.mysql.pass
The password Scalr should use to authenticate to MySQL.String"s3cur3pa55w0rd"
*scalr.email.addressThe Email Address Scalr should use for outbound email notifications.String"email@example.com"
*scalr.email.nameThe From Name Scalr should use for outbound email notifications.String"My Name"
*scalr.email.delimiter

The line delimiter Scalr should use for outound email notifications.

Use crlf for Windows-style line-endings, and lf for UNIX-style line-endings.

String
"crlf"
*scalr.endpoint.scheme

The protocol the Scalarizr agent should use to connect to the Scalr host.

Use http for the HTTP Protocol, and https for the HTTPS protocol.

String
"http"
*scalr.endpoint.host

The host the Scalarizr agent should connect to to reach the Scalr host. This should be the IP or hostname for the Scalr host.

Ensure this host is accessible by Scalarizr-managed hosts. Failing to do will result in a non-functional Scalr installation.

String
"my.scalr.com"
>=7.6.0scalr.gce.instance_usernameOptionally configure a custom username for GCE instancesString'cloud-user'"scalr'
*scalr.instances_connection_policy

The IP that Scalr should use when connecting to the Scalarizr agent on managed instances.

String"public" = Use public IP
"local" = Use private IP
"auto" = Use public IP with fallback to private IP 
"auto"
>= 5.1

scalr.<cloud>.instances_connection_policy

View valid values for <cloud> in: API Constants.

Controls the instances connection policy on a per-cloud basis.


*scalr.script.timeout.syncThe default timeout (in seconds) Scalr should use for blocking scripts.Integer
180
*scalr.script.timeout.asyncThe default timeout (in seconds) Scalr should use for non-blocking scripts.Integer
1200
>= 5.0scalr.ui.server_display_convention

The Server identifier Scalr should use in the UI (e.g. in the Script Execute Menu).

String"auto" = Use external IP, fallback to internal IP
"hostname" = Use hostname
"public" = Use external IP
"private" = Use internal IP 
"auto"
>=5.11.12scalr.ui.login_warning
Warning text to be displayed to users on the login page.  Formatted with HTML tags.String"You are accessing a secure system.  <p>Unauthorized use may result in disciplinary action.</p> By using this information system, you understand and consent to the following: <ul><li>You have no expectation of privacy on this system. </li> <li>At any time we may monitor data transiting or stored on this system.</li></ul>
*scalr.ui.support_urlThe URL the support button should link to in Scalr.String
"https://groups.google.com/d/forum/scalr-discuss"
*scalr.ui.wiki_urlThe URL the documentation button should link to in Scalr.String
"http://wiki.scalr.com"
*scalr.ui.recaptcha.public_keyThe public key Scalr should use for reCAPTCHA login bruteforce protection.String

*scalr.ui.recaptcha.private_key
The private key Scalr should use for reCAPTCHA login bruteforce protection.String

*scalr.ui.mindterm_enabledWhether server login through MindTerm should be enabled.Booleantrue, falsetrue
>= 5.0scalr.scalarizr_update.mode

The update mode for Scalairzr.

client uses update.scalr.net for Scalarizr to discover new updates.

solo uses a Scalr cronjob to notify Scalarizr of new updates.

Choices
"solo"
>= 5.0scalr.scalarizr_update.default_repo

The default repository to use for Scalarizr. Repositories must be defined as sub-keys of the key scalr.scalarizr_update.repos.

The default repository must exist in the repos list.

String

>=6.1.2 , Agent >= 4.9.4scalr.scalarizr_update.ssl_verify_peerThe default setting for ssl_verify_peerBooleantrue, falsetrue
>= 5.0scalr.scalarizr_update.repos.[repo_name].deb_repo_urlThe URL for this repository's Debian Scalarizr packages.String

>= 5.0scalr.scalarizr_update.repos.[repo_name].rpm_repo_urlThe URL for this repository's RPM Scalarizr packages.String

>= 5.0scalr.scalarizr_update.repos.[repo_name].win_repo_urlThe URL for this repository's Windows Scalarizr packages.String

>= 5.11.4scalr.security.user.session.timeoutScalr UI will be locked if a user has been inactive for the defined period of time.String
"+30 minutes"
>= 5.11.4scalr.security.user.session.lifetimeSession will expire after this time, regardless of activity.String
"+8 hours"
>= 5.11.4scalr.security.user.session.cookie_lifetimeIf user chooses to "remember me" upon login, the session cookie will be kept this long.String
"+30 days"
>= 5.10.17scalr.security.user.suspension.inactivity_daysSuspend user accounts that have not been used for this number of days. (0=disable)Integer
0
>= 5.10.17scalr.security.user.suspension.failed_login_attemptsUser account will be suspended after this number of failed login attempts. (0=disable)Integer
10
>= 5.11.12scalr.%PLATFORM%.action_on_missing_serverDefines what action should be taken if the cloud API reports a server missing compared to what's in the Scalr Database. Substitute %PLATFORM% with one of the following values: [hpcloud, mirantis, azure, ec2, openstack, cloudstack, idcf, gce, ocs, rackspacenguk, rackspacengus, cisco]String"terminate" = Terminate instance
"flag" = Mark as missing
"ignore" = Ignore
"terminate"
>= 7.3.0scalr.%PLATFORM%.action_on_failed_serverDefines what action should be taken if the cloud API reports a server as failed compared to what's in the Scalr Database. Substitute %PLATFORM% with one of the following values: [hpcloud, mirantis, azure, ec2, openstack, cloudstack, idcf, gce, ocs, rackspacenguk, rackspacengus, cisco]String

"terminate" = Terminate instance

"alert" = Same as Ignore, but will later support additional alerts in the UI

"ignore" = Ignore

"terminate"

scalr.system.api.enabledDefines if the APIv2 should be enabled or not.Booleantrue, falsetrue

>=7.2.0

scalr.system.api.oauth.enabled
Set to true to enable oauth.Booleantrue, false
>=6.1.2scalr.system.api.disable_v1Set to true to disable APIv1Booleantrue, falsefalse
>= 5.11.13scalr.system.api.allowed_originsDefines which domain(s) to allow in the Access-Control-Allow-Origin header. This header is not sent by default.Array or String["domain1.com", "domain2.com"] or "*"

disabled


scalr.allowed_cloudsList of Cloud Platforms that are available in this Scalr installation.Array["hpcloud", "mirantis", "azure", "ec2", "openstack", "cloudstack", "idcf", "gce", "ocs", "rackspacenguk", "rackspacengus", "cisco"]["hpcloud", "mirantis", "azure", "ec2", "openstack", "cloudstack", "idcf", "gce", "ocs", "rackspacenguk", "rackspacengus", "cisco"]
>=7.5.3
scalr.license_manager.use_proxy
Sets the License manager to use proxyBooleantrue, falsefalse
>=7.6.X
scalr.license_manager.ssl_verify
Sets the License manager to verify sslBooleantrue, falsetrue



  • No labels