Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PV176
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tomáš Sapák
PV176
Commits
c92510ed
Commit
c92510ed
authored
8 years ago
by
Martin Cuchran
Browse files
Options
Downloads
Patches
Plain Diff
Resource group
parent
aac6e7e9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Openstack/pv176_env.yaml
+3
-0
3 additions, 0 deletions
Openstack/pv176_env.yaml
Openstack/pv176_student_server_group.yaml
+6
-6
6 additions, 6 deletions
Openstack/pv176_student_server_group.yaml
Openstack/pv176_vm.yaml
+34
-0
34 additions, 0 deletions
Openstack/pv176_vm.yaml
with
43 additions
and
6 deletions
Openstack/pv176_env.yaml
0 → 100644
+
3
−
0
View file @
c92510ed
resource_registry
:
Lib::single_vm
:
https://raw.githubusercontent.com/Mamut3D/openstack-tutorial/master/heat/lib/1_single_vm.yaml
Lib::private_network
:
https://raw.githubusercontent.com/Mamut3D/openstack-tutorial/master/heat/lib/2_private_network.yaml
This diff is collapsed.
Click to expand it.
Openstack/pv176_student_server_group.yaml
+
6
−
6
View file @
c92510ed
heat_template_version
:
2016-04-08
heat_template_version
:
'
2016-04-08
'
description
:
>
Small cluster of VMs which uses git templates. (dont forget to use environment file)
parameters
:
cluster_size
:
type
:
number
label
:
Cluster size
description
:
Number of instances in cluster.
default
:
4
default
:
2
resources
:
network
:
type
:
Lib::private_network
tiny_cluster
:
type
:
OS::Heat::ResourceGroup
properties
:
...
...
@@ -19,5 +21,3 @@ resources:
type
:
Lib::single_vm
properties
:
network
:
{
get_attr
:
[
network
,
private_subnet
,
network_id
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Openstack/pv176_vm.yaml
0 → 100644
+
34
−
0
View file @
c92510ed
heat_template_version
:
'
2016-04-08'
resources
:
Server_1
:
type
:
OS::Nova::Server
properties
:
name
:
PV176-server-1
flavor
:
{
get_param
:
flavor
}
image
:
73ff33dc-346d-46c8-8786-3bbc97e21c64
networks
:
-
port
:
{
get_resource
:
instance_port_1
}
user_data
:
str_replace
:
template
:
|
#ps1_sysnative
$ErrorActionPreference = 'Stop'
$IP = '10.0.0.2'
$MaskBits = 8
$Gateway = '10.0.0.1'
$DNS = '147.251.4.33'
$IPType = 'IPv4'
$adapter = Get-NetAdapter
$adapter | New-NetIPAddress -AddressFamily $IPType -IPAddress $IP -PrefixLength $MaskBits -DefaultGateway $Gateway
$adapter | Set-DnsClientServerAddress -ServerAddresses $DNS
$user = [ADSI]'WinNT://./Administrator'
$user.SetPassword('safe_mode_administrator_password')
NET USER pv176 safe_mode_administrator_password /add
NET LOCALGROUP Administrators pv176 /add
exit 1001
params
:
safe_mode_administrator_password
:
{
get_param
:
safe_mode_administrator_password
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment