Resource Type: sensu_command

Defined in:
lib/puppet/type/sensu_command.rb
Providers:
sensuctl

Summary

Manage sensuctl command resources

Overview

Autorequires:

  • Package[sensu-go-cli]
  • Service[sensu-backend]
  • Sensu_configure[puppet]
  • Sensu_api_validator[sensu]
  • Sensu_user[admin]

Examples:

Add sensuctl command from Bonsai asset

sensu_command { 'command-test':
  ensure      => 'present',
  bonsai_name => 'sensu/command-test',
}

Add command from specific version of a Bonsai asset

sensu_command { 'command-test':
  ensure         => 'present',
  bonsai_name    => 'sensu/command-test',
  bonsai_version => '0.4.0',
}

Add command from URL

sensu_command { 'command-test':
  ensure => 'present',
  url    => 'https://github.com/amdprophet/command-test/releases/download/v0.0.4/command-test_0.0.4_linux_amd64.tar.gz',
  sha512 => '67aeba3652def271b1921bc1b4621354ad254c89946ebc8d1e39327f69a902d91f4b0326c9020a4a03e4cfbb718b454b6180f9c39aaff1e60daf6310be66244f'
}

Properties

  • bonsai_version

    Specific Bonsai asset version to install, or latest

    Supported values:
    • latest
    • /[0-9\.]+/
  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • sha512

    The checksum of the asset

  • url

    The URL location of the asset.

Parameters

  • bonsai_name

    Bonsai asset name

  • name (namevar)

    command name

  • provider

    The specific backend to use for this sensu_command resource. You will seldom need to specify this --- Puppet will usually discover the appropriate provider for your platform.