virtualmin API question

Is it possible to send minimal information in the remote create account API, such as using a template name? Right now the auto creation string that’s being used for me contains most of which is already layed out in the template. Currently I have to go back in and install scripts, etc that aren’t passed.

Is it possible to just pass the root admin user & pass, new account user & pass and the template name?

thanks,
Dan

I need the answer on this too for AWBS. If I try to do this at the moment I get very strange and undesirable results.

I’d replied to this in your other post. AWBS needs to modify their Virtualmin engine to run create asking for the template.

On 23/Feb/2008 15:56 Tim Brookman wrote …
> Hi Jamie,
>
> Is it possible to send minimal information in the remote create
> account API, such as using a template name? Right now the auto
> creation string that’s being used for me contains most of which is
> already layed out in the template. Currently I have to go back in and
> install scripts, etc that aren’t passed.
>
> Is it possible to just pass the root admin user & pass, new account
> user & pass and the template name?
>
> If I try to do this at the moment I get very strange and undesirable
> results.

Hi Tim,
You can specify a template to create-domain.pl with the --template parameter, followed by either a template name or ID number. This will then drive things like the Apache config, DNS records and default scripts.

Also, you should use the --limits-from-template and --features-from-template parameters to avoid having the specify initial features and limits. With these, the only other required parameters and --domain and --pass , although --desc should probably be given to set a description for the domain.

Please let me know if you have any other questions about or problems with the API…

  • Jamie

swat2 wrote:

I need the answer on this too for AWBS. If I try to do this at the moment I get very strange and undesirable results.

You might want to go to the AWBS forum into the HOSTS area and put in a posting in the Virtualmin area. Let them know there’s someoe else besides me that uses this billing/panel combo :wink:

I’ve received a copy of the cpengine from AWBS for this change to be used when VMPro 3.53 gets released. I’ll forward it on after I can test it.

Dan

THe new AWBS engine works great with the VM 3.53 update.

this is the cpengine attached:

it goes in the /includes/virtualmin folder

oops, forgot to zip the file:
[file name=cvmengine.zip size=33331]http://www.virtualmin.com/components/com_fireboard/uploaded/files/cvmengine.zip[/file]

Awesome news! It seems that AWBS is the only billing app that actually pays attention to the Virtualmin market (if a bit slowly, at times). Now, if only we could get a few more users like you that keep after the other vendors to get them on the ball with Virtualmin support. :wink:

I’m running the latest version of AWBS with Virtualmin PRO in a semi-test enviroment, and works fine for automatic creation of Virtual-Server and Reseller accounts.

Dan, can I update my AWBS 2.7.1 with your file?
Thanks

Ya, just dowload the attachment above

Hi Dan,

What are the improvements over the version included in 2.7.1?

Thanks

that was the pre-release of 2.7.1. My understanding is that it is integrated into the release now. It allows you to create accounts using the template names of the templates created in Virtualmin.

For the sake of others here though, you might want to keep these questions, now, to the Virtualmin hosting module in the AWBS forum.

Thanks,
Dan