Upload
jean-philippe-pinte
View
455
Download
0
Embed Size (px)
Citation preview
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Provisioning with Chef
Oracle Confidential – Internal/Restricted/Highly Restricted 1
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Backup slides
Oracle Confidential – Internal/Restricted/Highly Restricted 22