Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4092529
D3329.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3329.diff
View Options
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,9 @@
roles/webserver-core/nginx/files/ocsp-ca-certs.pem \
.git/hooks/pre-commit
-roles/webserver-content/init.sls:
+roles/webserver-content/init.sls: webserver-content-index
+
+webserver-content-index:
tmpfile=`mktemp /tmp/make-rOPS-generate-webcontent-index.XXXXXX` ; \
utils/generate-webcontent-index.py > "$$tmpfile" ;\
${MV} "$$tmpfile" roles/webserver-content/init.sls
diff --git a/utils/generate-webcontent-index.py b/utils/generate-webcontent-index.py
--- a/utils/generate-webcontent-index.py
+++ b/utils/generate-webcontent-index.py
@@ -45,6 +45,8 @@
print("\ninclude:")
for site in get_sites(pillar_file):
print(" - {}".format(site))
+ print("")
+ print(" - ._generic")
def get_pillar_entry(pillar_file, key):
@@ -55,9 +57,9 @@
def get_sites(pillar_file):
sites = get_pillar_entry(pillar_file, "web_content_sls")
- return sorted(
+ return sorted(set(
[site for sublist in [sites[role] for role in sites] for site in sublist]
- )
+ ))
def print_header(file_to_update):
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 7, 00:42 (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2396402
Default Alt Text
D3329.diff (1 KB)
Attached To
Mode
D3329: Sync role webserver-content index generation with current pillar and role
Attached
Detach File
Event Timeline
Log In to Comment