Weitere ähnliche Inhalte Ähnlich wie Oracle Public Cloud : Provisioning with Chef (20) Mehr von Jean-Philippe PINTE (9) Kürzlich hochgeladen (20) Oracle Public Cloud : Provisioning with Chef1. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
Oracle Confidential – Internal/Restricted/Highly Restricted 1
2. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
1. Chef Workstation Setup and configuration
2. Chef Server Configuration
3. Provision Oracle Public Cloud Instance
Oracle Confidential – Internal/Restricted/Highly Restricted 2
Agenda
3. 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
4. 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
5. 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
6. 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
7. 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
8. 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-oraclecloud
chef gem install knife-
oraclecloud
Oracle Confidential – Internal/Restricted/Highly Restricted 8
knife-oraclecloud
9. 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
10. 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
11. 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
12. 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:UsersJPINTEDocumentsChefKeysoraclecloud.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
13. 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
14. 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
15. 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
16. 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
17. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Backup slides
Oracle Confidential – Internal/Restricted/Highly Restricted 22
Hinweis der Redaktion https://manage.chef.io https://docs.chef.io/install_dk.html
https://learn.chef.io/manage-a-node/rhel/get-set-up/ https://github.com/chef-partners/knife-oraclecloud
If necessary, download and install ruby :
http://rubyinstaller.org/downloads/ knife oraclecloud image list --oraclecloud-api-url https://api-z11.compute.em2.oraclecloud.com --oraclecloud-username cloud.admin --oraclecloud-password AcEntric@8BAbY --oraclecloud-domain gse00000525 knife oraclecloud shape list --oraclecloud-api-url https://api-z11.compute.em2.oraclecloud.com --oraclecloud-username cloud.admin --oraclecloud-password AcEntric@8BAbY --oraclecloud-domain gse00000525
knife oraclecloud server list --oraclecloud-api-url https://api-z11.compute.em2.oraclecloud.com --oraclecloud-username cloud.admin --oraclecloud-password AcEntric@8BAbY --oraclecloud-domain gse00000525
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 AcEntric@8BAbY --oraclecloud-domain gse00000525