fostermadeco/rokanan

This package is abandoned and no longer maintained. No replacement package was suggested.

Installs: 1 410

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:package

v0.1.3-BETA 2020-10-08 19:12 UTC

This package is auto-updated.

Last update: 2021-09-20 00:39:29 UTC


README

“Hail Rokanan, my guest. Tell me why you go south.”

“I go to find my enemy, Lady. I hope to enter their . . . their castle, and make use of their . . . message-sender, to tell the League they are here.”

— “Rocannon’s World”, Ursula K. Le Guin

Rokanan is a tool to simplify provisioning standard development environments across teams. It is effectively a wrapper for Vagrant and, as its eponym might suggest, Ansible.

Prerequisites

Installation

Install Rokanan into your project with

composer require --dev fostermadeco/rokanan dev-master --ignore-platform-reqs

To facilitate invoking the locally installed rokanan, prepend ./vendor/bin to your PATH.

NB: Global installation is no longer supported.

Note on Homebrew

Because Homebrew/php was deprecated earlier this year and migrated to Homebrew Core, you may also experience inconsistencies or unexpected behavior with PHP on your host machine if you have made any changes to the brew-installed PHP since March. It may be advisable at your discretion to thoroughly uninstall Homebrew and reinstall it — more than one of us has done this without adverse effects.

If you do uninstall it, you may also want to follow the uninstaller’s advice and delete any or all of the non-empty directories that the uninstaller lists upon completion. The one exception is /usr/local/etc unless you do not have any self-signed certs stored in /usr/local/etc/ssl/certs.

Note on GNU coreutils

If you have GNU coreutils installed through Homebrew (or otherwise), you may occasionally see the following warning:

stty: standard input: unable to perform all requested operations

You can safely ignore it. If it truly bothers you, pick a folder in your PATH that has precedence over /usr/local/opt/coreutils/libexec/gnubin. In that folder, create a symlink to /bin/stty.

Features

The primary feature while Rokanan is still in beta is that it provides access to custom Ansible roles so we can avoid the confusion and complexity of including them as a Git submodule in projects.

There are also a couple of beta-release commands you can run — your feedback on their functionality is welcome and desired!

rokanan init

This will help you initialize a project interactively.

rokanan trust-cert

Run this after vagrant up to automatically trust the self-signed cert (only supported on macOS).

rokanan check

This will report whether or not your system is optimized for use with Rokanan.

rokanan connect

This is effectively a wrapper around vagrant ssh. All wrapped vagrant commands automatically set the VAGRANT_USE_VAGRANT_TRIGGERS=1 environment variable to suppress the 2.1+ warning regarding the vagrant-triggers plugin vs core functionality.

rokanan run [subcommand]

This will run a command inside the provisioned VM without creating a session. The command will be run in the project directory (/var/www/{{ hostname }}).