diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fa1d8e9a17bbce6cff565ba8114ee25b7e32b843..0e3cb6143a6bc1a946174b17f618a802616cdfa5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,9 @@ Kubespray uses `yamllint` and `ansible-lint`. To run them locally use `yamllint #### Molecule -[molecule](https://github.com/ansible-community/molecule) is designed to help the development and testing of Ansible roles. In Kubespray you can run it all for all roles with `./tests/scripts/molecule_run.sh` or for a specific role (that you are working with) with `cd roles/my-role && molecule test` +[molecule](https://github.com/ansible-community/molecule) is designed to help the development and testing of Ansible roles. In Kubespray you can run it all for all roles with `./tests/scripts/molecule_run.sh` or for a specific role (that you are working with) with `molecule test` from the role directory (`cd roles/my-role`). + +When developing or debugging a role it can be useful to run `molecule create` and `molecule converge` separately. Then you can use `molecule login` to SSH into the test environment. #### Vagrant diff --git a/roles/container-engine/cri-o/molecule/default/molecule.yml b/roles/container-engine/cri-o/molecule/default/molecule.yml index c4a1af9c8dc86c7588293f3c5652bff3125757a7..06517b625165247081acf34ca48f39a050c5bebb 100644 --- a/roles/container-engine/cri-o/molecule/default/molecule.yml +++ b/roles/container-engine/cri-o/molecule/default/molecule.yml @@ -8,31 +8,25 @@ lint: options: config-file: ../../../.yamllint platforms: - - name: kubespray-crio-ubuntu + - name: ubuntu1804 box: generic/ubuntu1804 cpus: 2 memory: 1024 groups: - kube-master - - name: kubespray-crio-centos7 + - name: centos7 box: centos/7 cpus: 2 memory: 1024 groups: - kube-master - - name: kubespray-crio-centos8 + - name: centos8 box: centos/8 cpus: 2 memory: 1024 groups: - kube-master - - name: kubespray-crio-debian - box: generic/debian10 - cpus: 2 - memory: 1024 - groups: - - kube-master - - name: kubespray-crio-fedora + - name: fedora box: fedora/31-cloud-base cpus: 2 memory: 1024 diff --git a/roles/container-engine/cri-o/vars/ubuntu.yml b/roles/container-engine/cri-o/vars/ubuntu.yml index ee162aed49bbd84db7f4ca49619648c622b95c19..213ce5a49a6404a34304013bd6ab021808887b30 100644 --- a/roles/container-engine/cri-o/vars/ubuntu.yml +++ b/roles/container-engine/cri-o/vars/ubuntu.yml @@ -3,4 +3,4 @@ crio_packages: - "cri-o-{{ crio_version }}" -crio_runc_path: /usr/lib/cri-o-runc/sbin/runc +crio_runc_path: /usr/sbin/runc