]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
file permissions -- no longer force restrictive chmod on the rsync of /srv/leap/...
authorelijah <elijah@riseup.net>
Thu, 11 Jul 2013 05:03:30 +0000 (22:03 -0700)
committerelijah <elijah@riseup.net>
Thu, 11 Jul 2013 05:03:30 +0000 (22:03 -0700)
lib/leap_cli/commands/deploy.rb
lib/leap_cli/remote/rsync_plugin.rb
lib/leap_cli/version.rb

index 8130111c99d1b7effdb72248bbf78901483b60fb..239af2a08aa180b7bdcea15b6d1ea68d996834f9 100644 (file)
@@ -63,7 +63,11 @@ module LeapCli
         node = manager.node(server.host)
         hiera_file = Path.relative_path([:hiera, node.name])
         ssh.leap.log hiera_file + ' -> ' + node.name + ':' + dest_dir + '/hiera.yaml'
-        {:source => hiera_file, :dest => dest_dir + '/hiera.yaml'}
+        {
+          :source => hiera_file,
+          :dest => dest_dir + '/hiera.yaml',
+          :flags => "-rltp --chmod=u+rX,go-rwx"
+        }
       end
     end
 
@@ -80,7 +84,7 @@ module LeapCli
             :dest => dest_dir,
             :excludes => "*",
             :includes => calculate_includes_from_files(files_to_sync),
-            :flags => "--relative --dirs --delete --delete-excluded --filter='protect hiera.yaml' --copy-links"
+            :flags => "-ltp --chmod=u+rX,go-rwx --relative --dirs --delete --delete-excluded --filter='protect hiera.yaml' --copy-links"
           }
         else
           nil
@@ -97,7 +101,7 @@ module LeapCli
           :chdir => Path.platform,
           :excludes => '*',
           :includes => ['/bin', '/bin/**', '/puppet', '/puppet/**'],
-          :flags => "--relative --dirs --delete --copy-links"
+          :flags => "-rlt --relative --delete --copy-links"
         }
       end
     end
index 495ca1dc2a6842ba60c03e13a233889b135783ac..48f82d35a556569602f597d3f162a4e463bac868 100644 (file)
@@ -14,7 +14,7 @@ module LeapCli; module Remote; module RsyncPlugin
   #   {:source => '', :dest => '', :flags => '', :includes => [], :excludes => []}
   #
   def update
-    rsync = RsyncCommand.new(:logger => logger, :flags => '-rltp --chmod=u+rX,go-rwx')
+    rsync = RsyncCommand.new(:logger => logger)
     rsync.asynchronously(find_servers) do |server|
       options = yield server
       next unless options
index 072dfbd4f0b127688ae39032445a02a1ca0c205c..7f019c49d6b9010fb544348068a81f5a894a4d97 100644 (file)
@@ -1,7 +1,7 @@
 module LeapCli
   unless defined?(LeapCli::VERSION)
-    VERSION = '1.1.2'
-    COMPATIBLE_PLATFORM_VERSION = '0.2.2'..'1.99'
+    VERSION = '1.1.3'
+    COMPATIBLE_PLATFORM_VERSION = '0.2.3'..'1.99'
     SUMMARY = 'Command line interface to the LEAP platform'
     DESCRIPTION = 'The command "leap" can be used to manage a bevy of servers running the LEAP platform from the comfort of your own home.'
     LOAD_PATHS = ['lib', 'vendor/certificate_authority/lib', 'vendor/rsync_command/lib']