I think what you'd actually want to do is a layer for that. If you create
configuration in the charm, then you'd have a generic charm, and not expose
what is actually into it.
As Juju wants to model, what actually runs must be explicitly described.

With a layer, you could enable people to use a remote script at install,
while creating one charm per app essentially.

That would then give you the ability to extend the bitnami behavior, which
focuses on deploying 1 unit of everything. For example, in your wordpress
deployment, you could essentially add a mysql relationship that would
transfer the local DB to a remote SQL DB, which would then enable scaling
out the front end.

Interested in following up on this as well, please keep me in the loop.
++
Samuel


--
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
mob: +33 616 702 389
skype: samnco
Twitter: @SaMnCo_23
[image: View Samuel Cozannet's profile on LinkedIn]
<https://es.linkedin.com/in/scozannet>

On Tue, Mar 1, 2016 at 6:23 PM, Ney Moura <neymou...@gmail.com> 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>:
>
>> 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
>> mob: +33 616 702 389
>> skype: samnco
>> Twitter: @SaMnCo_23
>> [image: 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> 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>:
>>>
>>>> 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> 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>:
>>>>>
>>>>>> 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
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/juju
>>>
>>>
>>
>
>
> --
> *Ney Moura Conceição*
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to