fix webservice_init
This commit is contained in:
parent
0bb7dfbb7d
commit
70284e8eb4
@ -38,14 +38,20 @@ if not vnet:
|
||||
)
|
||||
print(f"Utworzono sieć wirtualną {vnet.data_model.name} ({vnet.data_model.ip_range})")
|
||||
|
||||
webservice_init=r'''
|
||||
#cloud-config
|
||||
webservice_init=r'''#cloud-config
|
||||
packages:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- gnupg-agent
|
||||
- software-properties-common
|
||||
runcmd:
|
||||
- git clone https://git.wmi.amu.edu.pl/s478839/dpzc-hetzner.git
|
||||
- cd lab4
|
||||
- curl -fsSL https://git.wmi.amu.edu.pl/s478839/dpzc-hetzner/raw/branch/master/lab4/webservice > /root/webservice
|
||||
- cd /root/
|
||||
- chmod +x webservice
|
||||
- ./webservice
|
||||
'''
|
||||
|
||||
for i in range(NUM_OF_SERVERS):
|
||||
webservice_server = client.servers.create(
|
||||
name=f"{PREFIX}-webservice-{i+1}",
|
||||
|
Loading…
Reference in New Issue
Block a user