Bug 223708 - [new port] sysutils/reggae: Powerful DevOps solution heavily relaying on CBSD
Summary: [new port] sysutils/reggae: Powerful DevOps solution heavily relaying on CBSD
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-16 14:50 UTC by Goran Mekić
Modified: 2018-07-10 22:23 UTC (History)
2 users (show)

See Also:


Attachments
reggae.shar (2.11 KB, text/plain)
2017-11-16 14:50 UTC, Goran Mekić
meka: maintainer-approval+
Details
reggae-0.0.7.shar (2.32 KB, patch)
2017-11-27 15:18 UTC, Goran Mekić
meka: maintainer-approval+
Details | Diff
reggae-0.0.8.shar (5.80 KB, patch)
2017-12-22 09:57 UTC, Goran Mekić
meka: maintainer-approval+
Details | Diff
reggae-0.0.9.shar (4.68 KB, text/plain)
2018-04-20 08:09 UTC, Goran Mekić
meka: maintainer-approval+
Details
reggae-0.0.10.shar (6.26 KB, text/plain)
2018-05-20 18:07 UTC, Goran Mekić
meka: maintainer-approval+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Goran Mekić 2017-11-16 14:50:14 UTC
Created attachment 188049 [details]
reggae.shar
Comment 1 Goran Mekić 2017-11-27 15:18:44 UTC
Created attachment 188314 [details]
reggae-0.0.7.shar

Reggae became part of CBSD organization on GitHub, and config file is handled better
Comment 2 Goran Mekić 2017-12-22 09:57:34 UTC
Created attachment 189031 [details]
reggae-0.0.8.shar

Most important change is that DHCP and DNS servers are now fully functional and allow for easier handling of both: bhyve VMs and jails by registering them to DNS (VMs through DHCP -> DNS, jails via nsupdate script)
Comment 3 Goran Mekić 2018-04-20 08:09:52 UTC
Created attachment 192676 [details]
reggae-0.0.9.shar

This version adds support for PF tables changing on jail/bhyve up/down and DHCP server change from Kea to ISC-DHCP. I made introduction for Reggae explaining how to get started, what is it intended to solve and what technologies and features are built into Reggae: https://www.youtube.com/watch?v=6GPKO6Gp7b0&list=PLtcibmaW4u3tJj8m1bKH8TbmYWxayX5VC
Comment 4 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2018-04-20 09:07:42 UTC
I'll take it
Comment 5 Goran Mekić 2018-05-20 18:07:12 UTC
Created attachment 193566 [details]
reggae-0.0.10.shar
Comment 6 Goran Mekić 2018-05-20 18:10:09 UTC
This version brings support for more provisioners and documentation on Github and in man pages. I recorded a videso to explain initialization: https://www.youtube.com/watch?v=6GPKO6Gp7b0&list=PLtcibmaW4u3tJj8m1bKH8TbmYWxayX5VC
Comment 7 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2018-07-10 21:40:42 UTC
Hello, Goran. Sorry for such a long delay. I finally testing and facing a subtle problem while building in poudriere:

=======================<phase: stage          >============================
===>  Staging for reggae-0.0.10
===>   reggae-0.0.10 depends on executable: cbsd - not found
===>   Installing existing package /packages/All/cbsd-11.2.0.txz
pkg-static: Insufficient privileges to add packages
*** Error code 77


Trying to realize where the problem is.
Comment 8 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2018-07-10 22:01:52 UTC
Ok, it works if I change cbsd dependency line to 
${LOCALBASE}/bin/cbsd:sysutils/cbsd
Comment 9 Goran Mekić 2018-07-10 22:15:39 UTC
I thought that's in PATH. Weird. I'm currently in Greece for a vacation so I can send the proposed fix in about 10 days as I only have a mobile phone here, or feel free to change it and commit.
Comment 10 commit-hook freebsd_committer freebsd_triage 2018-07-10 22:21:02 UTC
A commit references this bug:

Author: rm
Date: Tue Jul 10 22:20:38 UTC 2018
New revision: 474415
URL: https://svnweb.freebsd.org/changeset/ports/474415

Log:
  Reggae - REGister Globaly Access Everywhere is a package which helps in common
  DevOps tasks. It is an open source package which relays on CBSD to provide lower
  level management for jails and virtual machines.

  If you have ever used Vagrant or Docker Compose, Reggae is best described
  as an alternative to those. It enables you easy development inside jail
  while code editing is done on the host. It makes transition from
  development to production easier by using provisioners. It makes host
  clean of all requirements of development and puts them inside jail which
  is easily stopped, started, provisioned, and destroyed.

  WWW: https://github.com/cbsd/reggae

  New port added with couple of changes:
  1. cbsd dependency line was changed to include relative path to the cbsd binary.
     Without that poudriere fails to stage the package with
     "pkg-static: Insufficient privileges to add packages" message
  2. LICENSE_FILE and NO_ARCH knobs were added
  3. DATADIR variable in pkg-plist was replaced with relative path, because
     redefining of this variable on build time is not supported by reggae - it
     doesn't expect to change REGGAE_DIR var and this path is actually hardcoded
     in scripts. Corresponding portlint warnings should be ignored.

  PR:		223708
  Submitted by:	Goran Meki? <meka@tilda.center>

Changes:
  head/sysutils/Makefile
  head/sysutils/reggae/
  head/sysutils/reggae/Makefile
  head/sysutils/reggae/distinfo
  head/sysutils/reggae/pkg-descr
  head/sysutils/reggae/pkg-plist
Comment 11 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2018-07-10 22:23:28 UTC
(In reply to Goran Mekić from comment #9)
Yes, I just committed with the workaround (and couple of other fixes - see commit message) just to not hold on this PR anymore. Lets try to realize what the problem is when you return back. Happy vacation there and thank you for submission.