Re: proper way to deploy to one server (lxc based)

2014-10-07 Thread Andrew Wilkins
On Tue, Oct 7, 2014 at 10:55 PM, Vasiliy Tolstov 
wrote:

> Hello. What is the recommended way to install all-in-one (for example
> wordpress) and publicly available server?
> For example i have server with address 85.77.88.99 and want to install
> wordpress on it via running juju on this server and deploy all things
> to lxc containers.
> After that i need to go to my wordpress site, but nginx listens for
> connections inside container. Now i'm create nat rule inside iptables
> by hand... But does it possible to do it automatic?
>

Not as a first-class citizen in Juju. There's
https://github.com/cmars/juju-nat, but I've just spoken to the author who
informs me that it currently has some issues.


> Or does it possible to install for example http proxy charm on node 0
> that route all needed traffic to containers... ?


That should work. Deploy ha-proxy to machine 0 and relate it to nginx.


> --
> Vasiliy Tolstov,
> e-mail: v.tols...@selfip.ru
> jabber: v...@selfip.ru
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


proper way to deploy to one server (lxc based)

2014-10-07 Thread Vasiliy Tolstov
Hello. What is the recommended way to install all-in-one (for example
wordpress) and publicly available server?
For example i have server with address 85.77.88.99 and want to install
wordpress on it via running juju on this server and deploy all things
to lxc containers.
After that i need to go to my wordpress site, but nginx listens for
connections inside container. Now i'm create nat rule inside iptables
by hand... But does it possible to do it automatic?

Or does it possible to install for example http proxy charm on node 0
that route all needed traffic to containers... ?

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: Tags for charms and bundles

2014-10-07 Thread Jorge O. Castro
On Tue, Oct 7, 2014 at 11:30 AM, Joshua Strobl
 wrote:
> tags: backup, storage

We spent about an hour talking to the Juju GUI guys explaining what
we'd like to see in the search box and this was one of the example use
cases.

I do not know what the future plan is for the dropdown in the GUI
offhand, hopefully Rick or someone can chime in on this.


-- 
Jorge Castro
Canonical Ltd.
http://juju.ubuntu.com/ - Automate your Cloud Infrastructure

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


Re: Tags for charms and bundles

2014-10-07 Thread Joshua Strobl

Hey Jorge,


I think the initial set of tags you defined is a great start and I'm all for 
renaming categories to tags, though
I think application_development should just be called development.


Given the Juju GUI has a dropdown that is oriented towards "categories" and 
would most likely be unwieldy as the
number of tags grows, are there any plans to remove it and**  offer the ability 
to define tags within the
"Search for Charms" input box in a syntax like:


tags: backup, storage


- Josh


On 10/07/2014 01:18 PM, Jorge O. Castro wrote:

Hello everyone,

I've been working with the design team on how we can improve what are
currently called categories. We'd like to propose the following things
as new charm policy:

- Rename categories to tags
- Add a "description" field to bundles, the same as charms.
- Add an icon to bundles so people can optionally brand their bundles.
- Add these as a initial set of tags for charms promoted as reviewed:

analytics
big_data
ecommerce
openstack
cloudfoundry
cms
social
streaming
wiki
ops
backup
identity
monitoring
performance
audits
security
network
storage
database
cache (or cache-proxy?)
application_development (rails, django, etc.)
web_server

In a couple of months we will have the ability to let people tag
however they want for their personal namespace, so we're not trying to
make a huge tag cloud here, just cover the majority of use cases.
Thoughts?




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


Re: failed to deploy wordpress via local

