diff --git a/bin/generate_redmine_page.pl b/bin/generate_redmine_page.pl
index 2d43243..3a6f26c 100755
--- a/bin/generate_redmine_page.pl
+++ b/bin/generate_redmine_page.pl
@@ -220,50 +220,53 @@ if ( "$sls_files" ne "0" ){
print "$redmine_header\n";
}
# print "$javascript\n";
- # print "
\n";
- print "|# ";
- print "|Hostname ";
+ print "\n";
+# print "|# ";
+# print "|Hostname ";
+ print "# | Hostname | ";
my $td=1;
foreach my $entry (sort(@wanted)){
- print "|$entry ";
+ print "$entry";
}
- print "|\n";
- print "|---:|--- ";
- foreach my $entry (sort(@wanted)){
- print "|--- ";
- }
- print "|\n";
+ print " | \n";
+ print "\n";
+# foreach my $entry (sort(@wanted)){
+# print "|--- ";
+# }
+# print "|\n";
for my $file (sort (@$sls_files)){
my $hostname=basename("$file",'.sls');
$hostname=~ s/_/./g;
- print "|$i |$hostname ";
+ print "$i | $hostname";
my $yaml = YAML::Tiny->read("$pillar_id_path/$file");
my $grains=$yaml->[0];
# print Data::Dumper->Dump([$grains])."\n";
foreach my $entry (sort(@wanted)){
- print "|";
+ print "";
if (defined($grains->{'grains'}->{$entry})){
my $type=reftype $grains->{'grains'}->{$entry};
if (defined($type) && "$type" eq 'ARRAY'){
+ print "\n";
if (@{$grains->{'grains'}->{$entry}} > 0){
foreach my $string (sort(@{$grains->{'grains'}->{$entry}})){
if ("$string" =~ m/^http.*/){
- print "[$string]($string) ";
+ print "- [$string]($string)
\n";
}
else {
if ("$entry" eq "partners"){
- print "[$string](#$string) ";
+ print "- [$string](#$string)
\n";
}
elsif ("$entry" eq "responsible"){
- print "[$string]($freeipa_user_url/$string) ";
+ print "- [$string]($freeipa_user_url/$string)
\n";
}
else {
- print "$string ";
+ print "- $string
\n";
}
}
}
}
+ print " \”";
}
else {
print "$grains->{'grains'}->{$entry}" if ($grains->{'grains'}->{$entry} ne "");
@@ -273,9 +276,10 @@ if ( "$sls_files" ne "0" ){
print " ";
}
}
- print "|\n";
+ print " |
\n";
$i++;
}
+ print "
\n";
}
-print "$footer";
+print "$footer\n";
diff --git a/pillar/role/common/nginx.sls b/pillar/role/common/nginx.sls
index 3b093f8..b663cdb 100644
--- a/pillar/role/common/nginx.sls
+++ b/pillar/role/common/nginx.sls
@@ -12,6 +12,7 @@ nginx:
use: epoll
http:
gzip: 'on'
+ server_tokens: 'off'
include:
- mime.types
- conf.d/*.conf