From ee2ccdb351eeaa09fde5a9667958cac94977fa0c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 21 May 2016 10:01:22 +0100 Subject: [PATCH 1/1] Make users-agreed a template --- cookbooks/planet/recipes/replication.rb | 7 +++++++ .../users-agreed => templates/default/users-agreed.erb} | 0 2 files changed, 7 insertions(+) rename cookbooks/planet/{files/default/replication-bin/users-agreed => templates/default/users-agreed.erb} (100%) diff --git a/cookbooks/planet/recipes/replication.rb b/cookbooks/planet/recipes/replication.rb index fef4e017e..adb9bb7e1 100644 --- a/cookbooks/planet/recipes/replication.rb +++ b/cookbooks/planet/recipes/replication.rb @@ -40,6 +40,13 @@ remote_directory "/usr/local/bin" do files_mode 0755 end +template "/usr/local/bin/users-agreed" do + source "users-agreed.erb" + owner "root" + group "root" + mode 0755 +end + remote_directory "/store/planet/replication" do source "replication-cgi" owner "root" diff --git a/cookbooks/planet/files/default/replication-bin/users-agreed b/cookbooks/planet/templates/default/users-agreed.erb similarity index 100% rename from cookbooks/planet/files/default/replication-bin/users-agreed rename to cookbooks/planet/templates/default/users-agreed.erb -- 2.39.5