Chef is a configuration management tool for dealing with machine setup on physical servers, virtual machines and in the cloud. Chef Infra is a powerful automation platform that transforms infrastructure into code. Whether you’re operating in the cloud, on-premises, or in a hybrid environment, Chef Infra automates how infrastructure is configured, deployed, and managed across your network, no matter its size. The knife-oci plugin allows users to interact with Oracle Cloud Infrastructure through Chef Knife.

  • After the verify your account, you have to login now.

  • Now, create one organization. An organization is the top-level entity for role-based access control in the Chef server.

  • Provide the Full name  and short name, then click on Create Organization.

  • Download the Chef Repo by clicking on Download Starter Kit in your Chef workstation.

  • In Chef Workstation host, unzip the chef repo.
  • Now install to ChefDK. The ChefDK contains all the tools you need to develop and test your infrastructure
  • Install Knife plugin to use with OCI.

 

Following are the knife-oci plugin commands available.

  1. knife oci ad list
  2. knife oci compartment list
  3. knife oci image list
  4. knife oci server create
  5. knife oci server delete
  6. knife oci server list
  7. knife oci server show
  8. knife oci shape list
  9. knife oci subnet list
  10. knife oci vcn list
  • Collect your OCI account details for connection and save it into file.
  1.  User OCID
  2.  API KEY in PEM format
  3.  Fingerprint
  4.  Tenancy OCID
  5.  Region
  6.  Compartment OCID (Optional)
  • Configure knife-oci plugin configuration file (kinfe.rb).
  • Now test the OCI connection with Knife command to verify it.

In the next post, we can provision and manage resources from Chef Knife Plugin in OCI.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.