2014-10-07 Thread Vasiliy Tolstov
2014-10-07 19:14 GMT+04:00 Andrew Wilkins :
> Juju does have an API; it's how the juju CLI and GUI manage the environment.
> The API is websocket-based. There's clients for at least Go (in the main
> tree), and Python (https://pypi.python.org/pypi/jujuclient/).
> I'm unsure of what you want to do, so I can't say whether the API will
> actually help you do it.


I need something like json api. To call from php code for example.

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: failed to deploy wordpress via local

2014-10-07 Thread Andrew Wilkins
On Tue, Oct 7, 2014 at 3:46 PM, Vasiliy Tolstov  wrote:

> 2014-10-07 11:00 GMT+04:00 Andrew Wilkins :
> > he local provider's "machine 0" is the host itself, which is typically a
> > laptop or desktop computer. Deploying units on machine 0 is disallowed to
> > prevent users from breaking their personal use/development environment.
> >
>
> I think that this is good
>
> >> i'm use link:
> >> https://jujucharms.com/precise/wordpress-26/?text=wordpress#readme
> >>
> >>
> >> how can i solve issues?
> >> I need to run all services on one unit.
> >
> >
> > I suggest using the manual provider instead:
> > https://juju.ubuntu.com/docs/config-manual.html
> > You would install the Juju client on your laptop/desktop, then create a
> > "manual" config in environments.yaml pointing at your VPS. After
> > bootstrapping, you can then deploy units directly to that machine.
>
> Nice. Does jujud have api? Or how can i from my own panel can say
> deploy this app using this credentials?


Juju does have an API; it's how the juju CLI and GUI manage the environment.
The API is websocket-based. There's clients for at least Go (in the main
tree), and Python (https://pypi.python.org/pypi/jujuclient/).
I'm unsure of what you want to do, so I can't say whether the API will
actually help you do it.

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


Re: request for mirror all charms from jujucahrms to github

2014-10-07 Thread Jorge O. Castro
Oops, forgot to CC the list:

On Tue, Oct 7, 2014 at 10:44 AM, Jorge O. Castro  wrote:
> On Tue, Oct 7, 2014 at 9:59 AM, Vasiliy Tolstov  wrote:
>> Does it possible to mirror all charms to github for easy contribution?
>
> Feel free to propose pull requests against https://github.com/charms
>
> We currently don't have a way of getting those into the review queue
> so if you could mail the list with them as you submit them we'll just
> manually merge them. Marco's going to add support for putting PRs in
> the review queue soon anyway so we hopefully won't miss any.
>
> The plan is to have better github support in the future, but currently
> it's a manual process.
>
> --
> Jorge Castro
> Canonical Ltd.
> http://juju.ubuntu.com/ - Automate your Cloud Infrastructure



-- 
Jorge Castro
Canonical Ltd.
http://juju.ubuntu.com/ - Automate your Cloud Infrastructure

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


Re: request for mirror all charms from jujucahrms to github

2014-10-07 Thread Nate Finch
The Juju application *has* moved to github.  We use launchpad for bugs, but
github is the home for the code.

On Tue, Oct 7, 2014 at 4:08 PM, José Antonio Rey  wrote:

> Juju didn't move to Github. Juju charms are only being mirrored to Github.
>
> --
> José Antonio Rey
> On Oct 7, 2014 9:06 AM, "Vasiliy Tolstov"  wrote:
>
>> 2014-10-07 18:02 GMT+04:00 José Antonio Rey :
>> > As far as I know, the github mirror is a one-way mirror. Having it as a
>> > two-way mirror is something a bit more complicated and that would have
>> some
>> > other implications. Probably some discussion around before proceeding
>> would
>> > be better.
>>
>>
>> Yes, but as i see that juju moved to github i thinks that all charms
>> migrated to.
>> Github provides beautiful interface for issues and automatic merges
>> (also supports hooks to jenkins and other ci)..
>>
>> --
>> Vasiliy Tolstov,
>> e-mail: v.tols...@selfip.ru
>> jabber: v...@selfip.ru
>>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: request for mirror all charms from jujucahrms to github

2014-10-07 Thread José Antonio Rey
So the bot can work on the mirror, probably?

As I said, this is something that would need further discussion.

--
José Antonio Rey
On Oct 7, 2014 9:11 AM, "Vasiliy Tolstov"  wrote:

> 2014-10-07 18:08 GMT+04:00 José Antonio Rey :
> > Juju didn't move to Github. Juju charms are only being mirrored to
> Github.
>
>
> https://github.com/juju/juju why pull requests are present?
>
> --
> Vasiliy Tolstov,
> e-mail: v.tols...@selfip.ru
> jabber: v...@selfip.ru
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: request for mirror all charms from jujucahrms to github

2014-10-07 Thread Vasiliy Tolstov
2014-10-07 18:08 GMT+04:00 José Antonio Rey :
> Juju didn't move to Github. Juju charms are only being mirrored to Github.


https://github.com/juju/juju why pull requests are present?

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: request for mirror all charms from jujucahrms to github

2014-10-07 Thread José Antonio Rey
Juju didn't move to Github. Juju charms are only being mirrored to Github.

--
José Antonio Rey
On Oct 7, 2014 9:06 AM, "Vasiliy Tolstov"  wrote:

> 2014-10-07 18:02 GMT+04:00 José Antonio Rey :
> > As far as I know, the github mirror is a one-way mirror. Having it as a
> > two-way mirror is something a bit more complicated and that would have
> some
> > other implications. Probably some discussion around before proceeding
> would
> > be better.
>
>
> Yes, but as i see that juju moved to github i thinks that all charms
> migrated to.
> Github provides beautiful interface for issues and automatic merges
> (also supports hooks to jenkins and other ci)..
>
> --
> Vasiliy Tolstov,
> e-mail: v.tols...@selfip.ru
> jabber: v...@selfip.ru
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: request for mirror all charms from jujucahrms to github

2014-10-07 Thread Vasiliy Tolstov
2014-10-07 18:02 GMT+04:00 José Antonio Rey :
> As far as I know, the github mirror is a one-way mirror. Having it as a
> two-way mirror is something a bit more complicated and that would have some
> other implications. Probably some discussion around before proceeding would
> be better.


Yes, but as i see that juju moved to github i thinks that all charms
migrated to.
Github provides beautiful interface for issues and automatic merges
(also supports hooks to jenkins and other ci)..

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


generating config based on free memory

2014-10-07 Thread Vasiliy Tolstov
I need to properly generate mysql (and other config files) based on
machine resources (first of all free memory). How can automatic inside
hooks can determine free memory?
For example i have classical wordpress on 1Gb vps. It can works very
fine, but current mysql charms hardcoded innodb_buffer_pool_size and i
don't have memory to start mysql server.

May be each charm provide minimum required memory for properly
working. And in mysql charm i can properly calculated some params that
needs memory... ?

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: request for mirror all charms from jujucahrms to github

2014-10-07 Thread José Antonio Rey
As far as I know, the github mirror is a one-way mirror. Having it as a
two-way mirror is something a bit more complicated and that would have some
other implications. Probably some discussion around before proceeding would
be better.

--
José Antonio Rey
On Oct 7, 2014 9:00 AM, "Vasiliy Tolstov"  wrote:

> Does it possible to mirror all charms to github for easy contribution?
> P.S. I'm know bzr , but not like to double own git stuff with bzr ,
> and i don't like launchpad web ui =)
>
> --
> Vasiliy Tolstov,
> e-mail: v.tols...@selfip.ru
> jabber: v...@selfip.ru
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


request for mirror all charms from jujucahrms to github

2014-10-07 Thread Vasiliy Tolstov
Does it possible to mirror all charms to github for easy contribution?
P.S. I'm know bzr , but not like to double own git stuff with bzr ,
and i don't like launchpad web ui =)

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: failed to deploy wordpress via local

2014-10-07 Thread Vasiliy Tolstov
2014-10-07 11:00 GMT+04:00 Andrew Wilkins :
> he local provider's "machine 0" is the host itself, which is typically a
> laptop or desktop computer. Deploying units on machine 0 is disallowed to
> prevent users from breaking their personal use/development environment.
>

I think that this is good

>> i'm use link:
>> https://jujucharms.com/precise/wordpress-26/?text=wordpress#readme
>>
>>
>> how can i solve issues?
>> I need to run all services on one unit.
>
>
> I suggest using the manual provider instead:
> https://juju.ubuntu.com/docs/config-manual.html
> You would install the Juju client on your laptop/desktop, then create a
> "manual" config in environments.yaml pointing at your VPS. After
> bootstrapping, you can then deploy units directly to that machine.

Nice. Does jujud have api? Or how can i from my own panel can say
deploy this app using this credentials?


-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru
jabber: v...@selfip.ru

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


Re: Reminder: Getting Started with Charm Testing

2014-10-07 Thread Jorge O. Castro
On Fri, Oct 3, 2014 at 11:20 AM, Jorge O. Castro  wrote:
> As always we'll toss the videos up on youtube and send the link to the list.


And here it is folks: https://www.youtube.com/watch?v=VMHNi67htM0

-- 
Jorge Castro
Canonical Ltd.
http://juju.ubuntu.com/ - Automate your Cloud Infrastructure

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


Re: Tags for charms and bundles

2014-10-07 Thread Antonio Rosales
On Tue, Oct 7, 2014 at 12:18 PM, Jorge O. Castro  wrote:
> Hello everyone,
>
> I've been working with the design team on how we can improve what are
> currently called categories. We'd like to propose the following things
> as new charm policy:
>
> - Rename categories to tags
> - Add a "description" field to bundles, the same as charms.

Also include the maintainer field in bundles. Idea is to have similar
metadata in bundles as we do for charms.

-thanks,
Antonio


> - Add an icon to bundles so people can optionally brand their bundles.
> - Add these as a initial set of tags for charms promoted as reviewed:
>
> analytics
> big_data
> ecommerce
> openstack
> cloudfoundry
> cms
> social
> streaming
> wiki
> ops
> backup
> identity
> monitoring
> performance
> audits
> security
> network
> storage
> database
> cache (or cache-proxy?)
> application_development (rails, django, etc.)
> web_server
>
> In a couple of months we will have the ability to let people tag
> however they want for their personal namespace, so we're not trying to
> make a huge tag cloud here, just cover the majority of use cases.
> Thoughts?
>
>
> --
> Jorge Castro
> Canonical Ltd.
> http://juju.ubuntu.com/ - Automate your Cloud Infrastructure
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/juju

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


Tags for charms and bundles

2014-10-07 Thread Jorge O. Castro
Hello everyone,

I've been working with the design team on how we can improve what are
currently called categories. We'd like to propose the following things
as new charm policy:

- Rename categories to tags
- Add a "description" field to bundles, the same as charms.
- Add an icon to bundles so people can optionally brand their bundles.
- Add these as a initial set of tags for charms promoted as reviewed:

analytics
big_data
ecommerce
openstack
cloudfoundry
cms
social
streaming
wiki
ops
backup
identity
monitoring
performance
audits
security
network
storage
database
cache (or cache-proxy?)
application_development (rails, django, etc.)
web_server

In a couple of months we will have the ability to let people tag
however they want for their personal namespace, so we're not trying to
make a huge tag cloud here, just cover the majority of use cases.
Thoughts?


-- 
Jorge Castro
Canonical Ltd.
http://juju.ubuntu.com/ - Automate your Cloud Infrastructure

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


Re: failed to deploy wordpress via local

2014-10-07 Thread Andrew Wilkins
On Mon, Oct 6, 2014 at 11:31 PM, Vasiliy Tolstov 
wrote:

> Hi. I'm try to deploy wordpress on local vps node (kvm virt).
> i'm install juju stable from ppa, install juju-local and doing
> bootstrap, switch local
>
> when i'm try to get step for single node juju deploy --to 0 wordpress
> i get errors that says:
> ERROR cannot assign unit "wordpress/0" to machine 0: machine "0"
> cannot host units
>

The local provider's "machine 0" is the host itself, which is typically a
laptop or desktop computer. Deploying units on machine 0 is disallowed to
prevent users from breaking their personal use/development environment.

i'm use link:
> https://jujucharms.com/precise/wordpress-26/?text=wordpress#readme
>
>
> how can i solve issues?
> I need to run all services on one unit.


I suggest using the manual provider instead:
https://juju.ubuntu.com/docs/config-manual.html
You would install the Juju client on your laptop/desktop, then create a
"manual" config in environments.yaml pointing at your VPS. After
bootstrapping, you can then deploy units directly to that machine.

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