chore(vmagent): allow setting container network mode

This commit is contained in:
transcaffeine 2024-10-11 21:03:59 +02:00
parent ad0a234d35
commit fe29c97c53
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
3 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
--- ---
vmagent_config_global_scrape_interval: "30s" vmagent_config_global_scrape_interval: "30s"
vmagent_config_global_scrape_timeout: "10s" vmagent_config_global_scrape_timeout: "10s"
vmagent_config_global_external_labels: [] vmagent_config_global_external_labels: {}
vmagent_config_scrape_configs: [] vmagent_config_scrape_configs: []
vmagent_config: ~ vmagent_config: ~

View File

@ -29,6 +29,7 @@ vmagent_container_command: >-2
-{{ flag }} -{{ flag }}
{% endfor -%} {% endfor -%}
vmagent_container_networks: ~ vmagent_container_networks: ~
vmagent_container_network_mode: ~
vmagent_container_etc_hosts: ~ vmagent_container_etc_hosts: ~
vmagent_container_dns_servers: ~ vmagent_container_dns_servers: ~
vmagent_container_restart_policy: >-2 vmagent_container_restart_policy: >-2

View File

@ -23,5 +23,6 @@
networks: "{{ vmagent_container_networks | default(omit, true) }}" networks: "{{ vmagent_container_networks | default(omit, true) }}"
etc_hosts: "{{ vmagent_container_etc_hosts | default(omit, true) }}" etc_hosts: "{{ vmagent_container_etc_hosts | default(omit, true) }}"
dns_servers: "{{ vmagent_container_dns_servers | default(omit, true) }}" dns_servers: "{{ vmagent_container_dns_servers | default(omit, true) }}"
network_mode: "{{ vmagent_container_network_mode | default(omit, true) }}"
restart_policy: "{{ vmagent_container_restart_policy | default(omit, true) }}" restart_policy: "{{ vmagent_container_restart_policy | default(omit, true) }}"
state: "{{ vmagent_container_state }}" state: "{{ vmagent_container_state }}"