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 <[email protected]> - Juju Charmer Come see the future of datacenter orchestration: http://jujucharms.com On Tue, Jun 2, 2015 at 7:08 PM, Vasiliy Tolstov <[email protected]> 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: [email protected] > > -- > Juju mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju >
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
