8000 GitHub - SG5/acs-privateapps-demo: Demo of private-apps ci/cd integration into splunkcloud using the admin config service
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SG5/acs-privateapps-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acs-privateapps-demo

This repository demonstrates how one can use splunkcloud's self-service apis to build a pipeline that can continuously deploy Splunk apps to Splunk Enterprise Cloud stacks.

Steps

The pipeline primarily consists of 4 steps:

  1. Build cloudctl (make build-cloudctl), the CLI that will be used for the remaining steps -- this step assumes that go is installed.
  2. Package the app artifacts into a tar gz archive (make generate-app-package) -- this step assumes there is a top-level directory called testapp which contains the app.
  3. Upload the app-package to the app inspect service and wait for the inspection report (make inspect-app) -- this step assumes the existence of the environment variables defined below.
  4. If the inspection is successful, install/update the app on the stack using the self-serive apis (make install-app) -- this step also assumes the existence of the environment variables defined below.

The steps of the pipeline can be found here.

Note

  • Few steps (app-vetting and app-installation) have Victoria and Classic variations in the Makefile.
  • For Stacks in Victoria Experience: Make sure your Victoria stack in at least on Butterfinger (8.2.2112) to use this github demo.

Setting up the environment

The environment needs to be configured with a few variables. If leveraging this from a Github repository using Github Actions workflows, the variables will need to be set up as secrets. If running this locally, these values simply need to be set as environment variables:

  • SPLUNK_COM_USERNAME / SPLUNK_COM_PASSWORD - the splunk.com credentials to use for authentication to perform app inspection.
  • STACK_NAME - the name of the Splunk Cloud stack where you want to install/update the app package on.
  • STACK_TOKEN - the jwt token created on the stack.

About

Demo of private-apps ci/cd integration into splunkcloud using the admin config service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.9%
  • Makefile 2.1%
0