enable overriding the mime-type for entities/index.html using extended attributes
This commit is contained in:
parent
2a082b0f92
commit
14efc7d990
4 changed files with 9 additions and 3 deletions
3
eumd-common/overlay/etc/mirror-mdq/post.d/20-mime.sh
Executable file
3
eumd-common/overlay/etc/mirror-mdq/post.d/20-mime.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
attr -q -s Content-Type -V "application/xml" entities/index.html
|
|
@ -177,7 +177,7 @@ class eidas_hsm_client($luna_version="6.2") {
|
||||||
}
|
}
|
||||||
|
|
||||||
class md_signer($dest_host=undef,$dest_dir="",$version="eidas") {
|
class md_signer($dest_host=undef,$dest_dir="",$version="eidas") {
|
||||||
package { ['xsltproc','libxml2-utils']: ensure => latest } ->
|
package { ['xsltproc','libxml2-utils','attr']: ensure => latest } ->
|
||||||
sunet::pyff {$name:
|
sunet::pyff {$name:
|
||||||
version => $version,
|
version => $version,
|
||||||
pound_and_varnish => false,
|
pound_and_varnish => false,
|
||||||
|
@ -193,7 +193,7 @@ class md_signer($dest_host=undef,$dest_dir="",$version="eidas") {
|
||||||
ssh_privkey => safe_hiera("publisher_ssh_privkey")
|
ssh_privkey => safe_hiera("publisher_ssh_privkey")
|
||||||
} ->
|
} ->
|
||||||
sunet::scriptherder::cronjob { "${name}-publish":
|
sunet::scriptherder::cronjob { "${name}-publish":
|
||||||
cmd => "env RSYNC_ARGS='--chown=www-data:www-data --chmod=D0755,F0664' /usr/local/bin/mirror-mdq.sh http://localhost root@${dest_host}:${dest_dir}",
|
cmd => "env RSYNC_ARGS='--chown=www-data:www-data --chmod=D0755,F0664 --xattrs' /usr/local/bin/mirror-mdq.sh http://localhost root@${dest_host}:${dest_dir}",
|
||||||
minute => '*/5',
|
minute => '*/5',
|
||||||
ok_criteria => ['exit_status=0'],
|
ok_criteria => ['exit_status=0'],
|
||||||
warn_criteria => ['max_age=30m']
|
warn_criteria => ['max_age=30m']
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
attr -s Content-Type -V "application/xml" entities/index.html
|
attr -q -s Content-Type -V "application/xml" entities/index.html
|
||||||
|
|
3
natmd-common/overlay/etc/mirror-mdq/post.d/20-mime.sh
Executable file
3
natmd-common/overlay/etc/mirror-mdq/post.d/20-mime.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
attr -q -s Content-Type -V "application/xml" entities/index.html
|
Loading…
Add table
Reference in a new issue