Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_cluster_in_a_box
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Chris Hines
ansible_cluster_in_a_box
Commits
c5522965
Commit
c5522965
authored
10 years ago
by
jupiter
Browse files
Options
Downloads
Patches
Plain Diff
fixed exceptions
parent
f3d6cceb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
playbook/cvl2.yml
+33
-30
33 additions, 30 deletions
playbook/cvl2.yml
roles/nfs-client/tasks/mountFileSystem.yml
+0
-5
0 additions, 5 deletions
roles/nfs-client/tasks/mountFileSystem.yml
roles/slurm/tasks/main.yml
+1
-1
1 addition, 1 deletion
roles/slurm/tasks/main.yml
with
34 additions
and
36 deletions
playbook/cvl2.yml
+
33
−
30
View file @
c5522965
...
...
@@ -29,9 +29,9 @@
-
{
fstype
:
'
ext4'
,
dev
:
'
/dev/vdc2'
,
opts
:
'
'
}
-
{
fstype
:
'
ext4'
,
dev
:
'
/dev/vdc3'
,
opts
:
'
'
}
mountFileSystems
:
-
{
fstype
:
'
ext4'
,
dev
:
'
/dev/vdc1'
,
opts
:
'
defaults,nofail'
,
name
:
'
/scratch'
}
-
{
fstype
:
'
ext4'
,
dev
:
'
/dev/vdc2'
,
opts
:
'
defaults,nofail'
,
name
:
'
/cvl
_
home'
}
-
{
fstype
:
'
ext4'
,
dev
:
'
/dev/vdc3'
,
opts
:
'
defaults,nofail'
,
name
:
'
/
usr
/local'
}
-
{
fstype
:
'
ext4'
,
dev
:
'
/dev/vdc1'
,
opts
:
'
defaults,nofail'
,
name
:
'
/
cvl/
scratch'
}
-
{
fstype
:
'
ext4'
,
dev
:
'
/dev/vdc2'
,
opts
:
'
defaults,nofail'
,
name
:
'
/cvl
/
home'
}
-
{
fstype
:
'
ext4'
,
dev
:
'
/dev/vdc3'
,
opts
:
'
defaults,nofail'
,
name
:
'
/
cvl
/local'
}
roles
:
-
{
role
:
easy-rsa-CA
}
-
{
role
:
OpenVPN-Server
}
...
...
@@ -45,6 +45,9 @@
-
hosts
:
all
vars_files
:
-
massive_var/main.yml
vars
:
x509_ca_server
:
"
{{
groups['ManagementNodes'][0]
}}"
openvpn_servers
:
"
{{
groups['ManagementNodes']
}}"
roles
:
-
{
role
:
etcHosts
,
domain
:
"
{{
ldapDomain
}}"
}
...
...
@@ -54,6 +57,7 @@
-
massive_var/passwords.yml
-
massive_var/package.yml
vars
:
x509_ca_server
:
"
{{
groups['ManagementNodes'][0]
}}"
openvpn_servers
:
"
{{
groups['ManagementNodes']
}}"
roles
:
-
{
role
:
OpenVPN-Client
}
...
...
@@ -64,6 +68,7 @@
-
massive_var/passwords.yml
-
massive_var/package.yml
vars
:
x509_ca_server
:
"
{{
groups['ManagementNodes'][0]
}}"
openvpn_servers
:
"
{{
groups['ManagementNodes']
}}"
roles
:
-
{
role
:
OpenVPN-Client
}
...
...
@@ -71,8 +76,24 @@
-
hosts
:
all
vars_files
:
-
massive_var/main.yml
-
massive_var/passwords.yml
-
massive_var/package.yml
vars
:
x509_ca_server
:
"
{{
groups['ManagementNodes'][0]
}}"
nfs_server
:
"
{{
groups['ManagementNodes'][0]
}}"
openvpn_servers
:
"
{{
groups['ManagementNodes']
}}"
groupList
:
-
{
name
:
'
ComputeNodes'
,
interface
:
'
tun0'
}
-
{
name
:
'
ComputeNodesDev'
,
interface
:
'
tun0'
}
-
{
name
:
'
ComputeNodesLarge'
,
interface
:
'
tun0'
}
-
{
name
:
'
LoginNodes'
,
interface
:
'
tun0'
}
exportList
:
-
{
name
:
'
/usr/local'
,
src
:
'
/cvl/local'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,ro,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
ro,sync'
}
-
{
name
:
'
/home'
,
src
:
'
/cvl/home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
-
{
name
:
'
/scratch'
,
src
:
'
/cvl/scratch'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
roles
:
-
{
role
:
etcHosts
,
domain
:
"
{{
ldapDomain
}}"
}
-
{
role
:
syncExports
}
-
hosts
:
'
ComputeNodes'
vars_files
:
...
...
@@ -89,13 +110,12 @@
groupList
:
-
{
name
:
'
ComputeNodes'
,
interface
:
'
tun0'
}
exportList
:
-
{
name
:
'
/usr/local'
,
src
:
'
/
usr
/local'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,ro,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
ro,
fsid=0,
sync'
}
-
{
name
:
'
/home'
,
src
:
'
/cvl
_
home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,
fsid=0,
sync'
}
-
{
name
:
'
/scratch'
,
src
:
'
/scratch'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,
fsid=0,
sync'
}
-
{
name
:
'
/usr/local'
,
src
:
'
/
cvl
/local'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,ro,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
ro,sync'
}
-
{
name
:
'
/home'
,
src
:
'
/cvl
/
home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
-
{
name
:
'
/scratch'
,
src
:
'
/
cvl/
scratch'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
roles
:
-
{
role
:
ntp
}
-
{
role
:
openLdapClient
}
-
{
role
:
syncExports
}
-
{
role
:
nfs-client
}
-
{
role
:
slurm
,
slurm_use_vpn
:
true
}
-
{
role
:
installPackage
,
preInstallation
:
"
umount
/usr/local"
,
postInstallation
:
"
mount
/usr/local"
,
yumGroupPackageList
:
[
"
CVL
Pre-installation"
,
"
CVL
Base
Packages"
],
cliFileCopy
:
{
'
src'
:
'
/tmp/gconf_path'
,
'
dest'
:
'
/etc/gconf/2/path'
}
}
...
...
@@ -115,12 +135,11 @@
groupList
:
-
{
name
:
'
ComputeNodes'
,
interface
:
'
tun0'
}
exportList
:
-
{
name
:
'
/home'
,
src
:
'
/cvl
_
home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,
fsid=0,
sync'
}
-
{
name
:
'
/scratch'
,
src
:
'
/scratch'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,
fsid=0,
sync'
}
-
{
name
:
'
/home'
,
src
:
'
/cvl
/
home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
-
{
name
:
'
/scratch'
,
src
:
'
/
cvl/
scratch'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
roles
:
-
{
role
:
ntp
}
-
{
role
:
openLdapClient
}
-
{
role
:
syncExports
}
-
{
role
:
nfs-client
}
-
{
role
:
slurm
,
slurm_use_vpn
:
true
}
-
{
role
:
installPackage
,
preInstallation
:
"
umount
/usr/local"
,
postInstallation
:
"
mount
/usr/local"
,
yumGroupPackageList
:
[
"
CVL
Pre-installation"
,
"
CVL
Base
Packages"
],
cliFileCopy
:
{
'
src'
:
'
/tmp/gconf_path'
,
'
dest'
:
'
/etc/gconf/2/path'
}
}
...
...
@@ -140,13 +159,12 @@
groupList
:
-
{
name
:
'
ComputeNodes'
,
interface
:
'
tun0'
}
exportList
:
-
{
name
:
'
/usr/local'
,
src
:
'
/
usr
/local'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,ro,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
ro,
fsid=0,
sync'
}
-
{
name
:
'
/home'
,
src
:
'
/cvl
_
home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,
fsid=0,
sync'
}
-
{
name
:
'
/scratch'
,
src
:
'
/scratch'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,
fsid=0,
sync'
}
-
{
name
:
'
/usr/local'
,
src
:
'
/
cvl
/local'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,ro,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
ro,sync'
}
-
{
name
:
'
/home'
,
src
:
'
/cvl
/
home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
-
{
name
:
'
/scratch'
,
src
:
'
/
cvl/
scratch'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
roles
:
-
{
role
:
ntp
}
-
{
role
:
openLdapClient
}
-
{
role
:
syncExports
}
-
{
role
:
nfs-client
}
-
{
role
:
slurm
,
slurm_use_vpn
:
true
}
-
{
role
:
installPackage
,
preInstallation
:
"
umount
/usr/local"
,
postInstallation
:
"
mount
/usr/local"
,
yumGroupPackageList
:
[
"
CVL
Pre-installation"
,
"
CVL
Base
Packages"
],
cliFileCopy
:
{
'
src'
:
'
/tmp/gconf_path'
,
'
dest'
:
'
/etc/gconf/2/path'
}
}
...
...
@@ -164,26 +182,11 @@
slurmqueues
:
-
{
name
:
batch
,
group
:
ComputeNodes
,
default
:
true
}
exportList
:
-
{
name
:
'
/home'
,
src
:
'
/cvl
_
home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,
fsid=0,
sync'
}
-
{
name
:
'
/home'
,
src
:
'
/cvl
/
home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,sync'
}
roles
:
-
{
role
:
syncExports
}
# - { role: OpenVPN-Client }
-
{
role
:
ntp
}
-
{
role
:
openLdapClient
}
-
{
role
:
nfs-client
}
-
{
role
:
slurm
,
slurm_use_vpn
:
true
}
-
{
role
:
installPackage
,
importRepo
:
{
command
:
"
wget
http://cvlrepo.massive.org.au/repo/cvl.repo
-O"
,
destination
:
"
/etc/yum.repos.d/cvl.repo"
},
yumGroupPackageList
:
[
'
CVL
Pre-installation'
,
'
CVL
Base
Packages'
],
cliCopy
:
{
'
run'
:
'
cp
-r
/usr/local/Modules/modulefiles/cvl
/usr/local/Modules/modulefiles/massive'
,
'
check'
:
'
/usr/local/Modules/modulefiles/massive'
}
}
-
hosts
:
"
'ComputeNodes*'
'LoginNodes'"
vars_files
:
-
massive_var/main.yml
-
massive_var/passwords.yml
-
massive_var/package.yml
vars
:
exportList
:
-
{
name
:
'
/usr/local'
,
src
:
'
/usr/local'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,ro,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
ro,fsid=0,sync'
}
-
{
name
:
'
/home'
,
src
:
'
/cvl_home'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,fsid=0,sync'
}
-
{
name
:
'
/scratch'
,
src
:
'
/scratch'
,
fstype
:
'
nfs4'
,
opts
:
'
defaults,nofail'
,
interface
:
'
tun0'
,
srvopts
:
'
rw,root_squash,fsid=0,sync'
}
roles
:
-
{
role
:
syncExports
}
This diff is collapsed.
Click to expand it.
roles/nfs-client/tasks/mountFileSystem.yml
+
0
−
5
View file @
c5522965
---
#- name: "Check mount"
# shell: mount | grep {{ item.name }}
# with_items: exportList
# register: result
-
name
:
"
Mounting
NFS
mounts"
mount
:
name={{ item.name }} src={{ hostvars[nfs_server]['ansible_'+item.interface]['ipv4']['address'] }}:{{ item.src }} fstype={{ item.fstype }} opts={{ item.opts }} state=mounted
with_items
:
exportList
...
...
This diff is collapsed.
Click to expand it.
roles/slurm/tasks/main.yml
+
1
−
1
View file @
c5522965
...
...
@@ -20,7 +20,7 @@
sudo
:
true
-
name
:
create slurm user
user
:
name=slurm group=slurm
user
:
name=slurm group=slurm
createhome=no
sudo
:
true
-
name
:
install slurm rpms
...
...
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