mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 08:20:23 +00:00
13 lines
442 B
Plaintext
13 lines
442 B
Plaintext
{% if grains.cloud is defined and grains.cloud == 'gce' -%}
|
|
# On GCE, there is no Salt mine. We run standalone.
|
|
{% else %}
|
|
# Allow everyone to see cached values of who sits at what IP
|
|
{% set networkInterfaceName = "eth0" %}
|
|
{% if grains.networkInterfaceName is defined %}
|
|
{% set networkInterfaceName = grains.networkInterfaceName %}
|
|
{% endif %}
|
|
mine_functions:
|
|
network.ip_addrs: [{{networkInterfaceName}}]
|
|
grains.items: []
|
|
{% endif -%}
|