svn commit: r500452 - in head/sysutils: . rubygem-bolt rubygem-bolt/files

Romain Tartière romain at FreeBSD.org
Tue Apr 30 01:25:38 UTC 2019


Author: romain
Date: Tue Apr 30 01:25:36 2019
New Revision: 500452
URL: https://svnweb.freebsd.org/changeset/ports/500452

Log:
  New port: sysutils/rubygem-bolt
  
  Bolt is a Ruby command-line tool for executing commands, scripts, and tasks on
  remote systems using SSH and WinRM.
  
    - Executes commands on remote *nix and Windows systems.
    - Distributes and execute scripts, such as Bash, PowerShell, Python.
    - Scales to more than 1000 concurrent connections.
    - Supports industry standard protocols (SSH/SCP, WinRM/PSRP) and
      authentication methods (password, publickey).
  
  WWW: https://github.com/puppetlabs/bolt
  
  With hat:	puppet

Added:
  head/sysutils/rubygem-bolt/
  head/sysutils/rubygem-bolt/Makefile   (contents, props changed)
  head/sysutils/rubygem-bolt/distinfo   (contents, props changed)
  head/sysutils/rubygem-bolt/files/
  head/sysutils/rubygem-bolt/files/patch-bolt.gemspec   (contents, props changed)
  head/sysutils/rubygem-bolt/pkg-descr   (contents, props changed)
  head/sysutils/rubygem-bolt/pkg-message   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Tue Apr 30 00:35:35 2019	(r500451)
+++ head/sysutils/Makefile	Tue Apr 30 01:25:36 2019	(r500452)
@@ -1119,6 +1119,7 @@
     SUBDIR += rsyslog8
     SUBDIR += rtty
     SUBDIR += rubygem-backup
+    SUBDIR += rubygem-bolt
     SUBDIR += rubygem-bosh-gen
     SUBDIR += rubygem-bundler
     SUBDIR += rubygem-bundler1

