summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorfhajny <fhajny>2017-04-06 19:25:17 +0000
committerfhajny <fhajny>2017-04-06 19:25:17 +0000
commit485237c70597ac4b8342a6996a7685528bb5c820 (patch)
tree51de0d3b0a71d9d3e1a3570d893b2787c46e4350 /sysutils
parent52cbb115d729df977c0cd5a1f3226f3c1ceb9cc2 (diff)
downloadpkgsrc-485237c70597ac4b8342a6996a7685528bb5c820.tar.gz
Update sysutils/consul to 0.8.0
BREAKING CHANGES: - Command-Line Interface RPC Deprecation: The RPC client interface has been removed. - Version 8 ACLs Are Now Opt-Out: The acl_enforce_version_8 configuration now defaults to true to enable full version 8 ACL support by default. - Remote Exec Is Now Opt-In: The default for disable_remote_exec was changed to "true", so now operators need to opt-in to having agents support running commands remotely via consul exec. - Raft Protocol Compatibility: When upgrading to Consul 0.8.0 from a version lower than 0.7.0, users will need to set the -raft-protocol option to 1 in order to maintain backwards compatibility with the old servers during the upgrade. FEATURES: - Autopilot: A set of features has been added to allow for automatic operator-friendly management of Consul servers. - Dead Server Cleanup: Dead servers will periodically be cleaned up and removed from the Raft peer set - Server Health Checking: An internal health check has been added to track the stability of servers. - New Server Stabilization: When a new server is added to the cluster, there will be a waiting period where it must be healthy and stable for a certain amount of time before being promoted to a full, voting member. - Advanced Redundancy: (Consul Enterprise) A new -non-voting-server option flag has been added for Consul servers to configure a server that does not participate in the Raft quorum. - Upgrade Orchestration: (Consul Enterprise) Autopilot will automatically orchestrate an upgrade strategy for Consul servers - Network Areas: (Consul Enterprise) A new capability has been added which allows operators to define network areas that join together two Consul datacenters. - WAN Soft Fail: Request routing between servers in the WAN is now more robust by treating Serf failures as advisory but not final. - WAN Join Flooding: A new routine was added that looks for Consul servers in the LAN and makes sure that they are joined into the WAN as well. - Validate command: To provide consistency across our products, the configtest command has been deprecated and replaced with the validate command IMPROVEMENTS: - agent: Fixed a missing case where gossip would stop flowing to dead nodes for a short while. - agent: Changed agent to seed Go's random number generator. - agent: Serf snapshots no longer have the executable bit set on the file. - agent: Consul is now built with Go 1.8. - agent: Updated aws-sdk-go version (used for EC2 auto join) for Go 1.8 compatibility. - agent: User-supplied node IDs are now normalized to lower-case. - agent: Added checks to enforce uniqueness of agent node IDs at cluster join time and when registering with the catalog. - cli: Standardized handling of CLI options for connecting to the Consul agent. - cli: Updated go-cleanhttp library for better HTTP connection handling between CLI commands and the Consul agent - cli: The operator raft subcommand has had its two modes split into the list-peers and remove-peer subcommands. - cli: Added an -id flag to the operator raft remove-peer command to allow removing a peer by ID. - dns: Allows the .service tag to be optional in RFC 2782 lookups. - server: Changed the internal EnsureRegistration RPC endpoint to prevent registering checks that aren't associated with the top-level node being registered. BUG FIXES: - agent: Fixed an issue with consul watch not working when http was listening on a unix socket. - agent: Fixed an issue where checks and services could not sync deregister operations back to the catalog when version 8 ACL support is enabled. - agent: Fixed an issue where agents could use the ACL token registered with a service when registering checks for the same service that were registered with a different ACL token. - cli: Fixed consul kv commands not reading the CONSUL_HTTP_TOKEN environment variable. - cli: Fixed an issue where prefixing an address with a protocol (such as 'http://' or 'https://') in -http-addr or CONSUL_HTTP_ADDR would give an error. - cli: Fixed an issue where error messages would get printed to stdout instead of stderr. - server: Fixed an issue with version 8 ACLs where servers couldn't deregister nodes from the catalog during reconciliation. - server: Fixed an issue where servers could temporarily roll back changes to a node's metadata or tagged addresses when making updates to the node's health checks. - server: Fixed an issue where the service name consul was not subject to service ACL policies with version 8 ACLs enabled.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/consul/Makefile16
-rw-r--r--sysutils/consul/distinfo10
2 files changed, 10 insertions, 16 deletions
diff --git a/sysutils/consul/Makefile b/sysutils/consul/Makefile
index 2ab41ff6e55..d4d8bde8c2f 100644
--- a/sysutils/consul/Makefile
+++ b/sysutils/consul/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2017/02/17 15:22:03 fhajny Exp $
+# $NetBSD: Makefile,v 1.12 2017/04/06 19:25:17 fhajny Exp $
-DISTNAME= consul-0.7.5
+DISTNAME= consul-0.8.0
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=hashicorp/}
@@ -13,11 +13,8 @@ EXTRACT_USING= bsdtar
GITHUB_TAG= v${PKGVERSION_NOREV}
-WRKSRC= ${WRKDIR}/src/github.com/hashicorp/consul
-
-.include "../../lang/go/version.mk"
-
-BUILD_DEPENDS+= go-${GO_VERSION}*:../../lang/go
+GO_DIST_BASE= ${DISTNAME}
+GO_SRCPATH= github.com/hashicorp/consul
USE_LANGUAGES= c c99
USE_TOOLS+= bash gmake
@@ -26,14 +23,11 @@ MAKE_ENV+= GOPATH=${WRKDIR}:${PREFIX}/gopkg
INSTALLATION_DIRS+= bin
-post-extract:
- ${MKDIR} ${WRKSRC}
- ${MV} ${WRKDIR}/${DISTNAME}/* ${WRKSRC}
-
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} go build -o bin/consul
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/consul ${DESTDIR}${PREFIX}/bin
+.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/consul/distinfo b/sysutils/consul/distinfo
index c2ff12098b2..c01e5d7f4c3 100644
--- a/sysutils/consul/distinfo
+++ b/sysutils/consul/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2017/02/17 15:22:03 fhajny Exp $
+$NetBSD: distinfo,v 1.8 2017/04/06 19:25:17 fhajny Exp $
-SHA1 (consul-0.7.5.tar.gz) = 03fc217d3f3b880f2bea13c052e15f1da17fa9c5
-RMD160 (consul-0.7.5.tar.gz) = 31fffa6b7ba7d52783e59f8b663def64bb0c6625
-SHA512 (consul-0.7.5.tar.gz) = 6825a92ca2d1e3bf1db561de803e890bfa3a4c08718477a819ea10f5d0d9d13bf23ba7bedf2123cfa32b8f87d63ede7ee85d57a20f8cef5effd4651d28ab8a36
-Size (consul-0.7.5.tar.gz) = 5157056 bytes
+SHA1 (consul-0.8.0.tar.gz) = 66e5cdc1657c852003e01458ae200f1918638c9e
+RMD160 (consul-0.8.0.tar.gz) = 0fcc43785991e1a90e60f85505e2ca32e10d1c02
+SHA512 (consul-0.8.0.tar.gz) = 4bb8bb50e4ab897cac7936bef590c7d8f93eca61913cd88588d5d0324c04fe2582d224dd25191b20bf76b000f764b4decce23118d3f8ed024b887b3194520644
+Size (consul-0.8.0.tar.gz) = 4629677 bytes