summaryrefslogtreecommitdiff
path: root/contrib/test/integration/system.yml
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-01 11:24:59 -0400
committerMatthew Heon <matthew.heon@gmail.com>2017-11-01 11:24:59 -0400
commita031b83a09a8628435317a03f199cdc18b78262f (patch)
treebc017a96769ce6de33745b8b0b1304ccf38e9df0 /contrib/test/integration/system.yml
parent2b74391cd5281f6fdf391ff8ad50fd1490f6bf89 (diff)
downloadpodman-a031b83a09a8628435317a03f199cdc18b78262f.tar.gz
podman-a031b83a09a8628435317a03f199cdc18b78262f.tar.bz2
podman-a031b83a09a8628435317a03f199cdc18b78262f.zip
Initial checkin from CRI-O repo
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'contrib/test/integration/system.yml')
-rw-r--r--contrib/test/integration/system.yml117
1 files changed, 117 insertions, 0 deletions
diff --git a/contrib/test/integration/system.yml b/contrib/test/integration/system.yml
new file mode 100644
index 000000000..d07ae0c82
--- /dev/null
+++ b/contrib/test/integration/system.yml
@@ -0,0 +1,117 @@
+---
+
+- name: Make sure we have all required packages
+ package:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - container-selinux
+ - curl
+ - device-mapper-devel
+ - expect
+ - findutils
+ - gcc
+ - git
+ - glib2-devel
+ - glibc-devel
+ - glibc-static
+ - gpgme-devel
+ - hostname
+ - iproute
+ - iptables
+ - krb5-workstation
+ - libassuan-devel
+ - libffi-devel
+ - libgpg-error-devel
+ - libguestfs-tools
+ - libseccomp-devel
+ - libvirt-client
+ - libvirt-python
+ - libxml2-devel
+ - libxslt-devel
+ - make
+ - mlocate
+ - nfs-utils
+ - nmap-ncat
+ - oci-register-machine
+ - oci-systemd-hook
+ - oci-umount
+ - openssl
+ - openssl-devel
+ - ostree-devel
+ - pkgconfig
+ - python
+ - python2-boto
+ - python2-crypto
+ - python-devel
+ - python-virtualenv
+ - PyYAML
+ - redhat-rpm-config
+ - rpcbind
+ - rsync
+ - sed
+ - skopeo-containers
+ - socat
+ - tar
+ - wget
+ async: 600
+ poll: 10
+
+- name: Add Btrfs for Fedora
+ package:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - btrfs-progs-devel
+ when: ansible_distribution in ['Fedora']
+
+- name: Update all packages
+ package:
+ name: '*'
+ state: latest
+ async: 600
+ poll: 10
+
+- name: Setup swap to prevent kernel firing off the OOM killer
+ shell: |
+ truncate -s 8G /root/swap && \
+ export SWAPDEV=$(losetup --show -f /root/swap | head -1) && \
+ mkswap $SWAPDEV && \
+ swapon $SWAPDEV && \
+ swapon --show
+
+- name: ensure directories exist as needed
+ file:
+ path: "{{ item }}"
+ state: directory
+ with_items:
+ - /opt/cni/bin
+ - /etc/cni/net.d
+
+- name: set sysctl vm.overcommit_memory=1 for CentOS
+ sysctl:
+ name: vm.overcommit_memory
+ state: present
+ value: 1
+ when: ansible_distribution == 'CentOS'
+
+- name: inject hostname into /etc/hosts
+ lineinfile:
+ dest: /etc/hosts
+ line: '{{ ansible_default_ipv4.address }} {{ ansible_nodename }}'
+ insertafter: 'EOF'
+ regexp: '{{ ansible_default_ipv4.address }}\s+{{ ansible_nodename }}'
+ state: present
+
+- name: Flush the iptables
+ command: iptables -F
+
+- name: Enable localnet routing
+ command: sysctl -w net.ipv4.conf.all.route_localnet=1
+
+- name: Add masquerade for localhost
+ command: iptables -t nat -I POSTROUTING -s 127.0.0.1 ! -d 127.0.0.1 -j MASQUERADE
+
+- name: Update the kernel cmdline to include quota support
+ command: grubby --update-kernel=ALL --args="rootflags=pquota"
+ when: ansible_distribution in ['RedHat', 'CentOS']