Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Global Policies


Hostname source policy


Short description
Restricts server hostname source to either Template or Webhook
Typescalr.server.hostname.source
Mandatory conditionsNone
Optional conditionsCloud, Location, OS Type


This policy enforces a source for the computation of the Servers hostnames. This policy is commonly used in conjunction with a Hostname Format policy or a Hostname Webhook endpoint policy.

...

Info
titleAffects the Network Tab of the Farm Designer
If you activate this policy, the Server Hostname Source will no longer be customizable in the Network Tab.


Example:



Hostname

...

template policy



Short description
Sets a naming convention for hostnames
Typescalr.server.hostname_format.template
Mandatory conditionsNone
Optional conditionsCloud, Location, OS Type


You can have Scalr enforce a custom Hostname Format Template for your Servers. Enter the Hostname Format Template here, and Scalr will use it to generate the hostname for your Servers (Instances).

...

Info
titleAffects the Advanced Tab of the Farm Designer
If you activate this policy, the Server Hostname Format Template will no longer be customizable in Advanced Tab - General.

...

Warning
Note that Windows requires a reboot to change the hostname of a Server. If you're enabling a Server Hostname policy, you might also want to use Global Orchestration to reboot instances upon the HostUp Event.  For AWS, make sure that you don't have "Set Computer Name" enabled in Ec2Config settings as this may prevent the correct hostname from being set.View Initializing State for important caveats related to rebooting, and Advanced Tab - Scripting for alternate solutions.

Example:

Image RemovedImage Added


Hostname Webhook endpoint policy


Short descriptionSets a specific Webhook endpoint for hostname generation on all instances
Typescalr.server.hostname.webhook_endpoint
Mandatory conditionsNone
Optional conditionsCloud, Location, OS Type



You can have Scalr enforce a given Webhook endpoint to retrieve the hostname of your Servers from. Select an endpoint from the list of configured endpoints, and Scalr will use it to generate the hostname for your Servers (Instances)
.
 

...

Hostname validation pattern policy

Short descriptionSets a hostname validation pattern
Typescalr.server.hostname.validation_pattern
Mandatory conditionsNone
Optional conditionsCloud, Location, OS Type


This policy creates a validation pattern for hostnames. If the hostname generated for a Server does not match the validation pattern, Scalr will abort the provisioning of the Server.

...

Start by selecting a Chef Server in the conditions section. The environments of this Chef server will appear below in the Allowed Chef Environments section. Select the environments you want to allow by ticking the checkbox next to them.


Example:

Ansible Tower Groups policy

 

Short descriptionAdd hosts to the selected Ansible Tower Groups
Typeansibletower.groups
Mandatory conditionsAnsible Tower Server, Inventory
Optional conditionsGroups


Start by selecting the appropriate Ansible Tower Server and Inventory in the Conditions section. The available Ansible Tower Groups will appear below in the Ansible Tower Groups section. Select the Groups you want hosts to join by choosing them from the Group pick list.  Optionally allow users to specify their own additional groups by ticking the checkbox if desired.

Example:

Image Added

Ansible Tower Inventories policy

 

Short descriptionRestricts Ansible Tower Inventories that can be used
Typeansibletower.inventories
Mandatory conditionsAnsible Tower Server, Allowed Inventories
Optional conditionsN/A


Start by selecting the appropriate Ansible Tower Server in the Conditions section. The available Ansible Tower Inventories will appear below in the Allowed Ansible Tower Inventories section. Select the inventories you want to allow by ticking the checkbox next to them.

Example:

Image Added

Ansible Tower Servers policy

 

Short descriptionRestricts Ansible Tower Servers that can be used
Typeansibletower.servers
Mandatory conditionsAnsible Tower Server
Optional conditionsCloud, Location


Start by selecting optional scoping conditions in the Conditions section. The available Ansible Tower servers will appear below in the Allowed Ansible Tower Servers section. Select the servers you want to allow by ticking the checkbox next to them.

Example:

Image Added