Bläddra i källkod

Prefer "pkgs" rather than "names" when using pkg.installed

"names" makes a separate call to the package management frontend to
install each package, whereas "pkgs" makes just a single call so that it
improves performance.
tags/2017.4
Bruno Binet 7 år sedan
förälder
incheckning
e3c04fd535
7 ändrade filer med 9 tillägg och 9 borttagningar
  1. +3
    -3
      linux/network/interface.sls
  2. +1
    -1
      linux/storage/lvm.sls
  3. +1
    -1
      linux/storage/multipath.sls
  4. +1
    -1
      linux/system/doc.sls
  5. +1
    -1
      linux/system/kernel.sls
  6. +1
    -1
      linux/system/package.sls
  7. +1
    -1
      linux/system/selinux.sls

+ 3
- 3
linux/network/interface.sls Visa fil

@@ -13,9 +13,9 @@
linux_network_bridge_pkgs:
pkg.installed:
{%- if network.bridge == 'openvswitch' %}
- names: {{ network.ovs_pkgs }}
- pkgs: {{ network.ovs_pkgs }}
{%- else %}
- names: {{ network.bridge_pkgs }}
- pkgs: {{ network.bridge_pkgs }}
{%- endif %}

{%- endif %}
@@ -212,7 +212,7 @@ linux_system_network:

linux_network_packages:
pkg.installed:
- names: {{ network.pkgs }}
- pkgs: {{ network.pkgs }}

/etc/netctl/network_{{ interface.wireless.essid }}:
file.managed:

+ 1
- 1
linux/storage/lvm.sls Visa fil

@@ -4,7 +4,7 @@

linux_lvm_pkgs:
pkg.installed:
- names: {{ storage.lvm_pkgs }}
- pkgs: {{ storage.lvm_pkgs }}

{%- for vgname, vg in storage.lvm.iteritems() %}


+ 1
- 1
linux/storage/multipath.sls Visa fil

@@ -3,7 +3,7 @@

linux_storage_multipath_packages:
pkg.installed:
- names: {{ storage.multipath.pkgs }}
- pkgs: {{ storage.multipath.pkgs }}

linux_storage_multipath_config:
file.managed:

+ 1
- 1
linux/system/doc.sls Visa fil

@@ -19,7 +19,7 @@ linux_system_doc_grain:

linux_system_doc_validity_check:
pkg.installed:
- names: {{ system.doc_validity_pkgs }}
- pkgs: {{ system.doc_validity_pkgs }}
cmd.wait:
- name: python -c "import yaml; stream = file('/etc/salt/grains.d/sphinx', 'r'); yaml.load(stream); stream.close()"
- require:

+ 1
- 1
linux/system/kernel.sls Visa fil

@@ -7,7 +7,7 @@

linux_kernel_package:
pkg.installed:
- names:
- pkgs:
- linux-image-{{ system.kernel.version }}-{{ system.kernel.type|default('generic') }}
{%- if system.kernel.get('headers', False) %}
- linux-headers-{{ system.kernel.version }}-{{ system.kernel.type|default('generic') }}

+ 1
- 1
linux/system/package.sls Visa fil

@@ -3,7 +3,7 @@

linux_packages:
pkg.installed:
- names: {{ system.pkgs }}
- pkgs: {{ system.pkgs }}

{%- for name, package in system.package.iteritems() %}


+ 1
- 1
linux/system/selinux.sls Visa fil

@@ -27,4 +27,4 @@ selinux_config:

{%- endif %}

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

Laddar…
Avbryt
Spara