Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Very Demiurge Very Mindful
Kolla Ansible
Commits
b05e4e1e
Commit
b05e4e1e
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix security group creation"
parents
b388f7f9
8c189377
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/init-runonce
+9
-8
9 additions, 8 deletions
tools/init-runonce
with
9 additions
and
8 deletions
tools/init-runonce
+
9
−
8
View file @
b05e4e1e
...
...
@@ -62,16 +62,21 @@ openstack router create demo-router
openstack router add subnet demo-router demo-subnet
openstack router
set
--external-gateway
public1 demo-router
# Get admin user and tenant IDs
ADMIN_USER_ID
=
$(
openstack user list |
awk
'/ admin / {print $2}'
)
ADMIN_PROJECT_ID
=
$(
openstack project list |
awk
'/ admin / {print $2}'
)
ADMIN_SEC_GROUP
=
$(
openstack security group list
--project
${
ADMIN_PROJECT_ID
}
|
awk
'/ default / {print $2}'
)
# Sec Group Config
openstack security group rule create
--ingress
--ethertype
IPv4
\
--protocol
icmp
default
--protocol
icmp
${
ADMIN_SEC_GROUP
}
openstack security group rule create
--ingress
--ethertype
IPv4
\
--protocol
tcp
--dst-port
22
default
--protocol
tcp
--dst-port
22
${
ADMIN_SEC_GROUP
}
# Open heat-cfn so it can run on a different host
openstack security group rule create
--ingress
--ethertype
IPv4
\
--protocol
tcp
--dst-port
8000
default
--protocol
tcp
--dst-port
8000
${
ADMIN_SEC_GROUP
}
openstack security group rule create
--ingress
--ethertype
IPv4
\
--protocol
tcp
--dst-port
8080
default
--protocol
tcp
--dst-port
8080
${
ADMIN_SEC_GROUP
}
if
[
!
-f
~/.ssh/id_rsa.pub
]
;
then
echo
Generating ssh key.
...
...
@@ -84,10 +89,6 @@ fi
# Increase the quota to allow 40 m1.small instances to be created
# Get admin user and tenant IDs
ADMIN_USER_ID
=
$(
openstack user list |
awk
'/ admin / {print $2}'
)
ADMIN_PROJECT_ID
=
$(
openstack project list |
awk
'/ admin / {print $2}'
)
# 40 instances
openstack quota
set
--instances
40
$ADMIN_PROJECT_ID
...
...
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