Skip to content

d2si/salt-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

salt-terraform

Prerequisites

Set env variable for terraform credentials

export AWS_PROFILE=

or

export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=

Create common stack

Go to "common" directory

cd common

Create remote state (adapt with your bucket/key)

terraform remote config -backend=s3 -backend-config="bucket=tfstates" -backend-config="key=saltvpc" -backend-config="region=eu-west-1"

Adapt terraform.tfvars if necessary, then deploy

terraform apply

Create saltstack components

Go to saltstack directory

cd ../saltstack

Create remote state (adapt with your bucket/key)

terraform remote config -backend=s3 -backend-config="bucket=tfstates" -backend-config="key=saltstack" -backend-config="region=eu-west-1"

Update terraform.tfvars for your environment (state bucket and key pair in particular) and deploy

terraform apply

Run your first salt commands

Wait a few minutes (~5mn) for boot, upgrades and package installation On the master see if minions have connected

sudo salt-key -L

You can then accept the minions and test the connection

sudo salt-key -A
sudo salt '*' test.ping

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published