virtualmin API question

13 posts / 0 new
Last post
#1 Fri, 02/08/2008 - 04:25
DanLong

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

Sat, 02/23/2008 - 13:53
swat2

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.

Sat, 02/23/2008 - 15:27 (Reply to #2)
DanLong

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

Sun, 02/24/2008 - 05:24 (Reply to #3)
DanLong

<b>swat2 wrote:</b>
<div class='quote'>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.</div>

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 ;-)

Mon, 02/25/2008 - 06:16 (Reply to #4)
DanLong

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

Fri, 02/29/2008 - 07:34 (Reply to #5)
DanLong

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

this is the cpengine attached:

it goes in the /includes/virtualmin folder

Fri, 02/29/2008 - 07:37 (Reply to #6)
DanLong

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

Mon, 03/03/2008 - 14:25 (Reply to #7)
Joe
Joe's picture

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. ;-)

--

Check out the forum guidelines!

Thu, 04/17/2008 - 06:04 (Reply to #8)
alessice

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

Thu, 04/17/2008 - 07:51 (Reply to #9)
DanLong

Ya, just dowload the attachment above

Sun, 04/20/2008 - 21:38 (Reply to #10)
alessice

Hi Dan,

What are the improvements over the version included in 2.7.1?

Thanks

Mon, 04/21/2008 - 03:06 (Reply to #11)
DanLong

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

Sat, 02/23/2008 - 16:31
swat2

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

Topic locked