- Disable sudo for kitchen tests - No update grub on docker/lxc - Avoid changing hostname in docker based tests Change-Id: Ic93ecc4680fb9a44388f494259de28ea9e8a0fc0pull/108/head
@@ -2,7 +2,7 @@ | |||
driver: | |||
name: docker | |||
hostname: linux.ci.local | |||
use_sudo: sudo | |||
use_sudo: false | |||
provisioner: | |||
name: salt_solo |
@@ -6,6 +6,8 @@ grub_d_directory: | |||
- mode: 755 | |||
- makedirs: True | |||
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %} | |||
grub_update: | |||
cmd.wait: | |||
- name: update-grub | |||
{%- endif %} |
@@ -11,9 +11,12 @@ include: | |||
- template: jinja | |||
- require: | |||
- file: grub_d_directory | |||
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %} | |||
- watch_in: | |||
- cmd: grub_update | |||
{%- endif %} | |||
{%- for hugepages_type, hugepages in system.kernel.hugepages.iteritems() %} | |||
{%- if hugepages.get('mount', False) or hugepages.get('default', False) %} |
@@ -13,10 +13,12 @@ include: | |||
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT isolcpus={{ system.kernel.isolcpu }}"' | |||
- require: | |||
- file: grub_d_directory | |||
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %} | |||
- watch_in: | |||
- cmd: grub_update | |||
{%- endif %} | |||
{%- endif %} | |||
{%- if system.kernel.version is defined %} | |||
@@ -8,8 +8,10 @@ include: | |||
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT intel_iommu=on iommu=pt"' | |||
- require: | |||
- file: grub_d_directory | |||
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %} | |||
- watch_in: | |||
- cmd: grub_update | |||
{%- endif %} | |||
/etc/modprobe.d/sriov.conf: | |||
file.managed: |
@@ -2,7 +2,7 @@ linux: | |||
system: | |||
enabled: true | |||
domain: ci.local | |||
name: linux | |||
name: linux.ci.local | |||
network: | |||
enabled: true | |||
hostname: linux |