Skip to content

Instantly share code, notes, and snippets.

@Andy-Knight
Created April 14, 2021 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andy-Knight/289d426d5505f1cfcb202a62403e70ed to your computer and use it in GitHub Desktop.
Save Andy-Knight/289d426d5505f1cfcb202a62403e70ed to your computer and use it in GitHub Desktop.
cloudConfig: |
#cloud-config
preserve-hostname: false
hostname: ${self.resourceName}.corp.local
runcmd:
- curl -L https://bootstrap.saltstack.com -o install_salt.sh
- sudo sh install_salt.sh -A ${propgroup.SaltStackConfiguration.masterAddress}
- sudo salt-call grains.set serverRole app
- sudo salt-call grains.set databaseServer ${resource.database_Server_1.networks.address[0]}
- sudo salt-call state.highstate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment