forked from perfsonar/ansible-playbook-perfsonar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.sh
executable file
·50 lines (40 loc) · 1.49 KB
/
defaults.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#/bin/sh
if [ "$1" == "" ]; then
directory="inventory"
else
directory=$1
fi
mkdir -p $directory/group_vars
mkdir -p $directory/host_vars
if ! [ -e "$directory/hosts" ]; then
curl -s -o "$directory/hosts" \
"https://raw.githubusercontent.com/perfsonar/ansible-playbook-perfsonar/master/inventory/hosts"
fi
if ! [ -f $directory/group_vars/ps_archive.yml ]; then
cp roles/ansible-role-perfsonar-archive/defaults/main.yml \
$directory/group_vars/ps_archive.yml
fi
if ! [ -f $directory/group_vars/ps_installer.yml ]; then
cp roles/ansible-role-perfsonar-installer/defaults/main.yml \
$directory/group_vars/ps_installer.yml
fi
if ! [ -f $directory/group_vars/ps_maddash.yml ]; then
cp roles/ansible-role-perfsonar-maddash/defaults/main.yml \
$directory/group_vars/ps_maddash.yml
fi
if ! [ -f $directory/group_vars/ps_psconfig-publisher.yml ]; then
cp roles/ansible-role-perfsonar-psconfig-publisher/defaults/main.yml \
$directory/group_vars/ps_psconfig_publisher.yml
fi
if ! [ -f $directory/group_vars/ps_pwa.yml ]; then
cp roles/ansible-role-perfsonar-psconfig-web-admin/defaults/main.yml \
$directory/group_vars/ps_psconfig_web_admin.yml
fi
if ! [ -f $directory/group_vars/ps_testpoint.yml ]; then
cp roles/ansible-role-perfsonar-testpoint/defaults/main.yml \
$directory/group_vars/ps_testpoint.yml
fi
if ! [ -f $directory/group_vars/ps_toolkit.yml ]; then
cp roles/ansible-role-perfsonar-toolkit/defaults/main.yml \
$directory/group_vars/ps_toolkit.yml
fi