]> git.openstreetmap.org Git - chef.git/commitdiff
Take OTRS passwords from a data bag
authorTom Hughes <tom@compton.nu>
Sun, 6 Oct 2013 18:02:58 +0000 (19:02 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 6 Oct 2013 18:02:58 +0000 (19:02 +0100)
cookbooks/otrs/recipes/default.rb

index 55429af4d5d7cdda3c6d8b4d72d34cd5930502f5..c0f9c33e7a52af75bc098e659fb2c7d3d9b13130 100644 (file)
@@ -20,6 +20,8 @@
 include_recipe "tools"
 include_recipe "apache::ssl"
 
+passwords = data_bag_item("otrs", "passwords")
+
 package "libapache2-mod-perl2"
 package "libapache2-reload-perl"
 
@@ -40,7 +42,7 @@ group = node[:otrs][:group]
 database_cluster = node[:otrs][:database_cluster]
 database_name = node[:otrs][:database_name]
 database_user = node[:otrs][:database_user]
-database_password = node[:otrs][:database_password]
+database_password = passwords[node[:otrs][:database_password]]
 site = node[:otrs][:site]
 
 remote_file "/tmp/otrs-#{version}.tar.bz2" do