Re: add users to already deployed ftp server charm

2015-06-02 Thread Charles Butler
Vasilly,

this would be a prime opportunity to extend the charm with a Juju action!

https://jujucharms.com/docs/devel/actions

You can somewhat extrapolate different data types for action variables by
defining a string and loading it with say, a JSON object with the
properties you need and then parse it server side. But I dont like this as
it breaks expectations of what the value type should be.  What I personally
would do, is create an action to add a single user w/ the proper data
points as an action, and script calling that action with whatever data-sets
you need.

All the best,


Charles Butler charles.but...@canonical.com - Juju Charmer
Come see the future of datacenter orchestration: http://jujucharms.com

On Tue, Jun 2, 2015 at 7:08 PM, Vasiliy Tolstov v.tols...@selfip.ru wrote:

 Hi! I need to able add/del ftp users (login:passwd format) on already
 deployed ftp server unit.

 What is the idiomatic right way to do this? I'm already have relation
 to establish connections to needed services, but also i need to
 add/del users by hand. For example i have sinle unit ftp server and
 need to create 10-20 users with passwords and may be different home
 dirs. As i see charm does not have dictionary or list types.

 --
 Vasiliy Tolstov,
 e-mail: v.tols...@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


add users to already deployed ftp server charm

2015-06-02 Thread Vasiliy Tolstov
Hi! I need to able add/del ftp users (login:passwd format) on already
deployed ftp server unit.

What is the idiomatic right way to do this? I'm already have relation
to establish connections to needed services, but also i need to
add/del users by hand. For example i have sinle unit ftp server and
need to create 10-20 users with passwords and may be different home
dirs. As i see charm does not have dictionary or list types.

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

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


Re: add users to already deployed ftp server charm

2015-06-02 Thread Vasiliy Tolstov
2015-06-03 2:16 GMT+03:00 Charles Butler charles.but...@canonical.com:
 Vasilly,

 this would be a prime opportunity to extend the charm with a Juju action!

 https://jujucharms.com/docs/devel/actions

 You can somewhat extrapolate different data types for action variables by
 defining a string and loading it with say, a JSON object with the properties
 you need and then parse it server side. But I dont like this as it breaks
 expectations of what the value type should be.  What I personally would do,
 is create an action to add a single user w/ the proper data points as an
 action, and script calling that action with whatever data-sets you need.

 All the best,


 Charles Butler charles.but...@canonical.com - Juju Charmer
 Come see the future of datacenter orchestration: http://jujucharms.com


Thanks! Roger Peppe, does it possible to add actions support to gocharm?

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

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