how to create a juju-unit for ansible?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I need to build a juju unit for ansible alone. I can't find ansible charm in charm store. What would be the better approach?










share|improve this question





















  • The following page has a nice example on how to create a juju charm using the ansible layer.
    – user3499430
    Apr 10 at 11:16














up vote
1
down vote

favorite












I need to build a juju unit for ansible alone. I can't find ansible charm in charm store. What would be the better approach?










share|improve this question





















  • The following page has a nice example on how to create a juju charm using the ansible layer.
    – user3499430
    Apr 10 at 11:16












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I need to build a juju unit for ansible alone. I can't find ansible charm in charm store. What would be the better approach?










share|improve this question













I need to build a juju unit for ansible alone. I can't find ansible charm in charm store. What would be the better approach?







juju






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 3 at 12:23









Achyuth Kumar Karanam

83




83











  • The following page has a nice example on how to create a juju charm using the ansible layer.
    – user3499430
    Apr 10 at 11:16
















  • The following page has a nice example on how to create a juju charm using the ansible layer.
    – user3499430
    Apr 10 at 11:16















The following page has a nice example on how to create a juju charm using the ansible layer.
– user3499430
Apr 10 at 11:16




The following page has a nice example on how to create a juju charm using the ansible layer.
– user3499430
Apr 10 at 11:16










1 Answer
1






active

oldest

votes

















up vote
1
down vote













There already exists an Ansible layer. If you start creating your charm (Info found here) you can add this layer to you layer.yaml file. Here is an example of how your layer.yaml would look like:



includes: ['layer:basic', 'layer:ansible-base']
repo: git@github.com:sebastienpattyn93/ansible-charm.git


This will make sure that your charm will install Ansible. If you want your charm to things on top of ansible make sure to use the flag @when('ansible.available')



The github page of the ansible-base shows more information on how to use ansible playbooks with this charm.






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021596%2fhow-to-create-a-juju-unit-for-ansible%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    There already exists an Ansible layer. If you start creating your charm (Info found here) you can add this layer to you layer.yaml file. Here is an example of how your layer.yaml would look like:



    includes: ['layer:basic', 'layer:ansible-base']
    repo: git@github.com:sebastienpattyn93/ansible-charm.git


    This will make sure that your charm will install Ansible. If you want your charm to things on top of ansible make sure to use the flag @when('ansible.available')



    The github page of the ansible-base shows more information on how to use ansible playbooks with this charm.






    share|improve this answer


























      up vote
      1
      down vote













      There already exists an Ansible layer. If you start creating your charm (Info found here) you can add this layer to you layer.yaml file. Here is an example of how your layer.yaml would look like:



      includes: ['layer:basic', 'layer:ansible-base']
      repo: git@github.com:sebastienpattyn93/ansible-charm.git


      This will make sure that your charm will install Ansible. If you want your charm to things on top of ansible make sure to use the flag @when('ansible.available')



      The github page of the ansible-base shows more information on how to use ansible playbooks with this charm.






      share|improve this answer
























        up vote
        1
        down vote










        up vote
        1
        down vote









        There already exists an Ansible layer. If you start creating your charm (Info found here) you can add this layer to you layer.yaml file. Here is an example of how your layer.yaml would look like:



        includes: ['layer:basic', 'layer:ansible-base']
        repo: git@github.com:sebastienpattyn93/ansible-charm.git


        This will make sure that your charm will install Ansible. If you want your charm to things on top of ansible make sure to use the flag @when('ansible.available')



        The github page of the ansible-base shows more information on how to use ansible playbooks with this charm.






        share|improve this answer














        There already exists an Ansible layer. If you start creating your charm (Info found here) you can add this layer to you layer.yaml file. Here is an example of how your layer.yaml would look like:



        includes: ['layer:basic', 'layer:ansible-base']
        repo: git@github.com:sebastienpattyn93/ansible-charm.git


        This will make sure that your charm will install Ansible. If you want your charm to things on top of ansible make sure to use the flag @when('ansible.available')



        The github page of the ansible-base shows more information on how to use ansible playbooks with this charm.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 7 at 13:13

























        answered Apr 4 at 8:31









        SebastienPattyn

        5681319




        5681319



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021596%2fhow-to-create-a-juju-unit-for-ansible%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Trouble downloading packages list due to a “Hash sum mismatch” error

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Cutting all the characters after the last /