]> git.openstreetmap.org Git - chef.git/blobdiff - roles/nominatim-master.rb
reworke nominatim cookbook for cmake version of nominatim
[chef.git] / roles / nominatim-master.rb
index 85baaf89258e5d590b606df4f715eafe5a081771..1961d835cab74960dc71885663419e72b6b32ba5 100644 (file)
@@ -8,38 +8,31 @@ default_attributes(
         :wal_level => "hot_standby",
         :archive_mode => "on",
         :archive_command => "/bin/cp %p /data/postgresql-archive/%f",
-        :max_wal_senders => "5",
-        :late_authentication_rules => [
-          { :database => "replication", :user => "replication", :address => "146.179.159.164/32" }
-        ]
+        :max_wal_senders => "5"
       }
     }
   },
   :nominatim => {
-    :enabled => true,
+    :state => "master",
     :enable_backup => true
   },
   :rsyncd => {
     :modules => {
       :archive => {
         :comment => "WAL Archive",
-        :path => "/data/postgresql-archive",
         :read_only => true,
         :write_only => false,
         :list => false,
         :uid => "postgres",
         :gid => "postgres",
-        :transfer_logging => false,
-        :hosts_allow => [
-          "146.179.159.164"
-        ]
+        :transfer_logging => false
       }
     }
   }
 )
 
 run_list(
-  "role[nominatim]",
+  "recipe[rsyncd]",
   "recipe[nominatim::master]",
-  "recipe[rsyncd]"
+  "role[nominatim-base]"
 )