diff --git a/modules/openstack_project/files/disallow_robots.txt b/modules/openstack_project/files/disallow_robots.txt new file mode 100644 index 0000000000..1f53798bb4 --- /dev/null +++ b/modules/openstack_project/files/disallow_robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / diff --git a/modules/openstack_project/manifests/static.pp b/modules/openstack_project/manifests/static.pp index 56fc6d24b1..697094d838 100644 --- a/modules/openstack_project/manifests/static.pp +++ b/modules/openstack_project/manifests/static.pp @@ -61,10 +61,28 @@ class openstack_project::static ( ensure => directory, } + file { '/srv/static/logs/robots.txt': + ensure => present, + owner => 'root', + group => 'root', + mode => '0444', + source => 'puppet:///modules/openstack_project/disallow_robots.txt', + require => File['/srv/static/logs'], + } + file { '/srv/static/docs-draft': ensure => directory, } + file { '/srv/static/docs-draft/robots.txt': + ensure => present, + owner => 'root', + group => 'root', + mode => '0444', + source => 'puppet:///modules/openstack_project/disallow_robots.txt', + require => File['/srv/static/docs-draft'], + } + cron { 'gziplogs': user => 'root', hour => '*/6',