-
Notifications
You must be signed in to change notification settings - Fork 12
/
.generate_toc.sh
executable file
·84 lines (67 loc) · 1.91 KB
/
.generate_toc.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
echo "Nectar Research Cloud Orchestration Templates
==============
This is a repository of sample [Heat](https://wiki.openstack.org/wiki/Heat)
templates for use on the Nectar cloud.
The aim of this collection is to introduce many of the patterns which can be
used together for building complex environments and to cover all the services
that the Nectar Research Cloud offers.
These have all been tested successfully on the Nectar Research Cloud at time
of commit, but you will need to have specific quota for many of services used.
Services covered in this repository are:
* Compute (Nova)
* Volume Storage (Cinder)
* Object Storage (Swift/S3)
* Image (Glance)
* Advanced Networking (Neutron)
* Database (Trove)
* DNS (Designate)
* Aodh (Alarming)
"
echo
echo "## Resources"
echo
for R in $(grep 'type: OS::' *.yaml | awk '{print $NF}' | sort | uniq); do
echo "[$R](https://docs.openstack.org/heat/latest/template_guide/openstack.html#$R)"
for F in $(grep -l "type: $R" *.yaml); do
echo "* [$F](/$F)"
done
echo
done
for R in $(grep 'type: AWS::' *.yaml | awk '{print $NF}' | sort | uniq); do
echo "[$R](https://docs.openstack.org/heat/latest/template_guide/cfn.html#$R)"
for F in $(grep -l "type: $R" *.yaml); do
echo "* [$F](/$F)"
done
echo
done
echo
echo "## Functions"
echo
for R in get_attr get_file get_param get_resource list_join str_replace; do
echo "[$R](https://docs.openstack.org/heat/latest/template_guide/hot_spec.html#$R)"
for F in $(grep -l "$R" *.yaml); do
echo "* [$F](/$F)"
done
echo
done
echo
echo "## Pseudo-Parameters"
echo
for R in OS::stack_name OS::stack_id; do
echo "$R"
for F in $(grep -l "$R" *.yaml); do
echo "* [$F](/$F)"
done
echo
done
echo
echo "## Custom-constraints"
echo
for R in $(grep 'custom_constraint:' *.yaml | awk '{print $NF}' | sort | uniq); do
echo "$R"
for F in $(grep -l "$R" *.yaml); do
echo "* [$F](/$F)"
done
echo
done