Giter Club home page Giter Club logo

cloudify-fabric-plugin's Introduction

cloudify-fabric-plugin's People

Contributors

0lvin avatar adarshaked avatar ahmadiesa-abu avatar bartoszkosciug avatar chenroth avatar cosmo-admin avatar dankilman avatar earthmant avatar fogelomer avatar glukhman avatar idanmo avatar iliapolo avatar isaac-s avatar kaplanyaniv avatar limor-gs avatar nelynehemia avatar nir0s avatar nirbir avatar opencm avatar tehasdf avatar yarivgiga avatar

Stargazers

 avatar  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

cloudify-fabric-plugin's Issues

Fabric plugin fails to execute the tasks when provided with key

Hi - I am using the following blueprint to bring up nginx server. The public key and private key are proper but fabric plugin doesn't seem to work. Even after providing a key it still says sudo priveleges not present

cloudify_host_cloud_config:
    type: cloudify.nodes.CloudInit.CloudConfig
    properties:
      resource_config:
        users:
        - name: ec2-user
          groups: sudo
          shell: /bin/bash
          sudo: ['ALL=(ALL) NOPASSWD:ALL']
          ssh-authorized-keys:
          - { get_secret: agent_key_public }

 nginx:
  type: cloudify.nodes.WebServer
  interfaces:
    cloudify.interfaces.lifecycle:
      create:
        implementation: fabric.fabric_plugin.tasks.run_commands
        inputs:
          commands:
            - apt-get install -y nginx
            - service nginx start
          fabric_env:
            user: ec2-user
            key: {get_secret : agent_key_private}
      start:
        implementation: fabric.fabric_plugin.tasks.run_task
        inputs:
          tasks_file: tasks/nginx.py
          task_name: start
          fabric_env:
            user: ec2-user
            key: {get_secret : agent_key_private}
  relationships:
     - type: cloudify.relationships.contained_in
       target: nginx_host

 nginx_host:
    type: cloudify.openstack.nodes.Server
    properties:
       openstack_config: *openstack_config
       agent_config:
         install_method: none
       server:
         image: {get_input: image}
         flavor: { get_input: flavor }
         userdata: {get_attribute: [cloudify_host_cloud_config, cloud_config ] }
       management_network_name: { get_secret: private_network_name }
    relationships:
       - type: cloudify.relationships.depends_on
         target: nginx_image
       - type: cloudify.openstack.server_connected_to_port
         target: private_network_port        

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.