envvars

Environmental variables

Sparrow6 environmental variables list.

  • SP6_REPO

Sets Sparrow6 Repository url.

For example:

SP6_REPO=file:///var/sparrow-local-repo

SP6_REPO=http://192.168.0.1
  • SP6_TASK_ROOT

Set root directory for local tasks

For example:

SP6_TASK_ROOT=~/tasks

Once is set Sparrow6 will look tasks locations in SP6_TASK_ROOT, not just in CWD:

task-run "birds" # Will look in ./birds,  then in ~/tasks/birds
  • SP6_DEBUG

Enable Sparrow6 debugging

  • SP6_KEEP_CACHE

Don't remove Sparrow6 cache upon task finish. Useful when debugging.

  • SP6_CONFIG

Set path to configuration file.

For example:

SP6_CONFIG=config.pl6
  • SP6_CARTON_OFF

Don't use Carton to install CPAN dependencies, useful when one install CPAN modules though others means

  • SP6_TAGS

Tags for hosts. Mostly used in Sparrowdo scenarios, to separate one hosts from another or supply scenarios with variables.

For example:

SP6_TAG=database,prod

So in sparrow scenario:

if tags()<database> && tags()<prod> {
  package-install "postgresql";
  task-run "harden postgresql config", "postgresql-strict-configuration";
}

Tags might also contain values, representing 'key/value' pairs:

SP6_TAG=nginx_port=443,mode=production

Sparrow scenario:

say tags()<nginx_port>;
say tags()<mode>;
  • SP6_LOG_NO_TIMESTAMPS

Don't add timestamps to Sparrow reports

  • SP6_FORMAT_TERSE

Enable terse format ( only scripts output ) in Sparrow reports

  • SP6_FORMAT_COLOR

Enable colors in Sparrow reports

Sparrow6 v0.0.33

Sparrow is a Raku based automation framework

Authors

  • Alexey Melezhik

License

Artistic-2.0

Dependencies

File::Directory::TreeHash::Merge:ver<1.0.0>YAMLishJSON::TinyData::DumpColorizable

Test Dependencies

Provides

  • Sparrow6
  • Sparrow6::Common::Config
  • Sparrow6::Common::Helpers
  • Sparrow6::DSL
  • Sparrow6::DSL::Assert
  • Sparrow6::DSL::Bash
  • Sparrow6::DSL::CPAN::Package
  • Sparrow6::DSL::Common
  • Sparrow6::DSL::Directory
  • Sparrow6::DSL::File
  • Sparrow6::DSL::Git
  • Sparrow6::DSL::Group
  • Sparrow6::DSL::Package
  • Sparrow6::DSL::Service
  • Sparrow6::DSL::Ssh
  • Sparrow6::DSL::Systemd
  • Sparrow6::DSL::Template
  • Sparrow6::DSL::User
  • Sparrow6::DSL::Zef
  • Sparrow6::RakuTask
  • Sparrow6::SparrowTask
  • Sparrow6::Task
  • Sparrow6::Task::Check
  • Sparrow6::Task::Check::Context
  • Sparrow6::Task::Check::Context::Common
  • Sparrow6::Task::Repository
  • Sparrow6::Task::Repository::Helpers::Common
  • Sparrow6::Task::Repository::Helpers::Index
  • Sparrow6::Task::Repository::Helpers::Init
  • Sparrow6::Task::Repository::Helpers::Plugin
  • Sparrow6::Task::Runner
  • Sparrow6::Task::Runner::Helpers::Bash
  • Sparrow6::Task::Runner::Helpers::Check
  • Sparrow6::Task::Runner::Helpers::Common
  • Sparrow6::Task::Runner::Helpers::Perl
  • Sparrow6::Task::Runner::Helpers::Perl6
  • Sparrow6::Task::Runner::Helpers::Powershell
  • Sparrow6::Task::Runner::Helpers::Python
  • Sparrow6::Task::Runner::Helpers::Ruby
  • Sparrow6::Task::Runner::Helpers::Test

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.