mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-11-03 12:21:28 +01:00 
			
		
		
		
	Update to 2022-08-08 10:00
This commit is contained in:
		@@ -128,6 +128,19 @@ nomad_base_conf:
 | 
				
			|||||||
    # Name of the authoritative region from which policies will be pulled
 | 
					    # Name of the authoritative region from which policies will be pulled
 | 
				
			||||||
    # authoritative_region: eu
 | 
					    # authoritative_region: eu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Default scheduler config. Only used during cluster bootstrap
 | 
				
			||||||
 | 
					    # If you want to change it after, you have to use the API
 | 
				
			||||||
 | 
					    default_scheduler_config:
 | 
				
			||||||
 | 
					      # can be binpack or spread. SPread makes more sens when running on premise
 | 
				
			||||||
 | 
					      scheduler_algorithm: spread
 | 
				
			||||||
 | 
					      memory_oversubscription_enabled: True
 | 
				
			||||||
 | 
					      preemption_config:
 | 
				
			||||||
 | 
					        batch_scheduler_enabled: True
 | 
				
			||||||
 | 
					        system_scheduler_enabled: True
 | 
				
			||||||
 | 
					        service_scheduler_enabled: True
 | 
				
			||||||
 | 
					        sysbatch_scheduler_enabled: True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # UI related settings
 | 
					  # UI related settings
 | 
				
			||||||
  ui:
 | 
					  ui:
 | 
				
			||||||
    # Default is to enable the UI on server only
 | 
					    # Default is to enable the UI on server only
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -54,6 +54,16 @@ server {
 | 
				
			|||||||
{% if nomad_conf.server.authoritative_region is defined %}
 | 
					{% if nomad_conf.server.authoritative_region is defined %}
 | 
				
			||||||
  authoritative_region = "{{ nomad_conf.server.authoritative_region }}"
 | 
					  authoritative_region = "{{ nomad_conf.server.authoritative_region }}"
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  default_scheduler_config {
 | 
				
			||||||
 | 
					    scheduler_algorithm = "{{ nomad_conf.server.default_scheduler_config.scheduler_algorithm }}"
 | 
				
			||||||
 | 
					    memory_oversubscription_enabled = {{ nomad_conf.server.default_scheduler_config.memory_oversubscription_enabled | ternary('true', 'false') }}
 | 
				
			||||||
 | 
					    preemption_config {
 | 
				
			||||||
 | 
					{% for type in ['batch', 'system', 'sysbatch', 'service'] %}
 | 
				
			||||||
 | 
					      {{ type }}_scheduler_enabled = {{ nomad_conf.server.default_scheduler_config.preemption_config[type ~ '_scheduler_enabled'] | ternary('true', 'false') }}
 | 
				
			||||||
 | 
					{% endfor %}
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% if nomad_conf.client.enabled %}
 | 
					{% if nomad_conf.client.enabled %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user