Giter VIP home page Giter VIP logo

cloudify-hello-world-example's Introduction

Cloudify Hello World Example

Circle CI

This repository contains several Hello World Application Examples.

If you're only now starting to work with Cloudify see our Getting Started Guide.

This document will guide you how to run the examples step by step.

Using the CLI

Prepering the environment

Download the example

curl -L https://github.com/cloudify-cosmo/cloudify-hello-world-example/archive/master.zip -o cloudify-hello-world-example.zip

Extract the example

unzip cloudify-hello-world-example.zip && cd cloudify-hello-world-example-master

Install Cloudify plugins

cfy plugins bundle-upload

Creating secrets

Create secrets according to your IaaS provider.

Replace with actual values, without the <>

For AWS

cfy secrets create aws_access_key_id --secret-string <value>
cfy secrets create aws_secret_access_key --secret-string <value>

For Azure

cfy secrets create subscription_id --secret-string <value>
cfy secrets create tenant_id --secret-string <value>
cfy secrets create client_id --secret-string <value>
cfy secrets create client_secret --secret-string <value>

For GCP

cfy secrets create gcp_client_x509_cert_url --secret-string <value>
cfy secrets create gcp_client_email --secret-string <value>
cfy secrets create gcp_client_id --secret-string <value>
cfy secrets create gcp_project_id --secret-string <value>
cfy secrets create gcp_private_key_id --secret-string <value>
cfy secrets create gcp_private_key --secret-string <value>
cfy secrets create gcp_project_id --secret-string <value>
cfy secrets create gcp_zone --secret-string <value>

For Openstack

cfy secrets create keystone_username --secret-string <value>
cfy secrets create keystone_password --secret-string <value>
cfy secrets create keystone_tenant_name --secret-string <value>
cfy secrets create keystone_url --secret-string <value>

Running the example

For AWS:

cfy install aws.yaml -i aws_region_name=eu-central-1

For Azure:

cfy install azure.yaml -i location=eastus -i agent_password=OpenS3sVm3

For GCP:

cfy install gcp.yaml region=europe-west1

For Openstack:

cfy install openstack.yaml \
    -i region=RegionOne
    -i external_network=external_network \
    -i image=05bb3a46-ca32-4032-bedd-8d7ebd5c8100 \
    -i flavor=4d798e17-3439-42e1-ad22-fb956ec22b54

Another Openstack example:

cfy install openstack.yaml \
     -i region=RegionOne \
     -i external_network_name=GATEWAY_NET \
     -i image=e41430f7-9131-495b-927f-e7dc4b8994c8 \
     -i flavor=2

Using the Web UI

Open the Web UI

  1. Open the browser with the Cloudify Manager's public IP provided during installation
  2. Login with user 'admin', password can be either:
    • Using one of the images (AMI, QCOW, Docker), password is 'admin'
    • Password provided during installation (in config.yaml)
    • Password generated during installation and printed to screen

Install Cloudify plugins

  1. Go to 'Cloudify Catalog' on the left side menu
  2. In the 'Plugins Catalog' widget, select the plugin of the IaaS of your choice and click 'install' button on the right side

Creating secrets

  1. Go to 'System Resources on the left side menu'
  2. Scroll down to the 'Secret Store Management' widget
  3. Create secrets using the 'Create' button and according to your IaaS provider: ('Secret key' according to the list below and 'Secret value' with your specific values)
    • For AWS
      • aws_access_key_id
      • aws_secret_access_key
    • For Azure
      • subscription_id
      • tenant_id
      • client_id
      • client_secret
    • For GCP
      • gcp_client_x509_cert_url
      • gcp_client_email
      • gcp_client_id
      • gcp_project_id
      • gcp_private_key_id
      • gcp_private_key
      • gcp_project_id
      • gcp_zone
    • For Openstack
      • keystone_username
      • keystone_password
      • keystone_tenant_name
      • keystone_url

Running the example

  1. Go to 'Local Blueprints' menu and click 'Upload' button
  2. In the blueprint URL filed put https://github.com/cloudify-cosmo/cloudify-hello-world-example/archive/master.zip
  3. In the blueprint YAML file select one of the following
    • azure.yaml
    • openstack.yaml
    • aws.yaml
    • gcp.yaml
  4. Click 'upload'
  5. In the blueprints table, click the 'cloudify-hello-world-example-master' link
  6. Click 'Create Deployment' button
  7. Type 'cloudify-hello-world-example-master' in the deployment name field
  8. Complete the inputs' values:
    • For AWS
      • aws_region_name, for example 'eu-central-1'
    • For Azure
      • location, for example 'eastus'
      • agent_password, for example 'OpenS3sVm3'
    • For GCP
      • region, for example 'europe-west1'
    • For Openstack
      • region, for example 'RegionOne'
      • external_network, for example 'GATEWAY_NET'
      • image, for example '05bb3a46-ca32-4032-bedd-8d7ebd5c8100'
      • flavor, for example '4d798e17-3439-42e1-ad22-fb956ec22b54'
  9. Click 'Deploy'
  10. Scroll down to the deployments table, click the hanburger menu on the right and select 'Install'

cloudify-hello-world-example's People

Contributors

adigrabow avatar asdfasda avatar chenroth avatar cosmo-admin avatar dankilman avatar dmitryaii avatar dusking avatar earthmant avatar fogelomer avatar gilzellner avatar idanmo avatar idob-cloudify avatar iliapolo avatar jcollado avatar limor-gs avatar mcouthon avatar moshemizrachi avatar nir0s avatar nirbir avatar nirfuchs avatar opencm avatar qooban avatar simon-bar avatar tehasdf avatar tyacbovi avatar yarivgiga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudify-hello-world-example's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.