Oracle Public Cloud : Provisioning with Chef
-
Upload
jean-philippe-pinte -
Category
Internet
-
view
453 -
download
0
Transcript of Oracle Public Cloud : Provisioning with Chef
![Page 1: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/1.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
Oracle Confidential – Internal/Restricted/Highly Restricted 1
![Page 2: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/2.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
1. Chef Workstation Setup and configuration2. Chef Server Configuration3. Provision Oracle Public Cloud Instance
Oracle Confidential – Internal/Restricted/Highly Restricted 2
Agenda
![Page 3: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/3.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• For this demo, we use https://manage.chef.io/login
• Create a new account (or use existing one)
Oracle Confidential – Internal/Restricted/Highly Restricted 3
Chef Server
![Page 4: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/4.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Create a new organization (or join an existing one)
Oracle Confidential – Internal/Restricted/Highly Restricted 4
Chef Server
![Page 5: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/5.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Download the Starter Kit
Oracle Confidential – Internal/Restricted/Highly Restricted 5
Chef Server
![Page 6: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/6.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Download ChefDK from https://docs.chef.io/install_dk.html
• Install ChefDK
• Do the verification$ chef verify
Oracle Confidential – Internal/Restricted/Highly Restricted 6
Install ChefDK
![Page 7: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/7.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Install a demo chef-repo from the chef-starter kit –Unzip chef-starter.zip
Oracle Confidential – Internal/Restricted/Highly Restricted 7
Install a demo chef-repo
![Page 8: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/8.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Follow the steps of the following link:https://github.com/chef-partners/knife-oraclecloud
• Install Knife-oraclecloudchef gem install knife-oraclecloud
Oracle Confidential – Internal/Restricted/Highly Restricted 8
knife-oraclecloud
![Page 9: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/9.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Available commands
knife oraclecloud
Oracle Confidential – Internal/Restricted/Highly Restricted 9
knife-oraclecloud
![Page 10: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/10.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• List of available images
knife oraclecloud image list --oraclecloud-api-url https://api-z11.compute.em2.oraclecloud.com --oraclecloud-username cloud.admin --oraclecloud-password Acstric@8BbY --oraclecloud-domain gse00000525
Oracle Confidential – Internal/Restricted/Highly Restricted 10
knife-oraclecloud
![Page 11: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/11.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Check the public keys available to connect to Oracle Cloud Instances and if needed create a new one.
Oracle Confidential – Internal/Restricted/Highly Restricted 13
OPC SSH Key
![Page 12: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/12.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• knife oraclecloud server create --node-name firstChef --ssh-user opc --sshkeys cloud.admin/myChefKey --identity-file C:\Users\JPINTE\Documents\Chef\Keys\oraclecloud.pem --oraclecloud-api-url https://api-z11.compute.em2.oraclecloud.com --image /oracle/public/OL-6.6-20GB-x11-RD --shape oc3 --hostname firstChef --public-ip pool --oraclecloud-username cloud.admin --oraclecloud-password Acstric@8BbY --oraclecloud-domain gse00000525
Oracle Confidential – Internal/Restricted/Highly Restricted 14
Instance creation
![Page 13: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/13.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• The instance (firstChef) is under creation
Oracle Confidential – Internal/Restricted/Highly Restricted 15
Instance creation
![Page 14: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/14.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• After a while, the instance (fistChef) is created and running !
Oracle Confidential – Internal/Restricted/Highly Restricted 16
Instance creation
![Page 15: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/15.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Check the provisioning status from the Chef workstation
Oracle Confidential – Internal/Restricted/Highly Restricted 19
Instance creation
![Page 16: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/16.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
• Check registered nodes from Chef Server
Oracle Confidential – Internal/Restricted/Highly Restricted 21
Instance creation
![Page 17: Oracle Public Cloud : Provisioning with Chef](https://reader033.fdocuments.in/reader033/viewer/2022052705/589d48191a28abd3338b5a6b/html5/thumbnails/17.jpg)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Backup slides
Oracle Confidential – Internal/Restricted/Highly Restricted 22