Skip to content

Commit cebd1da

Browse files
author
Manuel Amador (Rudd-O)
committed
Added support for injecting the VMWare templates across the board, and in the packages too
1 parent e992e87 commit cebd1da

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎cloud.spec‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,7 @@ fi
591591
%{_datadir}/%{name}/setup/create-index-fk.sql
592592
%{_datadir}/%{name}/setup/create-schema.sql
593593
%{_datadir}/%{name}/setup/server-setup.sql
594-
%{_datadir}/%{name}/setup/templates.kvm.sql
595-
%{_datadir}/%{name}/setup/templates.xenserver.sql
594+
%{_datadir}/%{name}/setup/templates.*.sql
596595
%{_datadir}/%{name}/setup/deploy-db-dev.sh
597596
%{_datadir}/%{name}/setup/server-setup.xml
598597
%{_datadir}/%{name}/setup/data-20to21.sql

‎debian/cloud-setup.install‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
/usr/share/cloud/setup/create-index-fk.sql
55
/usr/share/cloud/setup/create-schema.sql
66
/usr/share/cloud/setup/server-setup.sql
7-
/usr/share/cloud/setup/templates.kvm.sql
8-
/usr/share/cloud/setup/templates.xenserver.sql
7+
/usr/share/cloud/setup/templates.*.sql
98
/usr/share/cloud/setup/deploy-db-dev.sh
109
/usr/share/cloud/setup/server-setup.xml
1110
/usr/share/cloud/setup/data-20to21.sql

‎setup/bindir/cloud-setup-databases.in‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ except ImportError:
4343
#---------------------- option parsing and command line checks ------------------------
4444

4545

46-
usage = """%prog user:password@mysqlhost:port <kvm|xenserver> [--deploy-as=rootuser:rootpassword] [--auto=/path/to/server-setup.xml]
46+
usage = """%prog user:password@mysqlhost:port <kvm|xenserver|vmware> [--deploy-as=rootuser:rootpassword] [--auto=/path/to/server-setup.xml]
4747
4848
This command sets up the CloudStack Management Server and CloudStack Usage Server database configuration (connection credentials and host information) based on the first argument.
4949
@@ -224,7 +224,7 @@ def setupconfigfile(fn,myipaddr,username,password,host,port):
224224
(options, args) = parser.parse_args()
225225

226226
if len(args) != 2: e("Wrong number of arguments")
227-
if args[1] not in ["xenserver","kvm"]: e("You need to specify either xenserver or kvm after the database credentials")
227+
if args[1] not in ["xenserver","kvm","vmware"]: e("You need to specify either xenserver or kvm or vmware after the database credentials")
228228
virttech = args[1]
229229

230230
user,password,host,port= get_creds(parser,options,args)

‎wscript‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,9 @@ def deploydb_xenserver(ctx):
759759
def deploydb_kvm(ctx):
760760
"""re-deploys the database using the MySQL connection information and the KVM templates.sql"""
761761
return deploydb(ctx,"kvm")
762+
def deploydb_vmware(ctx):
763+
"""re-deploys the database using the MySQL connection information and the KVM templates.sql"""
764+
return deploydb(ctx,"vmware")
762765

763766
def run(args):
764767
"""runs the management server"""

0 commit comments

Comments
 (0)