Skip to content
Snippets Groups Projects
Commit 2894be7e authored by Martin Čuchran's avatar Martin Čuchran
Browse files

Desktop version added

parent f7a44aea
No related branches found
No related tags found
No related merge requests found
#ps1_sysnative
$ErrorActionPreference = 'Stop';
$ip = [int]$env:computername.split('-')[2];
$adapter = Get-NetAdapter | sort name;
$adapter[1] | New-NetIPAddress -AddressFamily 'IPv4' -IPAddress "10.0.2.$($ip)" -PrefixLength '16';
$adapter[1] | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33';
$user = [ADSI]'WinNT://./Administrator';
$user.SetPassword('administrator_password');
NET USER pv176 pv176_password /add;
NET LOCALGROUP Administrators pv176 /add;
NET USER admin /delete;
exit 1001;
\ No newline at end of file
......@@ -77,6 +77,25 @@
}
}
}
},
"PV176-Desktops":{
"type": "OS::Heat::ResourceGroup",
"description": "Lab desktops",
"depends_on": ["PV176-Servers-ports","PV176-Servers-public-ports"],
"properties":{
"count": { "get_param": "lab_size" },
"resource_def":{
"type": "Lib::server_vm",
"properties":{
"name": "PV176-desktop-%index%",
"network": "PV176-port-%index%",
"network_public": "PV176-public-port-%index%",
"data": {"get_file": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/JSON/powershell/desktop-init.ps1"},
"administrator_password": { "get_param": "administrator_password" },
"pv176_password": { "get_param": "pv176_password" }
}
}
}
}
},
"outputs":{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment