Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hpc-team
HPCasCode
Commits
81bb49d0
Commit
81bb49d0
authored
4 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Plain Diff
Merge branch 'ubuntu' of gitlab.erc.monash.edu.au:hpc-team/ansible_cluster_in_a_box into ubuntu
parents
5d04c870
a11f6ac9
No related branches found
No related tags found
1 merge request
!293
Ubuntu
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CICD/heat/gc_HOT.yaml
+11
-6
11 additions, 6 deletions
CICD/heat/gc_HOT.yaml
roles/mysql/tasks/Ubuntu_18_mysql_server.yml
+7
-0
7 additions, 0 deletions
roles/mysql/tasks/Ubuntu_18_mysql_server.yml
roles/nfs-server/tasks/startServer.yml
+8
-0
8 additions, 0 deletions
roles/nfs-server/tasks/startServer.yml
with
26 additions
and
6 deletions
CICD/heat/gc_HOT.yaml
+
11
−
6
View file @
81bb49d0
...
@@ -51,23 +51,28 @@ resources:
...
@@ -51,23 +51,28 @@ resources:
name
:
"
heatnfssecgroup"
name
:
"
heatnfssecgroup"
rules
:
[
{
protocol
:
tcp
,
rules
:
[
{
protocol
:
tcp
,
port_range_min
:
2049
,
port_range_min
:
2049
,
port_range_max
:
2049
},
port_range_max
:
2049
,
remote_mode
:
"
remote_group_id"
},
{
protocol
:
tcp
,
{
protocol
:
tcp
,
port_range_min
:
111
,
port_range_min
:
111
,
port_range_max
:
111
},
port_range_max
:
111
,
remote_mode
:
"
remote_group_id"
},
{
protocol
:
udp
,
{
protocol
:
udp
,
port_range_min
:
2049
,
port_range_min
:
2049
,
port_range_max
:
2049
},
port_range_max
:
2049
,
remote_mode
:
"
remote_group_id"
},
{
protocol
:
udp
,
{
protocol
:
udp
,
port_range_min
:
111
,
port_range_min
:
111
,
port_range_max
:
111
}
]
port_range_max
:
111
,
remote_mode
:
"
remote_group_id"
}
]
MySQLSecGroup
:
MySQLSecGroup
:
type
:
"
OS::Neutron::SecurityGroup"
type
:
"
OS::Neutron::SecurityGroup"
properties
:
properties
:
name
:
"
heatmysqlsecgroup"
name
:
"
heatmysqlsecgroup"
rules
:
[
{
protocol
:
tcp
,
rules
:
[
{
protocol
:
tcp
,
port_range_min
:
3306
,
port_range_min
:
3306
,
port_range_max
:
3306
}
]
port_range_max
:
3306
,
remote_mode
:
"
remote_group_id"
}
]
SSHMonashSecGroup
:
SSHMonashSecGroup
:
type
:
"
OS::Neutron::SecurityGroup"
type
:
"
OS::Neutron::SecurityGroup"
properties
:
properties
:
...
@@ -227,7 +232,7 @@ resources:
...
@@ -227,7 +232,7 @@ resources:
flavor
:
m3.small
flavor
:
m3.small
image
:
{
get_param
:
ubuntu_1804_image_id
}
image
:
{
get_param
:
ubuntu_1804_image_id
}
key_name
:
{
get_param
:
ssh_key
}
key_name
:
{
get_param
:
ssh_key
}
security_groups
:
[
{
get_resource
:
SSHMonashSecGroup
},
{
get_resource
:
SlurmSecGroup
},
{
get_resource
:
MySQLSecGroup
},
{
get_resource
:
NFSSecGroup
}
]
security_groups
:
[
default
,
{
get_resource
:
SSHMonashSecGroup
},
{
get_resource
:
SlurmSecGroup
},
{
get_resource
:
MySQLSecGroup
},
{
get_resource
:
NFSSecGroup
}
]
metadata
:
metadata
:
ansible_host_groups
:
[
SQLNodes
,
NFSNodes
]
ansible_host_groups
:
[
SQLNodes
,
NFSNodes
]
ansible_ssh_user
:
ubuntu
ansible_ssh_user
:
ubuntu
...
...
This diff is collapsed.
Click to expand it.
roles/mysql/tasks/Ubuntu_18_mysql_server.yml
+
7
−
0
View file @
81bb49d0
...
@@ -8,6 +8,13 @@
...
@@ -8,6 +8,13 @@
apt
:
name="{{ server_packages }}" update_cache=yes state=present
apt
:
name="{{ server_packages }}" update_cache=yes state=present
become
:
true
become
:
true
-
name
:
Comment out bind address so it doesn't bind to 127.0.0.1
replace
:
path
:
/etc/mysql/mariadb.conf.d/50-server.cnf
regexp
:
'
(.*bind.*)'
replace
:
'
#\1'
become
:
true
-
name
:
make sure mysql conf directory exists
-
name
:
make sure mysql conf directory exists
file
:
dest=/etc/mysql/conf.d state=directory
file
:
dest=/etc/mysql/conf.d state=directory
become
:
true
become
:
true
...
...
This diff is collapsed.
Click to expand it.
roles/nfs-server/tasks/startServer.yml
+
8
−
0
View file @
81bb49d0
...
@@ -29,7 +29,15 @@
...
@@ -29,7 +29,15 @@
become
:
true
become
:
true
when
:
ansible_os_family == "RedHat" and ansible_distribution_major_version == "7"
when
:
ansible_os_family == "RedHat" and ansible_distribution_major_version == "7"
-
name
:
"
Run
exportfs"
command
:
/usr/sbin/exportfs -a
become
:
true
when
:
ansible_os_family == "Debian"
-
name
:
"
Start
the
Server"
-
name
:
"
Start
the
Server"
service
:
"
name=nfs-kernel-server
state=started
enabled=true"
service
:
"
name=nfs-kernel-server
state=started
enabled=true"
become
:
true
become
:
true
when
:
ansible_os_family == "Debian"
when
:
ansible_os_family == "Debian"
This diff is collapsed.
Click to expand it.
Andreas Hamacher
@handreas
mentioned in commit
e4a4ffe4
·
4 years ago
mentioned in commit
e4a4ffe4
mentioned in commit e4a4ffe400f04677cd0dd2917f8ff00c04928283
Toggle commit list
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