Added: head/sysutils/rubygem-bolt/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/rubygem-bolt/Makefile	Tue Apr 30 01:25:36 2019	(r500452)
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+PORTNAME=	bolt
+PORTVERSION=	1.18.0
+CATEGORIES=	sysutils rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	puppet at FreeBSD.org
+COMMENT=	Execute commands remotely over SSH and WinRM
+
+LICENSE=	APACHE20
+
+RUN_DEPENDS=	puppet:sysutils/puppet6 \
+		r10k:sysutils/rubygem-r10k \
+		rubygem-addressable>=2.5:www/rubygem-addressable \
+		rubygem-CFPropertyList>=2.2:devel/rubygem-CFPropertyList \
+		rubygem-concurrent-ruby>=1.0:devel/rubygem-concurrent-ruby \
+		rubygem-docker-api>=1.34:net/rubygem-docker-api \
+		rubygem-hiera-eyaml>=3:sysutils/rubygem-hiera-eyaml \
+		rubygem-logging>=2.2:devel/rubygem-logging \
+		rubygem-net-scp>=1.2:security/rubygem-net-scp \
+		rubygem-net-ssh>=4.0:security/rubygem-net-ssh \
+		rubygem-orchestrator_client>=0.3:net/rubygem-orchestrator_client \
+		rubygem-puppet-resource_api>=0:devel/rubygem-puppet-resource_api \
+		rubygem-ruby_smb>=0:net/rubygem-ruby_smb \
+		rubygem-terminal-table>=1.8:textproc/rubygem-terminal-table \
+		rubygem-winrm-fs>=1.3:sysutils/rubygem-winrm-fs \
+		rubygem-winrm>=2.0:sysutils/rubygem-winrm
+
+USES=		gem shebangfix
+USE_RUBY=	yes
+
+ruby_OLD_CMD+=	/opt/puppetlabs/puppet/bin/ruby
+SHEBANG_FILES=	libexec/*
+
+PLIST_FILES=	bin/bolt \
+		bin/bolt-inventory-pdb
+
+.include <bsd.port.mk>

Added: head/sysutils/rubygem-bolt/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/rubygem-bolt/distinfo	Tue Apr 30 01:25:36 2019	(r500452)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1556586979
+SHA256 (rubygem/bolt-1.18.0.gem) = 948640ecb3b1abfbee7cb54c077fd7af5463ff6d7e6209fc930be4e6f59d2a58
+SIZE (rubygem/bolt-1.18.0.gem) = 112128

Added: head/sysutils/rubygem-bolt/files/patch-bolt.gemspec
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/rubygem-bolt/files/patch-bolt.gemspec	Tue Apr 30 01:25:36 2019	(r500452)
@@ -0,0 +1,35 @@
+--- bolt.gemspec.orig	2019-03-08 16:12:11 UTC
++++ bolt.gemspec
+@@ -24,8 +24,8 @@ Gem::Specification.new do |s|
+     s.specification_version = 4
+ 
+     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+-      s.add_runtime_dependency(%q<addressable>.freeze, ["~> 2.5"])
+-      s.add_runtime_dependency(%q<CFPropertyList>.freeze, ["~> 2.2"])
++      s.add_runtime_dependency(%q<addressable>.freeze, [">= 2.5"])
++      s.add_runtime_dependency(%q<CFPropertyList>.freeze, [">= 2.2"])
+       s.add_runtime_dependency(%q<concurrent-ruby>.freeze, ["~> 1.0"])
+       s.add_runtime_dependency(%q<docker-api>.freeze, ["~> 1.34"])
+       s.add_runtime_dependency(%q<logging>.freeze, ["~> 2.2"])
+@@ -45,8 +45,8 @@ Gem::Specification.new do |s|
+       s.add_development_dependency(%q<rake>.freeze, ["~> 10.0"])
+       s.add_development_dependency(%q<rspec>.freeze, ["~> 3.0"])
+     else
+-      s.add_dependency(%q<addressable>.freeze, ["~> 2.5"])
+-      s.add_dependency(%q<CFPropertyList>.freeze, ["~> 2.2"])
++      s.add_dependency(%q<addressable>.freeze, [">= 2.5"])
++      s.add_dependency(%q<CFPropertyList>.freeze, [">= 2.2"])
+       s.add_dependency(%q<concurrent-ruby>.freeze, ["~> 1.0"])
+       s.add_dependency(%q<docker-api>.freeze, ["~> 1.34"])
+       s.add_dependency(%q<logging>.freeze, ["~> 2.2"])
+@@ -67,8 +67,8 @@ Gem::Specification.new do |s|
+       s.add_dependency(%q<rspec>.freeze, ["~> 3.0"])
+     end
+   else
+-    s.add_dependency(%q<addressable>.freeze, ["~> 2.5"])
+-    s.add_dependency(%q<CFPropertyList>.freeze, ["~> 2.2"])
++    s.add_dependency(%q<addressable>.freeze, [">= 2.5"])
++    s.add_dependency(%q<CFPropertyList>.freeze, [">= 2.2"])
+     s.add_dependency(%q<concurrent-ruby>.freeze, ["~> 1.0"])
+     s.add_dependency(%q<docker-api>.freeze, ["~> 1.34"])
+     s.add_dependency(%q<logging>.freeze, ["~> 2.2"])

Added: head/sysutils/rubygem-bolt/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/rubygem-bolt/pkg-descr	Tue Apr 30 01:25:36 2019	(r500452)
@@ -0,0 +1,10 @@
+Bolt is a Ruby command-line tool for executing commands, scripts, and tasks on
+remote systems using SSH and WinRM.
+
+  - Executes commands on remote *nix and Windows systems.
+  - Distributes and execute scripts, such as Bash, PowerShell, Python.
+  - Scales to more than 1000 concurrent connections.
+  - Supports industry standard protocols (SSH/SCP, WinRM/PSRP) and
+    authentication methods (password, publickey).
+
+WWW: https://github.com/puppetlabs/bolt

Added: head/sysutils/rubygem-bolt/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/rubygem-bolt/pkg-message	Tue Apr 30 01:25:36 2019	(r500452)
@@ -0,0 +1,30 @@
+This port depends on security/rubygem-net-ssh which has stricter defaults that
+OpenSSH: when using strict host key checking, security/rubygem-net-ssh will
+refuse the connexion if both the remote host name and IP address are not on the
+same line of a known_host file.
+
+security/rubygem-net-ssh added support for disabling strict host key checking
+in version 5.2.0, however this setting is still enabled by default because
+upstream OpenSSH has it enabled by default.  However, FreeBSD ships with a
+modified version of OpenSSH where strict host key checking is disabled by
+default.  As a result:
+  - When adding an entry for a new host, only the host name is added in the
+    known_host file;
+  - The absence of CheckHostIP in the SSH configuration means the feature is
+    disabled while such absence is generally the indication of the feature
+    being enabled.
+
+As a consequence, host key verification may need additional work:
+  - When using security/rubygem-net-ssh < 5.2.0, either:
+      - Disable host key checking totally (--no-host-key-check parameter of the
+        bolt command);
+      - Update your remote host entries in the known_hosts file to use the
+	format:
+        <host-name>,<IP address> <key-type> <key>
+  - When using security/rubygem-net-ssh >= 5.2.0
+      - Add "CheckHostIP no" to your SSH client configuration file
+        (/etc/ssh/ssh_config or ~/.ssh/config).
+
+Some future version of security/rubygem-net-ssh should drop strict host key
+checking entirely, for more details, see:
+https://github.com/net-ssh/net-ssh/pull/663


More information about the svn-ports-all mailing list