SaltStack Network

Yaml code posted by SaltyAnon
created at 30 Nov 19:21

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
### This pillar file contains networking information such as
### nameserver hostnames, deployment server ips, hosts file entries and anything network related
# stored under the networking pillar

{#- Jinja variables #}
{#- Please adjust the following variables as needed #}

  {#- Set hostname variable as minion-id to be used at a later time #}
  {%- set hostname = grains['id'] %}

  {#- Virtualnetwork ip space. This should be the Virtual network that the VM is part of #}
  {%- set virt_network = '192.168.122.1/24' %}

  {#- Deployment/Master server IP #}
  {%- set deployment_ip = '192.168.122.247' %}

networking:
  # Define current Minion's Hostname
  hostname: {{ hostname }}

  # Virtual network subnet
  # For more information refer to server documentation in the wiki
  virt-network: {{ virt_network }}

  # Define deployment server IP
  # Using Jinja format here to include the value later in this file
  deployment-ip: {{ deployment_ip }}

  # Current node's Fully Qualified Domain Name (Should be the same as it's id)
  {% set node_fdqn = salt['grains.get']('fdqn', '') %}

  # Current node's hostname
  {% set node_host = salt['grains.get']('host', '') %}

1.18 KB in 4 ms with coderay