-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2-create-projects.sh
executable file
·28 lines (25 loc) · 1.78 KB
/
2-create-projects.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -x #echo on
#read in global vars
. ./globalvars.sh
#quota variables
quota=Gold
cpu=100
mem=256
vm=60
vmcost=150
persistentdisk=50
persistentddiskcapacity=1000
ephemeraldisk=50
ephemeraldiskcapacity=1000
#create projects
photon -n project create $project1 --tenant $tenant1 --percent 50 -c 172.16.0.0/16
photon -n project create $project2 --tenant $tenant1 --percent 50 -c 172.16.0.0/16
photon -n project create $project3 --tenant $tenant2 --percent 50 -c 172.16.0.0/16
photon -n project create $project4 --tenant $tenant2 --percent 50 -c 172.16.0.0/16
#photon tenant set $tenant1
#echo y | photon project create -n $project1 -r $quota -l "vm.cpu $cpu COUNT, vm.memory $mem GB, vm $vm COUNT, persistent-disk.count $persistentdisk COUNT, persistent-disk.capacity $persistentddiskcapacity GB, ephemeral-disk $ephemeraldisk COUNT, ephemeral-disk.capacity $ephemeraldiskcapacity GB"
#echo y | photon project create -n $project2 -r $quota -l "vm.cpu $cpu COUNT, vm.memory $mem GB, vm $vm COUNT, persistent-disk.count $persistentdisk COUNT, persistent-disk.capacity $persistentddiskcapacity GB, ephemeral-disk $ephemeraldisk COUNT, ephemeral-disk.capacity $ephemeraldiskcapacity GB"
#photon tenant set $tenant2
#echo y | photon project create -n $project3 -r $quota -l "vm.cpu $cpu COUNT, vm.memory $mem GB, vm $vm COUNT, persistent-disk.count $persistentdisk COUNT, persistent-disk.capacity $persistentddiskcapacity GB, ephemeral-disk $ephemeraldisk COUNT, ephemeral-disk.capacity $ephemeraldiskcapacity GB"
#echo y | photon project create -n $project4 -r $quota -l "vm.cpu $cpu COUNT, vm.memory $mem GB, vm $vm COUNT, persistent-disk.count $persistentdisk COUNT, persistent-disk.capacity $persistentddiskcapacity GB, ephemeral-disk $ephemeraldisk COUNT, ephemeral-disk.capacity $ephemeraldiskcapacity GB"