Skip to content

Latest commit

 

History

History
 
 

ansible

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

ansible-microshift

The purpose of this ansible automation is to help gain insight into the footprint and start times of MicroShift. At this stage we are capturing the first start, the second start (with cached images), disk usage data from a number of points in time as well as performance tool data with pbench for each of the two starts.

Prereqs

We are using pbench to capture a wide array of performance tool data. Pbench has Ansible playbooks available in Ansible Galaxy to install the pbench-agent on the MicroShift host.

  • Ansible:

    • On Fedora: dnf install ansible
  • Pbench agent installation role from ansible-galaxy:

    • ansible-galaxy collection install pbench.agent

Note: ensure your ansible galaxy user directory is exported:

export ANSIBLE_ROLES_PATH=$HOME/.ansible/collections/ansible_collections/pbench/agent/roles:$ANSIBLE_ROLES_PATH

Vars

There are a few variables that may need user configuration and they are found in vars/all.yml.

Variable Name Description Default
install_pbench Install pbench performance capture tooling (boolean) false
pbench_record_duration Duration of time for pbench recording (seconds) 360
rhel_username Red Hat subscription account username (string) null
rhel_password Red Hat subscription account password (string) null
rhel_pool_id Red Hat subscription pool id (string) null

Running

To run this playbook:

time ansible-playbook -v -i inventory/inventory setup-node.yml