Ney,

If you want, I am available on IRC to discuss the idea. It's definitely doable, specially with config-get parameters, and it would be great to have it! You can find us on #juju on irc.freenode.net. My nick is `jose` in there.

On 03/01/2016 12:23 PM, Ney Moura wrote:
Hi Samuel!

Well! It's a good idea! But since I'm to new in shell scripting I don't
think I could handle such thing. On the other hand I think I could
create a template charm that, with minimal effort, the community would
be able to use it on another bitnami stacks. Since stack commands should
be the same, I think I'ts possible =)

The only thing the developer has to do is to change the url witch the
run script is downloaded and specify installation parameters, both in
installation hook.


2016-03-01 4:47 GMT-03:00 Samuel Cozannet <samuel.cozan...@canonical.com
<mailto:samuel.cozan...@canonical.com>>:

    Hi Ney,

    I've got myself in the same issue in the past, and found this pretty
    useful: dos2unix. You can apt-get install it, then you get a
    dos2unix and a unix2dos commands.

    If you succeed with the bitnami -> charm, do you think you could
    create a generic bitnami converter? That would be interesting.

    Good charming!
    Best,
    Sam


    --
    Samuel Cozannet
    Cloud, Big Data and IoT Strategy Team
    Business Development - Cloud and ISV Ecosystem
    Changing the Future of Cloud
    Ubuntu <http://ubuntu.com>  / Canonical UK LTD
    <http://canonical.com> / Juju <https://jujucharms.com>
    samuel.cozan...@canonical.com <mailto:samuel.cozan...@canonical.com>
    mob: +33 616 702 389
    skype: samnco<http:///>
    Twitter: @SaMnCo_23
    View Samuel Cozannet's profile on LinkedIn
    <https://es.linkedin.com/in/scozannet>

    On Tue, Mar 1, 2016 at 1:46 AM, Ney Moura <neymou...@gmail.com
    <mailto:neymou...@gmail.com>> wrote:

        I was thinking that i missed some configurations to ran those
        commands properly only.

        Since I use nano, I wasn't able to see those.

        Thanks for the tip about hook environment and the command!

        Mainly for the quick response =D

        2016-02-29 21:31 GMT-03:00 José Antonio Rey <j...@ubuntu.com
        <mailto:j...@ubuntu.com>>:

            Glad that was it! When I opened it on vim, it said [dos] at
            the bottom, and after googling the error I saw what it was.

            About the command, what happens is right. You should not be
            able to execute any of those commands. The commands are only
            executable in a 'hook environment', meaning only hooks will
            be able to run them. If you really want to execute one of
            them, you can use 'juju run --service wordpress-single
            "command goes here"'.

            Why do you want to run that manually? Anything missing?

            --
            José Antonio Rey


            On Mon, Feb 29, 2016, 19:22 Ney Moura <neymou...@gmail.com
            <mailto:neymou...@gmail.com>> wrote:

                Thanks everyone!

                José Antonio, you were right!

                How did you discover that?


                But let me challenge you guys even more!

                I need to install something in the VM before using the
                juju commands, like status-set? I'm asking this because
                I wasn't able to run these commands in there.


                Thanks again!

                2016-02-29 19:15 GMT-03:00 José Antonio Rey
                <j...@ubuntu.com <mailto:j...@ubuntu.com>>:

                    This is because you are using Windows line breaks
                    instead of Linux/Unix line breaks. Try saving your
                    file with Linux/Unix line breaks and give it a go.


                    On 02/29/2016 05:12 PM, David Britton wrote:

                        On Mon, Feb 29, 2016 at 07:02:08PM -0300, Ney
                        Moura wrote:


                            But I keep having erros with the install
                            hook. It says file not found.


                        Maybe I missed it in the tarball -- could you
                        attach a juju debug-log
                        capture while you deploy it?

                        Or, /var/log/all-machines.log from the bootstrap
                        node is the same thing.

                        Thanks!


                    --
                    José Antonio Rey




                --
                *Ney Moura Conceição*




        --
        *Ney Moura Conceição*

        --
        Juju mailing list
        Juju@lists.ubuntu.com <mailto:Juju@lists.ubuntu.com>
        Modify settings or unsubscribe at:
        https://lists.ubuntu.com/mailman/listinfo/juju





--
*Ney Moura Conceição*

--
José Antonio Rey

--
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to