Sha256: 5718e28a6b88bab20c31cbf8347ed10cffc574363cc9e51fa44885928737dc42

Contents?: true

Size: 764 Bytes

Versions: 1

Compression:

Stored size: 764 Bytes

Contents

module Caco::Grafana
  class Install < Trailblazer::Operation
    class Repo < Trailblazer::Operation
      step Subprocess(Caco::Debian::AptKeyInstall),
        input: ->(_ctx, **) {{
          url: 'https://packages.grafana.com/gpg.key',
          fingerprint: '4E40 DDF6 D76E 284A 4A67  80E4 8C8C 34C5 2409 8CB6'
        }}

      step Subprocess(Caco::Debian::AptRepoAdd),
        input: ->(_ctx, **) {{
          name: 'grafana',
          url: 'https://packages.grafana.com/oss/deb',
          release: "stable",
          component: 'main'
        }}
    end

    step Subprocess(Repo)
    step Subprocess(Caco::Debian::AptUpdate)
    step Subprocess(Caco::Debian::PackageInstall),
      input: ->(_ctx, **) {{
        package: 'grafana'
      }}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caco-0.1.0 lib/caco/grafana/install.rb