From 201444b3bed16f257ed65b18e22d192c9460d661 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 9 Sep 2018 00:14:17 +0100 Subject: [PATCH] imagery: add robots.txt --- cookbooks/imagery/files/default/robots.txt | 2 ++ cookbooks/imagery/resources/site.rb | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 cookbooks/imagery/files/default/robots.txt diff --git a/cookbooks/imagery/files/default/robots.txt b/cookbooks/imagery/files/default/robots.txt new file mode 100644 index 000000000..53128737f --- /dev/null +++ b/cookbooks/imagery/files/default/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /layer/ diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index 8cb951389..e18508491 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -55,6 +55,13 @@ action :create do variables :title => new_resource.title end + cookbook_file "/srv/#{new_resource.site}/robots.txt" do + source "robots.txt" + user "root" + group "root" + mode 0o644 + end + cookbook_file "/srv/#{new_resource.site}/imagery.css" do source "imagery.css" user "root" -- 2.39.5