Configure

First published: Monday, August 25, 2025 | Last updated: Monday, August 25, 2025

Apply essential configurations used by the SloopStash Chef starter-kit.


Previous: Setup

Next: Deploy Docker swarm cluster

Configure environment variables

Supported environment variables

# Allowed values for $ENVIRONMENT variable.
* stg
* prd

Set environment variables

# Store environment variables.
$ export ENVIRONMENT=stg

Configure Chef resources

# Switch to SloopStash Chef starter-kit directory.
$ cd /opt/kickstart-chef

# Create Chef environment.
$ knife environment create sloopstash-${ENVIRONMENT}
{
  "name":"sloopstash-<ENVIRONMENT>",
  "description":"",
  "cookbook_versions":{},
  "json_class":"Chef::Environment",
  "chef_type":"environment",
  "default_attributes":{},
  "override_attributes":{}
}
# Upload Chef cookbooks.
$ knife cookbook upload system docker docker_cri kubernetes

Previous: Setup

Next: Deploy Docker swarm cluster