Browse Source

Merge 22339cb4c1 into e95dca049c

pull/203/merge
pavel-z1 2 years ago
parent
commit
09e0f97727
No account linked to committer's email address
3 changed files with 37 additions and 1 deletions
  1. +27
    -0
      README.rst
  2. +3
    -0
      linux/network/interface.sls
  3. +7
    -1
      linux/storage/mount.sls

+ 27
- 0
README.rst View File

address: ${_param:tenant_address} address: ${_param:tenant_address}
netmask: ${_param:tenant_network_netmask} netmask: ${_param:tenant_network_netmask}


**Linux Network Interface configuration**

Configuration of network interface eth0 on RedHad.
Parameter ipv6addrs used to bind ipv6 aliases to the network interface.

.. code-block:: yaml

linux:
network:
...
interface:
eth0:
enabled: true
type: eth
address: 192.168.0.1
netmask: 255.255.255.0
gateway: 192.168.0.154
name_servers:
- 192.168.0.10
- 192.168.0.11
ipv6_address: fd8f:a45a:2ed2:d37c::7
ipv6_netmask: 64
ipv6_gateway: fd8f:a45a:2ed2:d37c::1
ipv6addrs:
- fd8f:a45a:2ed2:d37c:ffff:fffe/128
- fd8f:a45a:2ed2:d37c:ffff:ffff/128

**DPDK OVS bridge for VXLAN** **DPDK OVS bridge for VXLAN**


If VXLAN is used as tenant segmentation, IP address must If VXLAN is used as tenant segmentation, IP address must

+ 3
- 0
linux/network/interface.sls View File

- slaves: {{ interface.slaves }} - slaves: {{ interface.slaves }}
- mode: {{ interface.mode }} - mode: {{ interface.mode }}
{%- endif %} {%- endif %}
{%- if interface.ipv6addrs is defined %}
- ipv6addrs: {{ interface.ipv6addrs }}
{%- endif %}




{%- if salt['grains.get']('saltversion') < '2017.7' %} {%- if salt['grains.get']('saltversion') < '2017.7' %}

+ 7
- 1
linux/storage/mount.sls View File



{%- if not mount.file_system in ['nfs', 'nfs4', 'cifs', 'tmpfs'] %} {%- if not mount.file_system in ['nfs', 'nfs4', 'cifs', 'tmpfs'] %}


{%- if mount.make_fs is defined and mount.make_fs %}
mkfs_{{ mount.device}}: mkfs_{{ mount.device}}:
cmd.run: cmd.run:
- name: "mkfs.{{ mount.file_system }} -L {{ name }} {{ mount.device }}" - name: "mkfs.{{ mount.file_system }} -L {{ name }} {{ mount.device }}"
{%- if mount.file_system == 'xfs' %} {%- if mount.file_system == 'xfs' %}
- require: - require:
- pkg: xfs_packages_{{ mount.device }} - pkg: xfs_packages_{{ mount.device }}
{%- endif %}
{%- endif %}


{%- if mount.file_system == 'xfs' %}
xfs_packages_{{ mount.device }}: xfs_packages_{{ mount.device }}:
pkg.installed: pkg.installed:
- name: xfsprogs - name: xfsprogs
{%- endif %}
{% endif %}


{%- endif %} {%- endif %}


- fstype: {{ mount.file_system }} - fstype: {{ mount.file_system }}
- mkmnt: True - mkmnt: True
- opts: {{ mount.get('opts', 'defaults,noatime') }} - opts: {{ mount.get('opts', 'defaults,noatime') }}
- mount: {{ mount.get('mount', 'True') }}
- persist: {{ mount.get('save_to_fstab', 'False') }}
{%- if mount.file_system == 'xfs' %} {%- if mount.file_system == 'xfs' %}
- require: - require:
- pkg: xfs_packages_{{ mount.device }} - pkg: xfs_packages_{{ mount.device }}

Loading…
Cancel
Save