Skip to content

bilalasd/Ford-Chef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ford-Chef

This project contains two files that are being used: do_tasks.rb and tasks.csv

do_tasks.rb

This file is the recipe that executes the tasks described in tasks.csv. In most cases this file won't need editing.

tasks.csv

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

Notes

  1. Only one ADD_ONEVIEW_CLIENT can be used
  2. DATA for ADD_SERVER_PROFILE_FROM_TEMPLATE must be a string with quotation marks.

How to use the recipe

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'

Test Environment

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages