[CHAPTER 1 - Quiz 1]
Solutions:
1. a
2. d
3. c
| $ ansible-lint playbooks/setup.yml | |
| WARNING: Couldn't open /home/firemanxbr/GitHub/ari/contra-env-setup/playbooks/roles/os_temps/tasks/roles/prereqs/tasks/install_virtual_reqs.yml - No such file or directory | |
| WARNING: Couldn't open /home/firemanxbr/GitHub/ari/contra-env-setup/playbooks/roles/pipeline/tasks/query_setup_cluster.yml - No such file or directory | |
| [ANSIBLE0012] Commands should not change things if nothing needs doing | |
| /home/firemanxbr/GitHub/ari/contra-env-setup/playbooks/roles/cleanup/tasks/cleanup.yml:5 | |
| Task/Handler: Stop minishift if running | |
| [ANSIBLE0013] Use shell only when shell functionality is required | |
| /home/firemanxbr/GitHub/ari/contra-env-setup/playbooks/roles/cleanup/tasks/cleanup.yml:5 | |
| Task/Handler: Stop minishift if running |
| =================================== | |
| TEST #1 | |
| =================================== | |
| [firemanxbr@firemanxbr contra-env-setup]$ ansible-playbook -vv -i "localhost," playbooks/setup.yml -e remote_user=firemanxbr -e skip_cleanup=false -e setup_pipelines=false -K -k | |
| ansible-playbook 2.4.3.0 | |
| config file = /etc/ansible/ansible.cfg | |
| configured module search path = [u'/home/firemanxbr/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
| ansible python module location = /usr/lib/python2.7/site-packages/ansible | |
| executable location = /usr/bin/ansible-playbook | |
| python version = 2.7.14 (default, Mar 14 2018, 13:36:31) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] |
| from avocado_qemu import QemuTest | |
| from avocado_qemu import GetConsole | |
| from avocado.utils import vmimage | |
| from avocado.utils import git | |
| from avocado.utils import process | |
| from avocado.utils import path as utils_path | |
| class TestMinishift(QemuTest): |
| from avocado_qemu import test | |
| from avocado.utils import vmimage | |
| from avocado.utils import git | |
| from avocado.utils import process | |
| class TestMinishift(test.QemuTest): | |
| """ | |
| :avocado: enable | |
| """ |
| TASK [minishift : Initialization of minishift cluster with profile minishift] ******************************************************************************************************************************************** | |
| task path: /home/firemanxbr/GitHub/contra-env-setup/playbooks/roles/minishift/tasks/init_minishift.yml:10 | |
| Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py | |
| <localhost> ESTABLISH SSH CONNECTION FOR USER: avocado | |
| <localhost> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o Port=12345 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=avocado -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ControlPath=/home/firemanxbr/.ansible/cp/b0d3931675 localhost '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' | |
| <localhost> (0, '/home/avocado\n', '') | |
| <localhost> ESTABLISH SSH CONNECTION FOR USER: avocado | |
| <localhost> SSH: EXEC ssh -C -o |
| $ minishift start --profile minishift --disk-size 40gb --memory 6400mb --iso-url file:////home/firemanxbr/minishift/minishift.iso --show-libmachine-logs -v5 | |
| -- minishift version: v1.14.0+1ec5877 | |
| -- Starting profile 'minishift' | |
| -- Checking if requested OpenShift version 'v3.7.1' is valid ... OK | |
| -- Checking if requested OpenShift version 'v3.7.1' is supported ... OK | |
| -- Checking if requested hypervisor 'kvm' is supported on this platform ... OK | |
| -- Checking if KVM driver is installed ... | |
| Driver is available at /usr/local/bin/docker-machine-driver-kvm ... | |
| Checking driver binary is executable ... OK | |
| -- Checking if Libvirt is installed ... OK |
| **NOTE** I'm using Minishift 13.0.1 | |
| $ cat ~/.bashrc | |
| # .bashrc | |
| # Source global definitions | |
| if [ -f /etc/bashrc ]; then | |
| . /etc/bashrc | |
| fi |
| [firemanxbr@firemanxbr minishift-1.13.1-linux-amd64]$ ./minishift start --profile minishift --disk-size 40gb --memory 6400mb --iso-url file:///home/firemanxbr/minishift/minishift.iso --show-libmachine-logs -v 5 | |
| -- minishift version: v1.13.1+75352e5 | |
| -- Starting profile 'minishift' | |
| -- Checking if requested hypervisor 'kvm' is supported on this platform ... OK | |
| -- Checking if KVM driver is installed ... | |
| Driver is available at /usr/local/bin/docker-machine-driver-kvm ... | |
| Checking driver binary is executable ... OK | |
| -- Checking if Libvirt is installed ... OK | |
| -- Checking if Libvirt default network is present ... OK | |
| -- Checking if Libvirt default network is active ... OK |
| [firemanxbr@firemanxbr minishift-1.13.1-linux-amd64]$ ls | |
| LICENSE minishift README.adoc | |
| [firemanxbr@firemanxbr minishift-1.13.1-linux-amd64]$ ./minishift start --profile minishift --disk-size 40gb --memory 6400mb --iso-url file:///home/firemanxbr/minishift/minishift.iso | |
| -- Starting profile 'minishift' | |
| -- Checking if requested hypervisor 'kvm' is supported on this platform ... OK | |
| -- Checking if KVM driver is installed ... | |
| Driver is available at /usr/local/bin/docker-machine-driver-kvm ... | |
| Checking driver binary is executable ... OK | |
| -- Checking if Libvirt is installed ... OK | |
| -- Checking if Libvirt default network is present ... OK |
[CHAPTER 1 - Quiz 1]
Solutions:
1. a
2. d
3. c