]> git.pld-linux.org Git - packages/chef.git/blobdiff - FHS.patch
do not package /etc/chef/chef.rb
[packages/chef.git] / FHS.patch
index 9ae155b2aafa09acd33998a878df8b56d6dee95a..dbb20b6f695c3b29c1632e6511d96690859fa357 100644 (file)
--- a/FHS.patch
+++ b/FHS.patch
@@ -1,83 +1,42 @@
---- chef-11.4.4.gem/lib/chef/config.rb 2013-04-30 01:35:11.703271336 +0300
-+++ chef-11.4.4/lib/chef/config.rb     2013-04-30 01:38:24.665295683 +0300
-@@ -141,20 +141,20 @@
-     # Where the cookbooks are located. Meaning is somewhat context dependent between
-     # knife, chef-client, and chef-solo.
--    cookbook_path [ platform_specific_path("/var/chef/cookbooks"),
--                    platform_specific_path("/var/chef/site-cookbooks") ]
-+    cookbook_path [ platform_specific_path("/var/lib/chef/cookbooks"),
-+                    platform_specific_path("/var/lib/chef/site-cookbooks") ]
-     # An array of paths to search for knife exec scripts if they aren't in the current directory
-     script_path []
-     # Where files are stored temporarily during uploads
--    sandbox_path "/var/chef/sandboxes"
-+    sandbox_path "/var/lib/chef/sandboxes"
-     # Where cookbook files are stored on the server (by content checksum)
--    checksum_path "/var/chef/checksums"
-+    checksum_path "/var/lib/chef/checksums"
+--- chef-11.14.2/lib/chef/config.rb    2014-12-04 18:09:43.557089359 +0200
++++ chef-11.14.2/lib/chef/config.rb    2014-12-04 18:40:15.075764026 +0200
+@@ -181,7 +181,7 @@
+     # Location of cookbooks on disk. String or array of strings.
+     # Defaults to <chef_repo_path>/cookbooks.  If chef_repo_path
+-    # is not specified, this is set to [/var/chef/cookbooks, /var/chef/site-cookbooks]).
++    # is not specified, this is set to [/var/lib/chef/cookbooks, /var/lib/chef/site-cookbooks]).
+     default(:cookbook_path) do
+       if self.configuration[:chef_repo_path]
+         derive_path_from_chef_repo_path('cookbooks')
+@@ -241,9 +241,9 @@
+         "#{config_dir}local-mode-cache"
+       else
+         primary_cache_root = platform_specific_path("/var")
+-        primary_cache_path = platform_specific_path("/var/chef")
+-        # Use /var/chef as the cache path only if that folder exists and we can read and write
+-        # into it, or /var exists and we can read and write into it (we'll create /var/chef later).
++        primary_cache_path = platform_specific_path("/var/cache/chef")
++        # Use /var/cache/chef as the cache path only if that folder exists and we can read and write
++        # into it, or /var exists and we can read and write into it (we'll create /var/cache/chef later).
+         # Otherwise, we'll create .chef under the user's home directory and use that as
+         # the cache path.
+         unless path_accessible?(primary_cache_path) || path_accessible?(primary_cache_root)
+@@ -268,10 +268,10 @@
+     default(:checksum_path) { path_join(cache_path, "checksums") }
  
      # Where chef's cache files should be stored
--    file_cache_path platform_specific_path("/var/chef/cache")
-+    file_cache_path platform_specific_path("/var/cache/chef")
-     # By default, chef-client (or solo) creates a lockfile in
-     # `file_cache_path`/chef-client-running.pid
-@@ -166,7 +166,7 @@
-     lockfile nil
+-    default(:file_cache_path) { path_join(cache_path, "cache") }
++    default(:file_cache_path) { cache_path }
  
      # Where backups of chef-managed files should go
--    file_backup_path platform_specific_path("/var/chef/backup")
-+    file_backup_path platform_specific_path("/var/lib/chef/backup")
-     ## Daemonization Settings ##
-     # What user should Chef run as?
-@@ -202,7 +202,7 @@
-     # toggle info level log items that can create a lot of output
-     verbose_logging true
-     node_name nil
--    node_path "/var/chef/node"
-+    node_path "/var/lib/chef/node"
-     diff_disable            false
-     diff_filesize_threshold 10000000
-     diff_output_threshold   1000000
-@@ -239,9 +239,9 @@
+-    default(:file_backup_path) { path_join(cache_path, "backup") }
++    default(:file_backup_path) { '/var/lib/chef/backup' }
  
-     # Where should chef-solo look for role files?
--    role_path platform_specific_path("/var/chef/roles")
-+    role_path platform_specific_path("/var/lib/chef/roles")
--    data_bag_path platform_specific_path("/var/chef/data_bags")
-+    data_bag_path platform_specific_path("/var/lib/chef/data_bags")
-     # Where should chef-solo download recipes from?
-     recipe_url nil
-@@ -286,8 +286,8 @@
-     # Server Signing CA
+     # The chef-client (or solo) lockfile.
      #
-     # In truth, these don't even have to change
--    signing_ca_cert "/var/chef/ca/cert.pem"
--    signing_ca_key "/var/chef/ca/key.pem"
-+    signing_ca_cert "/var/lib/chef/ca/cert.pem"
-+    signing_ca_key "/var/lib/chef/ca/key.pem"
-     signing_ca_user nil
-     signing_ca_group nil
-     signing_ca_country "US"
-@@ -318,7 +318,7 @@
-     syntax_check_cache_path nil
-     # Deprecated:
--    cache_options({ :path => platform_specific_path("/var/chef/cache/checksums") })
-+    cache_options({ :path => platform_specific_path("/var/cache/chef/checksums") })
-     # Set to false to silence Chef 11 deprecation warnings:
-     chef11_deprecation_warnings true
---- chef-11.4.4.gem/lib/chef/handler/json_file.rb      2013-04-30 01:35:11.709938303 +0300
-+++ chef-11.4.4/lib/chef/handler/json_file.rb  2013-04-30 01:38:24.665295683 +0300
+--- chef-11.8.0/lib/chef/handler/json_file.rb~ 2013-12-21 17:25:17.000000000 +0200
++++ chef-11.8.0/lib/chef/handler/json_file.rb  2013-12-21 17:25:58.665209433 +0200
 @@ -27,7 +27,7 @@
  
        def initialize(config={})
This page took 0.043422 seconds and 4 git commands to generate.