This project contains two files that are being used: do_tasks.rb and tasks.csv
This file is the recipe that executes the tasks described in tasks.csv. In most cases this file won't need editing.
You update this file to tell the do_tasks.rb what to do. Every row in the csv is a task. The first column is the task name and all the other columns are information needed for the task. Table below shows what data to provide for each task. Information in the table below is also available in the tasks_instruction.csv file. tasks.csv file provided is a sample file.
| ADD_ILO_CLIENT | IP | USERNAME | PASSWORD | SSL ENABLED? |
| ADD_ONEVIEW_CLIENT | URL | USERNAME | PASSWORD | SSL ENABLED? |
| ADD_USER | USERNAME | PASSWORD | ||
| DELETE_USER | USERNAME | |||
| ADD_SERVER_PROFILE_FROM_TEMPLATE | PROFILE NAME | DATA (With quotation marks) | TEMPLATE NAME | HARDWARE |
- Only one ADD_ONEVIEW_CLIENT can be used
- DATA for ADD_SERVER_PROFILE_FROM_TEMPLATE must be a string with quotation marks.
This recipe relies on two libraries oneview-chef and ilo-chef. They must be cloned and added as cookbooks to the workstation. After they are added, add the following to metadata.rb file in the cookbook where this recipe resides
depends 'oneview-chef'
depends 'ilo-chef'
This project was tested using one node with chef workstation and chef client installed. The command used to run the recipe was following
chef-client -z -o <cookbook>::do_tasks
Note that that do_tasks above does not have .rb