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 ( basic info )

- SP6_DEBUG_TASK_CHECK

Enable Sparrow6 task checks debugging

- SP6_DEBUG_STREAM

Enable Sparrow6 streams debugging

- SP6_DUMP_TASK_CONFIG

If enabled dump task effective configuration, useful when debugging

- SP6_TASK_CONFIG_FROM

Load task configuration from JSON file path taken from this variable, useful when debugging

- SP6_PROFILE

Enable Sparrow6 profiler

- 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.raku

- SP6_CARTON_OFF

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

- SP6_GO_NO_COMPILE

Don't compile golang tasks. Useful when has prebuilt go tasks binaries (task.go.bin/hook.go.bin)

- SP6_TAR_PATH

Path to tar program. For example, for macos users:

SP6_TAR_PATH=~/homebrew/bin/gtar

- SP6_TAGS

Tags for hosts or Sparrow/Sparrowdo scenarios. Mostly used in Sparrowdo scenarios, to separate one hosts from another or pass variables via cli.

For example:

SP6_TAGS=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, while no values parameters represent boolean values:

SP6_TAGS=nginx_port=443,mode=production,ssl

Sparrow scenario:

say tags()<nginx_port>; # 443
say tags()<mode>; # production
say tags()<ssl>; # True

- 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

- SP6_FORMAT_INLINE

Enable inline format. Used internally with --inline option for s6 cli

- SP6_FORMAT_SOFT

Enable soft format. Used internally with --soft option for s6 cli

- SP6_DUMP_TASK_CODE

Dump code of Sparrow tasks automatically ( useful for r3 and other test tools )

Sparrow6 v0.0.93

Sparrow is a Raku based automation framework

Authors

  • sp1983

License

Artistic-2.0

Dependencies

File::Directory::TreeHash::Merge:ver<2.0.0+>YAMLishJSON::FastData::DumpTerminal::ANSIColor

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::Template6
  • 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::Php
  • Sparrow6::Task::Runner::Helpers::Powershell
  • Sparrow6::Task::Runner::Helpers::Python
  • Sparrow6::Task::Runner::Helpers::Raku
  • 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.

Built with Podlite — the markup and publishing tools behind this site.