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})")
|
print(f"Utworzono sieć wirtualną {vnet.data_model.name} ({vnet.data_model.ip_range})")
|
||||||
|
|
||||||
webservice_init=r'''
|
webservice_init=r'''#cloud-config
|
||||||
#cloud-config
|
packages:
|
||||||
|
- apt-transport-https
|
||||||
|
- ca-certificates
|
||||||
|
- curl
|
||||||
|
- gnupg-agent
|
||||||
|
- software-properties-common
|
||||||
runcmd:
|
runcmd:
|
||||||
- git clone https://git.wmi.amu.edu.pl/s478839/dpzc-hetzner.git
|
- curl -fsSL https://git.wmi.amu.edu.pl/s478839/dpzc-hetzner/raw/branch/master/lab4/webservice > /root/webservice
|
||||||
- cd lab4
|
- cd /root/
|
||||||
- chmod +x webservice
|
- chmod +x webservice
|
||||||
- ./webservice
|
- ./webservice
|
||||||
'''
|
'''
|
||||||
|
|
||||||
for i in range(NUM_OF_SERVERS):
|
for i in range(NUM_OF_SERVERS):
|
||||||
webservice_server = client.servers.create(
|
webservice_server = client.servers.create(
|
||||||
name=f"{PREFIX}-webservice-{i+1}",
|
name=f"{PREFIX}-webservice-{i+1}",
|
||||||
|
Loading…
Reference in New Issue
Block a user