Git Product home page Git Product logo

aws-tf-ansible-example's Introduction

Virtual Machine Examples

These blueprints demonstrate various methods for creating a virtual machine in different clouds.

For example, you may use the Cloudify node type for an AWS Instance in the aws.yaml or use a Cloud Formation template in aws-cloudformation.yaml.

Requirements

If you have already ensured these requirements are met, skip to installation steps.

  • You will need a Cloudify Manager v5.0.5 or higher. See install Cloudify Manager.

  • You must install the following plugins on your Cloudify Manager, however you may skip the Cloud plugin if the Cloud is not relevant to you.

    • cloudify-aws-plugin, version 2.3.0 or higher, see releases.
    • cloudify-azure-plugin, version 2.1.7 or higher, see releases.
    • cloudify-gcp-plugin, version 1.4.4 or higher, see releases.
    • cloudify-openstack-plugin, version 3.2.2 or higher, see releases.
    • cloudify-utilites-plugin, version 1.22.1 or higher, see releases.
    • cloudify-fabric-plugin, version 1.5.3 or higher, see releases.

To learn how to upload plugins, see uploading plugins.

To learn how to create secrets, see creating secrets.

Installation steps

First you will need to make sure that you have the latest getting-started blueprint. These are located at Blueprint Examples Releases. Look for the zip archive with a name similar to getting-started-5.0.5-24.zip. Copy the link URL. You will need it to complete these steps.

There are two methods to install the getting started application:

  1. Install getting started with the CLI.
  2. Install getting started with the UI.

Install Getting Started with the CLI

Upload the blueprint to you Cloudify Manager with the following command:

cfy blueprints upload [BLUEPRINT URL] -b [BLUEPRINT ID]

You can provide any ID you like for the blueprint. You will need it in the following steps.

Create the deployment on your Cloudify Manager with the following command:

cfy deployments create -b [BLUEPRINT ID]

Execute the install workflow on your deployment:

cfy executions start install -d [BLUEPRINT ID]

Appendix

Install Cloudify Manager with Docker

If you have Docker, you can install a Cloudify Manager with the following command:

sudo docker run --name cfy_manager_local -d --restart unless-stopped -v /sys/fs/cgroup:/sys/fs/cgroup:ro --tmpfs /run --tmpfs /run/lock --security-opt seccomp:unconfined --cap-add SYS_ADMIN -p 80:80 -p 8000:8000 cloudifyplatform/community-cloudify-manager-aio

How to upload plugins

There are two methods to upload a plugin on your Cloudify manager:

  1. Uploading plugins with the Cloudify CLI.
  2. Uploading plugins with the Cloudify UI.

Return to requirements.

Uploading plugins with the Cloudify CLI

If you know the path or URL of the Cloudify Plugin Wagon and Plugin YAML, then you may run the following command:

cfy plugins upload [URL OR PATH TO PLUGIN WAGON] -y [URL OR PATH TO PLUGIN YAML]

Uploading plugins with the Cloudify UI

Select System Resources from the menu on the left.

Find the Plugins widget. By default, this is the first widget on the system resources page.

Click on Upload.

Paste the URL of a plugin wagon in the Wagon file field.

Paste the URL of the plugin YAML in the YAML file field.

Click Upload.

How to create secrets

There are two methods to create a secret on your Cloudify manager:

  1. Create secrets with the Cloudify CLI.
  2. Create secrets with the Cloudify UI.

Return to requirements.

Creating secrets with the Cloudify CLI

You can create secrets with the following CLI commands.

If the secret content is a string:

cfy secrets create [SECRET NAME] -s [SECRET CONTENT]

If the secret content is in a file, for example if the secret is a RSA key:

cfy secrets create [SECRET NAME] -f [PATH TO FILE CONTAINING SECRET CONTENT]

Creating secrets with the Cloudify UI

Select System Resources from the menu on the left.

Find the Plugins widget. By default, this is the first widget on the system resources page.

Click on Secrets.

Provide the secret key in the Secret key field.

Provide the secret value in the Secret value field. Alternately, provide a local file path in the Get secret value from file menu.

Click Create.

AWS secrets checklist

If you are an AWS user, you must create the following secrets:

  • aws_access_key_id AWS Access Key, e.g.: cfy secrets create -u aws_access_key_id -s ....................
  • aws_secret_access_key: AWS Secret Access Key, e.g.: cfy secrets create -u aws_secret_access_key -s ....................

If you need help locating your credentials, read about AWS Access Key.

Return to requirements.

Azure secrets checklist

If you are an Azure user, you must create the following secrets:

  • azure_subscription_id: Azure subscription ID: cfy secrets create -u azure_subscription_id -s 00000000-0000-0000-0000-000000000000.
  • azure_tenant_id: Azure subscription ID: cfy secrets create -u azure_tenant_id -s 00000000-0000-0000-0000-000000000000.
  • azure_client_id: Azure subscription ID: cfy secrets create -u azure_client_id -s 00000000-0000-0000-0000-000000000000.
  • azure_client_secret: Azure subscription ID: cfy secrets create -u azure_client_secret -s ............
  • azure_location: Azure subscription ID: cfy secrets create -u azure_location -s westeurope.

If you need help locating your credentials, read about Azure Plugin Configuration:

Return to requirements.

GCP secrets checklist

If you are a GCP user, you must create the following secrets:

  • gcp_credentials: A GCP service account key in JSON format. Hint: Create this secret from a file:
`cfy secrets create gcp_credentials -f ./path/to/JSON key`.

If you need help locating your credentials, read about GCP Plugin Configuration.

Return to requirements.

Openstack secrets checklist

If you are an Openstack user, you must create the following secrets:

  • openstack_auth_url: Openstack Auth URL: cfy secrets create -u openstack_auth_url -s https://my.openstack.com:5000/v3
  • openstack_tenant_name: Openstack Tenant Name: cfy secrets create -u openstack_tenant_name -s tenant
  • openstack_username: Openstack Username: cfy secrets create -u openstack_username -s janedoe
  • openstack_password: Openstack Password: cfy secrets create -u openstack_password -s peacelove
  • openstack_region: Openstack Region Name: cfy secrets create -u openstack_region -s RegionOne
  • openstack_external_network: The ID of the floating IP network that you will use to connect to the internet.
  • base_image_id: The image ID of a Centos 7 that supports Cloud Init.
  • openstack_user_domain_name: OS_USER_DOMAIN_NAME as specified in Openstack RC file, most of the time this value is "default".
  • openstack_project_domain_name: openstack project domain name, most of the time this value is "default".

If you need help locating your credentials, read about Openstack RC File, although sourcing is not enough, these values must be created as secrets:

Return to requirements.

Notes:

  1. Use v3 authentication url.

  2. If v2 authentication url used, remove user_domain_name and project_domain_name from client_config.

aws-tf-ansible-example's People

Contributors

ilanad avatar

Watchers

 avatar

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.