Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tsotne Gozalishvili
ansible-playbook-perfsonar
Commits
9af4be8e
Unverified
Commit
9af4be8e
authored
Aug 14, 2020
by
Antoine Delvaux
Browse files
Renaming perfSONAR roles groups so that they're fully used by the
inventory.
parent
8abcb297
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
9af4be8e
...
...
@@ -25,7 +25,7 @@ Set up perfSONAR variables by running the defaults.sh script and then editing th
```
./defaults.sh
vi inventory/group_vars/
all/perfsonar/
*
vi inventory/group_vars/
ps_
*
```
Set up individual host variables with the lsregistration.yml template
...
...
@@ -55,7 +55,7 @@ ansible all -m ping
Manage PWA users:
```
vi /inventory/group_vars/
all/perfsonar/ps_pwa
.yml
vi /inventory/group_vars/
ps_pconfig_web_admin
.yml
ansible-playbook \
--limit 'ps-psconfig-web-admin' --tags 'ps::pwa_users'\
perfsonar.yml
...
...
defaults.sh
View file @
9af4be8e
...
...
@@ -5,46 +5,44 @@ if [ "$1" == "" ]; then
else
directory
=
$1
fi
#echo $directory/group_vars/all/perfsonar/ps_archive.yml
#exit
mkdir
-p
$directory
/group_vars
/all/perfsonar
mkdir
-p
$directory
/host_vars
/
mkdir
-p
$directory
/group_vars
mkdir
-p
$directory
/host_vars
wget
-q
-P
$directory
-nc
\
https://raw.githubusercontent.com/perfsonar/ansible-playbook-perfsonar/master/inventory/hosts
if
!
[
-f
$directory
/group_vars/
all/perfsonar/
ps_archive.yml
]
;
then
if
!
[
-f
$directory
/group_vars/ps_archive.yml
]
;
then
cp
roles/ansible-role-perfsonar-archive/defaults/main.yml
\
$directory
/group_vars/
all/perfsonar/
ps_archive.yml
$directory
/group_vars/ps_archive.yml
fi
if
!
[
-f
$directory
/group_vars/
all/perfsonar/
ps_installer.yml
]
;
then
if
!
[
-f
$directory
/group_vars/ps_installer.yml
]
;
then
cp
roles/ansible-role-perfsonar-installer/defaults/main.yml
\
$directory
/group_vars/
all/perfsonar/
ps_installer.yml
$directory
/group_vars/ps_installer.yml
fi
if
!
[
-f
$directory
/group_vars/
all/perfsonar/
ps_maddash.yml
]
;
then
if
!
[
-f
$directory
/group_vars/ps_maddash.yml
]
;
then
cp
roles/ansible-role-perfsonar-maddash/defaults/main.yml
\
$directory
/group_vars/
all/perfsonar/
ps_maddash.yml
$directory
/group_vars/ps_maddash.yml
fi
if
!
[
-f
$directory
/group_vars/
all/perfsonar/
ps_psconfig-publisher.yml
]
;
then
if
!
[
-f
$directory
/group_vars/ps_psconfig-publisher.yml
]
;
then
cp
roles/ansible-role-perfsonar-psconfig-publisher/defaults/main.yml
\
$directory
/group_vars/
all/perfsonar/
ps_psconfig
-
publisher.yml
$directory
/group_vars/ps_psconfig
_
publisher.yml
fi
if
!
[
-f
$directory
/group_vars/
all/perfsonar/
ps_pwa.yml
]
;
then
if
!
[
-f
$directory
/group_vars/ps_pwa.yml
]
;
then
cp
roles/ansible-role-perfsonar-psconfig-web-admin/defaults/main.yml
\
$directory
/group_vars/
all/perfsonar/ps_pwa
.yml
$directory
/group_vars/
ps_psconfig_web_admin
.yml
fi
if
!
[
-f
$directory
/group_vars/
all/perfsonar/
ps_testpoint.yml
]
;
then
if
!
[
-f
$directory
/group_vars/ps_testpoint.yml
]
;
then
cp
roles/ansible-role-perfsonar-testpoint/defaults/main.yml
\
$directory
/group_vars/
all/perfsonar/
ps_testpoint.yml
$directory
/group_vars/ps_testpoint.yml
fi
if
!
[
-f
$directory
/group_vars/
all/perfsonar/
ps_toolkit.yml
]
;
then
if
!
[
-f
$directory
/group_vars/ps_toolkit.yml
]
;
then
cp
roles/ansible-role-perfsonar-toolkit/defaults/main.yml
\
$directory
/group_vars/
all/perfsonar/
ps_toolkit.yml
$directory
/group_vars/ps_toolkit.yml
fi
inventory/hosts
View file @
9af4be8e
...
...
@@ -14,14 +14,15 @@ ansible_become=True
ansible_become_user=root
#ansible_become_method=su
[ps
-
testpoint
s
]
[ps
_
testpoint]
[ps
-
toolkit
s
]
[ps
_
toolkit]
[ps
-
archive
s
]
[ps
_
archive]
[ps
-
maddash]
[ps
_
maddash]
[ps-psconfig-publishers]
[ps_psconfig_publisher]
[ps_psconfig_web_admin]
[ps-psconfig-web-admin]
perfsonar.yml
View file @
9af4be8e
...
...
@@ -4,7 +4,7 @@
tags
:
-
archives
hosts
:
-
ps
-
archive
s
-
ps
_
archive
roles
:
-
ansible-role-perfsonar-archive
...
...
@@ -12,7 +12,7 @@
tags
:
-
maddash
hosts
:
-
ps
-
maddash
-
ps
_
maddash
roles
:
-
ansible-role-perfsonar-maddash
...
...
@@ -20,7 +20,7 @@
tags
:
-
testpoints
hosts
:
-
ps
-
testpoint
s
-
ps
_
testpoint
roles
:
-
ansible-role-perfsonar-testpoint
...
...
@@ -28,7 +28,7 @@
tags
:
-
toolkits
hosts
:
-
ps
-
toolkit
s
-
ps
_
toolkit
roles
:
-
ansible-role-perfsonar-toolkit
...
...
@@ -36,7 +36,7 @@
tags
:
-
psconfig-publishers
hosts
:
-
ps
-
psconfig
-
publisher
s
-
ps
_
psconfig
_
publisher
roles
:
-
ansible-role-perfsonar-psconfig-publisher
...
...
@@ -44,7 +44,7 @@
tags
:
-
psconfig-web-admin
hosts
:
-
ps
-
psconfig
-
web
-
admin
-
ps
_
psconfig
_
web
_
admin
roles
:
-
ansible-role-perfsonar-psconfig-web-admin
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment